- Welcome, Guest. Please Login or Register
MindFusion  
  We have released initial version of MindFusion.JavaScript pack. It includes chart, diagram, calendar, map, virtual keyboard, gauge and UI components. Here are more details and live demo for anyone interested.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
Linechart custom tooltip?
Read 1342 times

Dl123456   Offline
YaBB Newbies
*
Posts: 1
I Love MindFusion!


   
     
 
Linechart custom tooltip?
Jul 22nd, 2019 at 10:22am
 
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
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1912
Gender: male
tech.support


   
     
 
Re: Linechart custom tooltip?
Reply #1 - Jul 22nd, 2019 at 1:25pm
 
Hi,

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

Code:
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
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print