如何在highchart股票GUI工具中更改默认线条颜色?

时间:2019-09-16 09:12:53

标签: javascript highcharts

我是Highchart的新手,现在我正在使用Highstock GUI工具。看起来像这样: highstock-gui-tools

那么有什么办法可以改变默认的黑线颜色?

1 个答案:

答案 0 :(得分:0)

您可以通过以下方式更改默认线条颜色:

navigation: {
    bindings: {
        measureXY: {
            annotationsOptions: {
                typeOptions: {
                    crosshairX: {
                        fill: 'blue',
                        stroke: 'red'
                    }
                }
            }
        }
    }
}

实时演示: https://jsfiddle.net/BlackLabel/a6on7qyw/

API参考:

https://api.highcharts.com/highstock/navigation.bindings.measureXY

https://api.highcharts.com/highstock/annotations.measure.typeOptions.crosshairX