Hi again,
maybe im to stupid but it doesn't work on my project. I have my project attached to this mail, maybe you can have a look on it.
Thank's Stephan
>Hi Stephan,
To apply tool tip to the chart the PointsToolTipFormat property has to be set. Please refer the below code snippet which illustrates this:
this.ChartWebControl1.Series[0].PointsToolTipFormat = "{2}";
The PrepareStyle event apply tooltip with the specified text. Please refer the below code snippet which illustrates this:
private void Series_PrepareStyle(object sender, ChartPrepareStyleInfoEventArgs args)
{
ChartSeries series = sender as ChartSeries;
if (series != null)
{
DateTime dateTime = series.Points[args.Index].DateX;
string xValue = dateTime.ToString("dd/MM/yyyy HH:mm");
//ToolTip associated with the ChartPoint
args.Style.ToolTip = xValue.ToString() + "," + series.Points[args.Index].YValues[0].ToString();
args.Handled = true;
}
}
Please refer the sample from the below link which explains you the above:
http://websamples.syncfusion.com/samples/Chart.Web/6.1.0.34/F70940/main.htmAnd also you can get more details on the tooltip property of the chart from the below link:
http://www2.syncfusion.com/ug_61/gridwin/default.htmlPlease let me know if this helps you out.
Regards,
Raji
WebTest.zip