Highcharts 选择事件禁用突出显示效果
Highcharts Selection Event Disable highlighting Effect
在 Highcharts 的选择事件中单击并拖动时,如何禁用突出显示?我可以使用 CSS 来掩盖它吗?如果是这样,此属性的 class/ID 名称是什么?
您可以使用以下命令禁用 highchart
突出显示事件:
plotOptions: {
series: {
states: {
hover: {
enabled: false
}
}
}
}
有一个选项可以设置选择颜色。
来自官方API:
selectionMarkerFill:
The background color of the marker square when selecting (zooming in on) an area of the chart. Defaults to rgba(51,92,173,0.25).\
http://api.highcharts.com/highcharts/chart.selectionMarkerFill
如果要禁用选择填充,请将 selectionMarkerFill
设置为 'none'
chart: {
selectionMarkerFill: 'none',
在 Highcharts 的选择事件中单击并拖动时,如何禁用突出显示?我可以使用 CSS 来掩盖它吗?如果是这样,此属性的 class/ID 名称是什么?
您可以使用以下命令禁用 highchart
突出显示事件:
plotOptions: {
series: {
states: {
hover: {
enabled: false
}
}
}
}
有一个选项可以设置选择颜色。
来自官方API:
selectionMarkerFill:
The background color of the marker square when selecting (zooming in on) an area of the chart. Defaults to rgba(51,92,173,0.25).\
http://api.highcharts.com/highcharts/chart.selectionMarkerFill
如果要禁用选择填充,请将 selectionMarkerFill
设置为 'none'
chart: {
selectionMarkerFill: 'none',