Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Linechart custom tooltip? (Read 1654 times)
Dl123456
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Jul 22nd, 2019
Linechart custom tooltip?
Jul 22nd, 2019 at 9:22am
Print Post  
Hi,

I'm new to wpf & Mindfusions chart.

I have a linechart with xaxis as datetime, but the tooltip shows X as a double.
How can I set the tooltip to show the actual xaxis datetime rather than a double?

Also, can I change the look of the tooltip? (colours, etc)

Thank you

D
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 2164
Joined: Oct 19th, 2005
Re: Linechart custom tooltip?
Reply #1 - Jul 22nd, 2019 at 12:25pm
Print Post  
Hi,

At this time you could show dates as custom-text tooltips -

Code
Select All
series1.ToolTipType = ToolTipType.CustomText;
series1.ToolTipText = new List<string>() { "2019-1-15",  2019-1-31", "2019-2-15", "2019-3-31", "2019-4-1", "2019-4-30", "2019-5-15", "2019-6-30" }; 



You'll have to add as many tooltip labels as data values.

For customizing tooltips appearance, try defining standard WPF templates for the tooltip control -
https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/tooltip-styles-an...

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint