Цветовые палитры для графиков


JS object:

var colorPalettes = {
    nevron : ["#EC6031", "#A2ADB6", "#788585", "#FBCB9C", "#C0C2C2", "#F79638", "#445A6C", "#F6B098", "#A6A6A6", "#FEA56D", "#FEEDFC", "#DCDADC", "#FCEEDE"],
    winter : ["#004518", "#959059", "#A9BFB2", "#2BB673", "#01719F", "#C6DAE3", "#6CA383", "#487479", "#018992", "#CECDBD", "#D2F7FF", "#8CDAD7", "#899598"],
    autumn : ["#6FA529", "#A5CE42", "#EED902", "#E49F15", "#955E10", "#B59A29", "#6CA383", "#00854A", "#018992", "#00C7C1", "#D2F7FF", "#8CDAD7", "#899598"],
    bright : ["#1800AC", "#00A2FF", "#81C800", "#FFCC00", "#F15500", "#00AC63", "#33FF00", "#B80026", "#FF00C2", "#7E00FF", "#0092AC", "#70DCFF", "#FDFF6D"],
    cool : ["#312766", "#387091", "#00C28D", "#D2FF00", "#48C746", "#795CA4", "#7997C9", "#4FD4E3", "#9CE361", "#9AFFBE", "#A7C3B1", "#86909B", "#E4EDAC"],
    dark : ["#FFC600", "#BF9400", "#7F6300", "#3F3100", "#C50081", "#930061", "#620040", "#3B0027", "#00A7C3", "#007D92", "#005361", "#00323A", "#7F9BA0"],
    nature : ["#FFF68F", "#E2D200", "#958C01", "#645E00", "#4D9201", "#8FFFA0", "#00E225", "#01951A", "#006412", "#018992", "#9BECFF", "#4FBDD8", "#006A86"],
    pale : ["#FFFEE6", "#F4EEAF", "#FEB3BE", "#F1B7D8", "#78D2E6", "#B1EDDB", "#E8E3DB", "#D4CDA5", "#F4DABD", "#E7D8F0", "#C7C7D7", "#CCE9E7", "#B8CDC9"],
    pastel : ["#B8CDC9", "#D1976E", "#8EA147", "#5C9DAF", "#435377", "#4F7C9A", "#5CCAA2", "#9D7F4E", "#CA645C", "#D096BD", "#AAD57E", "#D7D5E4", "#B8CDC9"],
    rose : ["#CAA29F", "#CAA29F", "#628CB2", "#AE6487", "#BA0063", "#E55591", "#D241AB", "#FCFCFC", "#F5A8AA", "#716FAA", "#95355B", "#E2C3EF", "#B88794"]
};

PHP array:

$colorPalettes = array(
    'nevron' => array("#EC6031", "#A2ADB6", "#788585", "#FBCB9C", "#C0C2C2", "#F79638", "#445A6C", "#F6B098", "#A6A6A6", "#FEA56D", "#FEEDFC", "#DCDADC", "#FCEEDE"),
    'winter' => array("#004518", "#959059", "#A9BFB2", "#2BB673", "#01719F", "#C6DAE3", "#6CA383", "#487479", "#018992", "#CECDBD", "#D2F7FF", "#8CDAD7", "#899598"),
    'autumn' => array("#6FA529", "#A5CE42", "#EED902", "#E49F15", "#955E10", "#B59A29", "#6CA383", "#00854A", "#018992", "#00C7C1", "#D2F7FF", "#8CDAD7", "#899598"),
    'bright' => array("#1800AC", "#00A2FF", "#81C800", "#FFCC00", "#F15500", "#00AC63", "#33FF00", "#B80026", "#FF00C2", "#7E00FF", "#0092AC", "#70DCFF", "#FDFF6D"),
    'cool' => array("#312766", "#387091", "#00C28D", "#D2FF00", "#48C746", "#795CA4", "#7997C9", "#4FD4E3", "#9CE361", "#9AFFBE", "#A7C3B1", "#86909B", "#E4EDAC"),
    'dark' => array("#FFC600", "#BF9400", "#7F6300", "#3F3100", "#C50081", "#930061", "#620040", "#3B0027", "#00A7C3", "#007D92", "#005361", "#00323A", "#7F9BA0"),
    'nature' => array("#FFF68F", "#E2D200", "#958C01", "#645E00", "#4D9201", "#8FFFA0", "#00E225", "#01951A", "#006412", "#018992", "#9BECFF", "#4FBDD8", "#006A86"),
    'pale' => array("#FFFEE6", "#F4EEAF", "#FEB3BE", "#F1B7D8", "#78D2E6", "#B1EDDB", "#E8E3DB", "#D4CDA5", "#F4DABD", "#E7D8F0", "#C7C7D7", "#CCE9E7", "#B8CDC9"),
    'pastel' => array("#B8CDC9", "#D1976E", "#8EA147", "#5C9DAF", "#435377", "#4F7C9A", "#5CCAA2", "#9D7F4E", "#CA645C", "#D096BD", "#AAD57E", "#D7D5E4", "#B8CDC9"),
    'rose' => array("#CAA29F", "#CAA29F", "#628CB2", "#AE6487", "#BA0063", "#E55591", "#D241AB", "#FCFCFC", "#F5A8AA", "#716FAA", "#95355B", "#E2C3EF", "#B88794")
);

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Этот сайт использует Akismet для борьбы со спамом. Узнайте как обрабатываются ваши данные комментариев.