简体   繁体   English

在Telerik HTML图表中格式化Y字段值

[英]Formatting Y field values in telerik html chart

Is there any way to format DataFieldY on telerik RadHtml Charts? 有什么方法可以格式化Telerik RadHtml Charts上的DataFieldY?

I tried following code; 我尝试了以下代码;

RadHtmlChart3.PlotArea.Series[0].DataFieldY = String.Format("{0:0.00}","veriyuzde");

which produced no change. 没有变化。

Also, I used this 另外,我用这个

RadHtmlChart3.PlotArea.YAxis.LabelsAppearance.DataFormatString = "N";

but it only formats the labels when I want to format the values. 但只有在我要格式化值时才格式化标签。

Am I missing something or is it impossible? 我是否想念某些东西还是不可能?

Thanks in advance. 提前致谢。

Check out this chart structure diagram . 查看此图表结构图 I think what you want to update is the "Series Item Label", right? 我认为您要更新的是“系列商品标签”,对吗?

You can do that by 你可以这样做

chart.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0:0.00}";

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM