Page 1 of 1

Show custom value in tool tip on each bar series

Posted: Mon Oct 22, 2012 11:45 am
by 13045482
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

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

Posted: Mon Oct 22, 2012 2:05 pm
by yeray
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