Home forums Using CanvasJS Show legend text in a specific order Reply To: Show legend text in a specific order

#27009

@smithfx,

Legends are displayed in the same order in which dataSeries are passed to the chart options. Passing dataSeries to the chart options in the same order as you want in legends should work fine in this case.

If you are still facing the issue in achieving your requirements kindly share JSFiddle with sample data so that we can look into the code, understand the scenario better and help you out.


Shashi Ranjan
Team CanvasJS