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?
- chris grant asked 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Please login first to submit.