Pre loader

RolloverModifier

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

I am doing all of my integration with SciChart using c# code.
Is there a way to simply customize the text of the Rollover modifier?

By default it shows

“`
x: somevalue
y: somevalue
z: somevalue

“`

when a data point is selected. I would like to simply change it to

“`

Time: somevalue
Profit: somevalue

“`
Is there a way to do this in pure c# without having to define xml templates etc?

Version
5
  • You must to post comments
0
0

Hi Chris,

Thanks for your inquiry. I am sorry for the late reply.

You have to change the TooltipTemplate for the RolloverModifier. Please take a look at the corresponding documentation:
https://www.scichart.com/documentation/v5.x/webframe.html#SciChart.Charting~SciChart.Charting.ChartModifiers.RolloverModifier~TooltipTemplateProperty.html

And “Styling the Tooltip Item Template” section of the following documentation:
https://www.scichart.com/documentation/v5.x/webframe.html#RolloverModifier.html

However, this is rather a WPF related question and you should look for a solution on dedicated forums. Everything that is done in XAML can be done in code. Unfortunately, we do not have examples that demonstrate how to do templates in code, because this is not a popular way.

Here is one of the examples of how to create a DataTemplate in code:
https://stackoverflow.com/questions/248362/how-do-i-build-a-datatemplate-in-c-sharp-code

Hope this helps.

  • 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