type (cfg.legend)

범례 종류를 설정합니다.

Type

string

Options

Value Description
color colorAxis 사용시 색상에 대한 범례
symbol point symbol 사용시 심볼에 대한 범례
image point image 사용 시 이미지에 대한 범례

[color]
s

[symbol]
s

[image]
s

Example

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

// image type 설정
IBMapCharts.config({
    legend : {
      enable: true,
      type: "image",
      imageUrls: [
        "https://www.ibsheet.com/v8/ibmap/assets/imgs/factory.png",
        "https://www.ibsheet.com/v8/ibmap/assets/imgs/office.png",
        "https://www.ibsheet.com/v8/ibmap/assets/imgs/home.png",
        "https://www.ibsheet.com/v8/ibmap/assets/imgs/community_business.png"
      ],
      domain: [
        "공장",
        "회사",
        "집",
        "거래처"
      ],
      "title": "주요 위치",
      "orient": "vertical",
      "align": "right",
      "verticalAlign": "bottom"
    }
})

see also

legend.imageUrls props

since

version desc
8.0.0.6 image 타입 추가