Skip to content

Commit

Permalink
Merge pull request #1 from trinketapp/eah13-patch-1
Browse files Browse the repository at this point in the history
set series index to match legendIndex
  • Loading branch information
brianpmarks authored Jun 10, 2016
2 parents 168563c + 7c161ea commit 855fe26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ var $builtinmodule = function(name) {

for(var i = 0; i < chart.series.length; i++) {
chart.series[i].legendIndex = chart.series.length - i;
chart.series[i].index = chart.series.length - i;
}

if (renderer) {
Expand Down Expand Up @@ -332,4 +333,4 @@ var $builtinmodule = function(name) {
});

return mod;
}
}

0 comments on commit 855fe26

Please sign in to comment.