Good Evening,
I would like to customize the labels displayed in a Stacked Column Chart in order to be able to display some text coming from the series metadata, is there any way to do it?
Thanks
Best Regards
- Luca Berti asked 4 years ago
- You must login to post comments
Hi Luca
Not really, it would require making changes to the code to achieve this (or creating derived classes). I can show you where in the code if you are interested (since you are source-code customers)?
Take a look at StackedColumnSeriesDrawingProvider.DrawColumnsNew (scichart wpf v6).
There’s some code in there which draws the columns and the text labels using the RenderContext.DrawText function. You could modify this here to inject some extra text. StackedColumnSeriesDrawingProvider.DrawColumnsNew has access to metadata.
Let me know if this helps
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
-
Hi Andrew, thanks for your answer. In the end I managed to achieve my target using a MultiBinding on the LabelTextFormatting property of the StackedColumnRenderableSeriesForMvvm. Using this approach I’m now also able to display different texts also depending on the size in pixels of the tyre bar (i.e. if the size is bigger I can display more information on it)
-
Great! Glad you got it resolved. If you had time, share a code snippet below for future users. Thanks!
- You must login to post comments
Please login first to submit.