color (cfg.legend)

type:"symbol" 사용시 각 symbol의 색상을 설정합니다.

Type

array

Options

Value Description
color 순서대로 각 symbol의 색상

Example

IBMapCharts.config({
    legend : {
        enable : true, // 범례 표시
        type: "symbol",
        range: ['diamond', 'square', 'cross','wye'],
        color: ['red', '#6482AD', 'rgb(180, 180, 80)', "#DDCC22"], //각 아이콘의 색상 설정
        domain: ["화력발전소", "수력발전소", "신재생발전소", "원자력 발전소"],
    }
})