Pre loader

Custom labels in Stacked Column Chart

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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

Version
6.1.0
  • You must to post comments
0
0

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

  • Luca Berti
    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)
  • Andrew Burnett-Thompson
    Great! Glad you got it resolved. If you had time, share a code snippet below for future users. Thanks!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies