Hotspot tool and axis label formatting

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Hotspot tool and axis label formatting

Post by norman » Thu Dec 04, 2008 5:12 pm

Hi,

Is it possible to have different format labels for the bottom axis and for individual points when using the hotspot tool?

I have a time series on my chart and by default the labels on the bottom axis are displayed in the format MM/dd/yyyy (which is fine). When I add a hotspot tool and set the style to "X and Y" the X values are also displayed in the same format. Is it possible for them to be displayed in the fomat MM/dd/yyyy HH:mm:ss without affecting the axis labels?

I tried adding a text value for each of my points as I was adding them, for example:

Code: Select all

' third parameter is label
For i As Integer = 0 To 999
   series.Add(today.AddDays(-i), i * 10, Format(today.AddDays(-i), "MM/dd/yyyy HH:mm:ss"))
Next
and I changed the style of the hotspot tool to Label and Value, which whilst it works for the tooltip (i.e. the X value is displayed in the required format), the labels on the bottom axis also change (i.e. the time is also included). Basically I'd like the hotspot tool tips to include the time but not have the time displayed on the labels for the bottom axis.

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Dec 05, 2008 9:36 am

Hi norman,

You can customize HotSpots text using the GetHTMLMap event as shown in the Interacting with Charts\Mouseover Hints\Trigger Testing Mouseover Marks example in the ASP.NET demo.

Axes labels can also be customized using GetAxisLabel event as shown in Tutorial 4 - Axis Control. Tutorials can be found at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

norman
Newbie
Newbie
Posts: 82
Joined: Fri Jan 25, 2008 12:00 am

Post by norman » Fri Dec 05, 2008 4:15 pm

Hi Narcís,

Many thanks for that. Is there any way that I can control the style of the tooltip that is displayed using the GetHTMLMap event - e.g. for example change the font etc.

Thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Dec 09, 2008 12:36 pm

Hi norman,

I'm afraid this is not possible for now. I've added your request to the wish-list to be considered for inclusion in future releases.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply