我在 highcharts 中遇到了气泡值的问题。如何按系列显示默认值
I was trouble bubble value in highcharts .How to show by default value in series
我在 highcharts 中遇到了气泡值问题。如何在系列中显示默认值
我想在气泡中显示默认值。当我悬停在显示系列值的气泡中,但我想默认显示系列值时,这可能吗?
https://jsfiddle.net/Kondaldurgam/q734jr5t/
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 0,
zoomType: 'xy'
},
title: {
text: 'Highcharts bubbles with radial gradient fill'
},
xAxis: {
gridLineWidth: 1
},
yAxis: {
startOnTick: false,
endOnTick: false
},
series: [{
data: [
[9, 81, 63],
[98, 5, 89],
[51, 50, 73],
[41, 22, 14],
[58, 24, 20],
[78, 37, 34],
[55, 56, 53],
[18, 45, 70],
[42, 44, 28],
[3, 52, 59],
[31, 18, 97],
[79, 91, 63],
[93, 23, 23],
[44, 83, 22]
],
marker: {
fillColor: {
radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
stops: [
[0, 'rgba(255,255,255,0.5)'],
[1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]
]
}
}
}, ]
});
在带有数据标签的图表中添加绘图选项
plotOptions: {
bubble: {
dataLabels: {
enabled: true,
x:40,/*shifting values to right side*/
format: '({point.x},{point.y})<br>Size:{point.z}'
},
}
},
我在 highcharts 中遇到了气泡值问题。如何在系列中显示默认值
我想在气泡中显示默认值。当我悬停在显示系列值的气泡中,但我想默认显示系列值时,这可能吗?
https://jsfiddle.net/Kondaldurgam/q734jr5t/
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 0,
zoomType: 'xy'
},
title: {
text: 'Highcharts bubbles with radial gradient fill'
},
xAxis: {
gridLineWidth: 1
},
yAxis: {
startOnTick: false,
endOnTick: false
},
series: [{
data: [
[9, 81, 63],
[98, 5, 89],
[51, 50, 73],
[41, 22, 14],
[58, 24, 20],
[78, 37, 34],
[55, 56, 53],
[18, 45, 70],
[42, 44, 28],
[3, 52, 59],
[31, 18, 97],
[79, 91, 63],
[93, 23, 23],
[44, 83, 22]
],
marker: {
fillColor: {
radialGradient: { cx: 0.4, cy: 0.3, r: 0.7 },
stops: [
[0, 'rgba(255,255,255,0.5)'],
[1, Highcharts.Color(Highcharts.getOptions().colors[0]).setOpacity(0.5).get('rgba')]
]
}
}
}, ]
});
在带有数据标签的图表中添加绘图选项
plotOptions: {
bubble: {
dataLabels: {
enabled: true,
x:40,/*shifting values to right side*/
format: '({point.x},{point.y})<br>Size:{point.z}'
},
}
},