I have two issues with the following 100% stacked area chart:
http://jsbin.com/dofuxudome/1/edit?js,output
1) How can I sort the data source so that second sort field is used?
2) How can I color the areas using the colorField?
2 Answers, 1 is accepted
0
Iliana Dyankova
Telerik team
answered on 29 Dec 2016, 12:26 PM
Hi Morten,
Up to the questions: 1). By default, the grouping overrides the sort order. Therefore to achieve the expected outcome I would suggest the following approach: - Group by the "sort" field; - Sort by the "date" field; - Use the series.name option to display the ranges in the legend.
For your convenience I updated the provided example - http://dojo.telerik.com/@Iliana/OParU
2). Please check the following forum thread which discusses the same scenario: