Set background color for only one pane in multi-pane Highstock chart

萝らか妹 提交于 2021-01-27 17:42:46

问题


In this example: http://www.highcharts.com/stock/demo/candlestick-and-volume, is there a way to set the background color of the second pane?

For example, if you add plotBackgroundColor: '#FCFFC5' to the chart definition, then both panes become yellow.

Is it possible to make only the second (lower) pane yellow?


回答1:


it's possible to change the background color for a specific range in your second pane using plotBands.

e.g. yAxis : {[ ... plotBands : {color : '#f7d724', from : -50, to : 50}, ... ]}



来源:https://stackoverflow.com/questions/14739263/set-background-color-for-only-one-pane-in-multi-pane-highstock-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!