Legend

It can be configured Legend on stacked_chart in xml ???

There is no possibility to do in via xml, because the legend has to be defined before loading of data.

Ok …

Maybe in future :smiley:

I see event can be done by clicking on a chart, Legend is clickable how can i add some sorting or filtering throws legend ???

I see event can be done by clicking on a chart, Legend is clickable how can i add some sorting or filtering throws legend ???

The event onLegendClick takes 3 arguments:

  • event object
  • series index (or null)
  • html element of clicked legend item

Exemples of filtering and sorting can be found in chart package:

dhtmlxChart/samples/08_dynamic/04_filtering.html
dhtmlxChart/samples/08_dynamic/03_sorting.html