简体   繁体   中英

Highcharts Stockchart gui default line annotation color black

HighStockchart gui default line annotation color "black" . i need to change this color to "blue" color. when using dark theme in highstock chart its difficult to identify black color line. how can I change this color default to "blue" without manually changing it.

https://www.highcharts.com/demo/stock/stock-tools-gui/dark-unica

highstock GUI 默认注释颜色 黑色

You can set stroke for all annotations:

navigation: {
  annotationsOptions: {
    shapeOptions: {
      stroke: 'red'
    }
  }
}

or specify annotationsOptions only for segment :

navigation: {
  bindings: {
    segment: {
      annotationsOptions: {
        shapeOptions: {
          stroke: 'red'
        }
      }
    }
  }
}

Live demo: https://jsfiddle.net/BlackLabel/14qt9Le0/

API Reference: https://api.highcharts.com/highstock/navigation.bindings.segment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM