开发者

how to set lable value with their % value in telerik Pie chart

开发者 https://www.devze.com 2023-02-13 22:51 出处:网络
When I generate telerik Pie chart. I want to concatenate lable value with %data value but I am not getting both values开发者_如何学JAVA.my code-

When I generate telerik Pie chart. I want to concatenate lable value with %data value but I am not getting both values开发者_如何学JAVA.my code-

ChartSeries objChartSeries = new ChartSeries("Pie");
            objChartSeries.Type = ChartSeriesType.Pie;

            objChartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
            objChartSeries.Appearance.LabelAppearance.Visible = true;
            objChartSeries.Appearance.ShowLabelConnectors = true;
            objChartSeries.Appearance.ShowLabels = true;
            objChartSeries.Appearance.DiameterScale = 0.6;

            objChartSeries.DataLabelsColumn = Xtext + "#Y";
            //objChartSeries.DefaultLabelValue = "#Y";

            //RadChart1.Legend.TextBlock.Text = ddlX.SelectedItem.Text.Trim();
            //RadChart1.Legend.Visible = true;

            RadChart1.Series.RemoveSeries();
            RadChart1.Series.Add(objChartSeriesBlank);
            RadChart1.Series.Add(objChartSeries);

            RadChart1.Series[1].DataYColumn = Yval;

            RadChart1.DataSource = dsResult;
            RadChart1.DataBind();

how to set lable value with their % value in telerik Pie chart

I want my chart like E1007(40%)...


objChartSeries.DataLabelsColumn = SomeDecimal.ToString("P");
0

精彩评论

暂无评论...
验证码 换一张
取 消