Series Sorting

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
sri
Posts: 3
Joined: Wed Jul 31, 2019 6:44 pm

Series Sorting

Post by sri » Wed Jul 31, 2019 8:00 pm

Is there any way to arrange series in a particular order. In my case i need to place my stock series first and bar series next in the legend box which i couldn't do.

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Series Sorting

Post by Arction_LasseP » Thu Aug 01, 2019 7:47 am

Hello,

Unfortunately there currently isn't a way to change the order of the series in a LegendBox. The order is determined by the rendering order of the various series types in our source code, meaning that for instance BarSeries is always shown before StockSeries. So unless you have bought access to the source code, this cannot be changed.

A workaround could be to use several LegendBoxes and modify their position (via Offset -property) and visual style so that they seem to appear as one box. Alternatively, an empty dummy series can be created. Disable ShowInLegendBox for the main series and enable it for the dummy series. Use another series type for the dummy to change its position in the LegendBox.

Best regards,
Lasse

Post Reply