Show custom value in tool tip on each bar series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Show custom value in tool tip on each bar series

Post by Neelam » Mon Oct 22, 2012 11:45 am

Hi

How to add/Show custom value in tool tip on each bar series.
I am creating a series having multiple datapoints and want to show tooltip on each datapoint series with some custom value(i.g except..Xvalue/Yvalue/Marks'svalue/Label'sValue of datapoints)

fyr..below is my code which adding datapoints in series.
--------------------------------------------------
foreach (var point in qry)
{
yValue2 += point.YColumn2;
xValue = xValue + point.XColumn;
//seriesInc.Labels.Add(point.SkuID + "-" + point.Description);
seriesInc.Add(xValue, point.YColumn);
seriesCum.Add(xValue, yValue2);

//seriesInc.Tag = point.SkuID + "-" + point.Description;
}

seriesInc.Title = strTitle1 + SelectedUnitOfMeasure.UnitsOfMeasureName;
seriesInc.VertAxis = Steema.TeeChart.Silverlight.Styles.VerticalAxis.Left;

seriesCum.Title = strTitle2 + SelectedUnitOfMeasure.UnitsOfMeasureName;
seriesCum.VertAxis = Steema.TeeChart.Silverlight.Styles.VerticalAxis.Right;

seriesInc.Marks.Visible = false;
seriesCum.Marks.Visible = false;
----------------------------------------------------
In attached screen shot,tooltip is showing YValue(e.g 43.356), instead of it i want to show something "1-SKU1"

Please help in this.

Regards
Satyendra
Attachments
BarSeriesWithToolTip.png
ScreenShot
BarSeriesWithToolTip.png (44.75 KiB) Viewed 5739 times

Yeray
Site Admin
Site Admin
Posts: 9601
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Show custom value in tool tip on each bar series

Post by Yeray » Mon Oct 22, 2012 2:05 pm

Hi Satyendra,

You can customize the MarksTip text as discussed here:
showing custom text unsing marksTip

If you need the series index and the value index to customize the text to show, you should use OnMouseMove event in a similar way than the exposed here:
Customizing MarksTip Tool
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply