bubbleLegend (legend properties)
버블(bubble) 차트에서 버블 크기가 나타내는 값을 범례에 원 크기로 표시합니다.
highcharts-more.js가 필요하며, 버블 차트에서만 적용됩니다.
Info
| name |
type |
required(default) |
description |
| bubbleLegend |
object |
선택(undefined) |
버블(bubble) 차트에서 버블 크기가 나타내는 값을 범례에 원 크기로 표시합니다. |
| bubbleLegend.enabled |
boolean |
선택(false) |
버블 범례 표시 여부 |
| bubbleLegend.ranges |
Array<object> |
선택(undefined) |
표시할 값 목록 (예: [{ value: 10 }, { value: 50 }]). 지정하지 않으면 최소/중간/최대 값을 표시 |
| bubbleLegend.labels |
object |
선택 |
값 라벨 속성 (format, style 등) |
| bubbleLegend.color |
color |
선택(undefined) |
원 채우기 색상 |
| bubbleLegend.borderColor |
color |
선택(undefined) |
원 테두리 색상 |
| bubbleLegend.connectorDistance |
number |
선택(60) |
원과 라벨 사이 연결선 길이(px) |
Example
myChart.setOptions({
chart: {
type: "bubble"
},
legend: {
bubbleLegend: {
enabled: true,
labels: {
format: "{value}명"
}
}
},
series: [{
name: "지점",
data: [[1, 60, 10], [2, 40, 35], [3, 20, 80], [4, 80, 50]]
}]
}, {
append: true,
redraw: true
});
제공 버전