In my barchart Y axis decimal values are repeated when i displayed values as one decimal place(please check the attachment)
From my jsonData i got the values as 0.2 after fixed decimal places. the problem appears when template is used like below
when i remove the template it will working fine? please let me know what's wrong with my custom template? my requirement is the y axis should come as 0.0,0.1,0.2
Full Code
From my jsonData i got the values as 0.2 after fixed decimal places. the problem appears when template is used like below
axislable = [{<br> title: { text: this._properties['chart.y-axis.label'] },<br> labels: {<br> template: "#= kendo.toString(value, '0,.0;(0,.0)') #" + cuntomPrimaryFormat<br> },when i remove the template it will working fine? please let me know what's wrong with my custom template? my requirement is the y axis should come as 0.0,0.1,0.2
Full Code
$("#KPIGraphCommon").kendoChart({<br> legend: {<br> position: "top"<br> },<br> series: this._properties['chart.x-axis'],<br> valueAxes: axislable,<br> categoryAxis: catagoryAxisValue,<br> theme: "Metro",<br> tooltip: {<br> visible: true,<br> format: "{0}%",<br> template: this._properties['chart.y-axis.label'].indexOf("Amount") > -1 || this._properties['chart.y-axis.label'].indexOf("Days") > -1 ? "#= series.name #: #= kendo.toString(MinusFormat(value)) #" : "#= series.name #: #= kendo.toString(value, '0,.0;(0,.0)') #"<br> },<br> chartArea: {<br> height: context.getChartHeight(),<br> width: context.getChartWidth()<br> },<br> });<br> }