# Path: washmap/washmap/chart_constants.py
# SANITATION_COLOR_RANGE = ["#d45500", "#da670f", "#eb7e1f", "#eb941f", "#ebb01f", "#f2c83d", "#d3cc4f", "#86c26f", "#4db181", "#15b598"]
# 
# WATER_COLOR_RANGE = ["#8c9494", "#8398a2", "#7c9baa", "#73a1b4", "#6aa6bd", "#62abc7", "#5aafd0", "#52b4d9", "#49bae4", "#3fc0f0"]
# 
# GRAY = "#CCCCCC"


from pandas import DataFrame
from numpy import where
from country.models import Country
from main.utils import build_coords_lists
from stats.models import StatValue
from .chart_constants import SANITATION_COLOR_RANGE, WATER_COLOR_RANGE, GRAY
from __future__ import unicode_literals, absolute_import





def color_data(data):
    def _get_color(value, palette):
        if value < 0:

# Path: washmap/washmap/chart_constants.py
# SANITATION_COLOR_RANGE = ["#d45500", "#da670f", "#eb7e1f", "#eb941f", "#ebb01f", "#f2c83d", "#d3cc4f", "#86c26f", "#4db181", "#15b598"]
# 
# WATER_COLOR_RANGE = ["#8c9494", "#8398a2", "#7c9baa", "#73a1b4", "#6aa6bd", "#62abc7", "#5aafd0", "#52b4d9", "#49bae4", "#3fc0f0"]
# 
# GRAY = "#CCCCCC"


# Path: washmap/washmap/map_data.py
from pandas import DataFrame
from numpy import where
from country.models import Country
from main.utils import build_coords_lists
from stats.models import StatValue
from .chart_constants import SANITATION_COLOR_RANGE, WATER_COLOR_RANGE, GRAY

from __future__ import unicode_literals, absolute_import





def color_data(data):
    def _get_color(value, palette):
        if value < 0:

            return GRAY