Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set stacking column graph colors from the bottom up

Tags:

highcharts

How to change the order of colors in a stacking column graph from the bottom up? Default colors come from the top down.

like image 1000
Igor Avatar asked Feb 04 '15 16:02

Igor


People also ask

How do I change the Color of a stacked column chart?

In a chart, click to select the data series for which you want to change the colors. On the Format tab, in the Current Selection group, click Format Selection. tab, expand Fill, and then do one of the following: To vary the colors of data markers in a single-series chart, select the Vary colors by point check box.

How do I change the order of a stacked area chart in Excel?

Under Chart Tools, on the Design tab, in the Data group, click Select Data. In the Select Data Source dialog box, in the Legend Entries (Series) box, click the data series that you want to change the order of. Click the Move Up or Move Down arrows to move the data series to the position that you want.


1 Answers

If you mean the stacking order of the series, you can set the index property for each series.

example:

  • http://jsfiddle.net/jlbriggs/zhr142jy/

If you mean that you just want the colors in a different order, you can define the colors array yourself:

  • http://jsfiddle.net/jlbriggs/zhr142jy/2/

If you mean something else, add more detail to your question to clarify.

like image 152
jlbriggs Avatar answered Oct 27 '22 00:10

jlbriggs