Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 78072

Donut Chart with Custom Format / Label Point

$
0
0

Is possible apply a Style for an item in the serie just when it is Selected?. I want to show the value as normal behavior display mode outsite, but show the percentage when is selected and display mode inside. In the override method LabelForDataPoint I'm able to detect when is selected but when I apply the style is applied for entire serie not just for the datapoint selected.

if(series.Index == (nuint)selectedSeriesIndex ; dataIndex == (nuint)selectedDataPointIndex)<br>
   series.Style.PointLabelStyle.LabelOffset = newUIOffset(0, -50);
   returnnewTKChartPointLabel(dataPoint, series, string.Format("{0}%", percentage));
}

I add an image with desired behavior.

Regardsk


Viewing all articles
Browse latest Browse all 78072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>