javascript - Highcharts - Reverse order of negative stacked series -


is there way reverse order of negative stacked bars?

i using highcharts render stacked bar chart. when graph render stacks starts y 0-line , render them in order result in negative stacks reversed.

example (http://jsfiddle.net/moppa/6tenw/2/):

if read graph bottom top following result
series except "grapes" order joe, jane, john
"grapes" series order jane, joe, john

the grapes series not complying order in legend box. there way fix this?

code comply stack overflow guidelines:

$(function () {     var chart;     $(document).ready(function() {         chart = new highcharts.chart({             chart: {                 renderto: 'container',                 type: 'column'             },             title: {                 text: 'stacked column chart'             },             xaxis: {                 categories: ['apples', 'oranges', 'pears', 'grapes', 'bananas']             },             yaxis: {                 title: {                     text: 'total fruit consumption'                 },                 stacklabels: {                     enabled: false,                 }             },             plotoptions: {                 column: {                     stacking: 'normal',                     datalabels: {                         enabled: false                     }                 }             },             series: [{                 name: 'john',                 data: [50, 30, 40, 70, 20]             }, {                 name: 'jane',                 data: [20, 20, 30, -20, 10]             }, {                 name: 'joe',                 data: [30, 40, 40, -20, 50]             }]         });     });  }); 


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -