Highcharts Stockchart gui 默认线注释颜色黑色
Highcharts Stockchart gui default line annotation color black
HighStockchart gui 默认线条注释颜色“黑色”。我需要将此颜色更改为 "blue" 颜色。在 highstock 图表中使用 深色主题 时,很难识别黑色线。如何在不手动更改的情况下将此颜色默认设置为“蓝色”。
https://www.highcharts.com/demo/stock/stock-tools-gui/dark-unica
您可以为所有注释设置描边:
navigation: {
annotationsOptions: {
shapeOptions: {
stroke: 'red'
}
}
}
或仅针对 segment
指定 annotationsOptions
:
navigation: {
bindings: {
segment: {
annotationsOptions: {
shapeOptions: {
stroke: 'red'
}
}
}
}
}
现场演示: https://jsfiddle.net/BlackLabel/14qt9Le0/
API参考:https://api.highcharts.com/highstock/navigation.bindings.segment
HighStockchart gui 默认线条注释颜色“黑色”。我需要将此颜色更改为 "blue" 颜色。在 highstock 图表中使用 深色主题 时,很难识别黑色线。如何在不手动更改的情况下将此颜色默认设置为“蓝色”。
https://www.highcharts.com/demo/stock/stock-tools-gui/dark-unica
您可以为所有注释设置描边:
navigation: {
annotationsOptions: {
shapeOptions: {
stroke: 'red'
}
}
}
或仅针对 segment
指定 annotationsOptions
:
navigation: {
bindings: {
segment: {
annotationsOptions: {
shapeOptions: {
stroke: 'red'
}
}
}
}
}
现场演示: https://jsfiddle.net/BlackLabel/14qt9Le0/
API参考:https://api.highcharts.com/highstock/navigation.bindings.segment