简体   繁体   English

更改剑道库存图表中的轴格式

[英]Changing axis formatting in kendo stock chart

Think that I have a chart as you can see in the following url: 认为我有一个图表,您可以在以下网址中看到:

http://demos.telerik.com/kendo-ui/financial/index http://demos.telerik.com/kendo-ui/financial/index

I want to change the floating digits of axis that I marked with red rectangle . 我想更改用红色矩形标记的轴的浮动数字。 What setting do I have to edit? 我必须编辑什么设置?

We can change the template of label using the following setting: 我们可以使用以下设置更改标签模板:

valueAxis: {
    //majorUnit: 0.2,
    labels: {
      template: "#=  kendo.toString(value, '0,.0;(0,.0)') #" + "%"
    }
  }

Here is the full sample . 这是完整的示例

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

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