Search code examples
teleriknumber-formattingradchart

How to format values within the data point tooltips in a RadChart?


I want to format the display of numeric values in an ASP.NET RadChart's tooltips. For example, instead of showing 100000, I want the text to read "1.0e5". For the axes, the property to set is as follows:

chart.InnerChart.PlotArea.YAxis.Appearance.CustomFormat = "0.##E+0";

There must be a similar property on the chartSeries to similarly format the tooltips, but so far I have failed to locate it. Does anyone know?


Solution

  • For each ChartSeriesItem in the chart, you can set the ToolTip in the following manner:

    e.SeriesItem.ActiveRegion.Tooltip = string.Format("{0:0.###e+0}", value);