SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+