Hi Bram,

The series are listed in the order that they appear in the chart. Since
this is a stacked chart, the 'C' series will be at the top (first), the 'B'
series will be in the middle (second), and the 'A' series will be the
lowest (last). You can reverse the items in the legend by reversing the
order of the actual series, but there's no option to do this.

On Thu, Nov 12, 2015 at 9:20 AM Bram Patelski <[email protected]>
wrote:

> Hi,
>
> I've implemented a stacked chart like this:
>
>  google.load('visualization', '1', {packages: ['corechart', 'line']});
>  google.setOnLoadCallback(drawBackgroundColor);
>
>
>  function drawBackgroundColor() {
>       var data = new google.visualization.DataTable();
>       data.addColumn('date', 'Date');
>       data.addColumn('number', 'A');
>       data.addColumn('number', 'B');
>       data.addColumn('number', 'C');
>       // etc.
>
>       data.addRows([
>  [new Date(2010, 1, 1),0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],
>  [new Date(2010, 2, 1),0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],
>  [new Date(2010, 3, 1),0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0],
>  // etc
>
> However, the columns are in reversed order in the legend.
> It shows "C, B, A" from top to bottom.
> Can I somehow reverse the order of the legend?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to
> [email protected].
> Visit this group at
> http://groups.google.com/group/google-visualization-api.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/d0c6ba0b-bb53-47b1-92c5-58a6ddc378f1%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/d0c6ba0b-bb53-47b1-92c5-58a6ddc378f1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif] *
*Sergey Grabkovsky* | SWE  | [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAEwwup6CHaze02wk5zS42W0cD7kEA5Hyadv7qkM4zMMG0P-Lcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to