Search code examples
javascriptjquerykendo-uitelerikkendo-dataviz

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

I want to change the floating digits of axis that I marked with red rectangle. What setting do I have to edit?


Solution

  • 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.