问题
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