label (cfg.map.chart)

chart 주변에 표시될 레이블 내용을 설정합니다.

Type

string

Options

Value Description
label chart 주변에 표시될 문자

Example

// 기본값 설정 예
IBMapCharts.config({
    point: {
        map: {
            label: "지사", // chart 주변에 표시될 레이블 기본값
            style: {
                labelPos: "right",
                labelColor: "#666666",
                labelSize: 15
            }
        }
    }
});

// chart 데이터와 함께 레이블 설정
var DATA = 
    {
        "kh99984":{ //map id
            "value": "제주지사",
            // chart 주변 표시할 레이블
            "chart":{
                "label": "제주도청점",
            },
            // chart를 그릴 데이터
            "data": [
                {
                    "name": "06~16시",
                    "value": 55
                },
                {
                    "name": "17~21시",
                    "value": 36
                },
                {
                    "name": "21~00시",
                    "value": 18
                }
            ]
        },
        // ...
    };
ibmap.map.setData(DATA);
ibmap.map.show( 'pie' );