The MindFusion Forums | |
Gauge and Chart Components >> WPF >> Linechart custom tooltip?
https://mindfusion.eu/Forum/YaBB.pl?num=1563787340 Message started by Dl123456 on Jul 22nd, 2019 at 9:22am |
Title: Linechart custom tooltip? Post by Dl123456 on Jul 22nd, 2019 at 9: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 |
Title: Re: Linechart custom tooltip? Post by Slavcho on Jul 22nd, 2019 at 12: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" };[/code] 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-and-templates Regards, Slavcho Mindfusion |
The MindFusion Forums » Powered by YaBB 2.6.11! YaBB Forum Software © 2000-2024. All Rights Reserved. |