javascript - Angular-Kendo Stacked charts with percentage formatting -
on 100% stacked chart, cannot valueaxis format property render full % amout 0 100%.
please see plunk here: http://plnkr.co/edit/2nvnbdshadaspoejbhzn?p=preview
you'll find it's simple example, index.html file , 1 script.js. $scope.chartoptions object assigned in script.js.
it incorrectly displaying percentage :
0% 0.2% 0.4% ... 1%
the html div defined follows:
<div kendo-chart k-options="chartoptions" k-rebind="chartoptions"></div>
i've read online samples, , read kendo docs @ http://docs.telerik.com/kendo-ui/api/javascript/kendo#methods-format.
and i've tried kendo.tostring("{0}", "p")
format property, can't it.
http://demos.telerik.com/kendo-ui/bar-charts/stacked100-bar
your appreciated.
thanks, bob
per discussion , identified issue, don't need remove 'format'
, in plunker, 'format': '{0}%'
not valid. if change following, can keep format
, have results wish
see valid kendo number formatting more information
"valueaxis": { "labels": { "format": "p0", /*or "p" include decimals*/ "rotation": -30 }, "line": { "visible": false }, "axiscrossingvalue": 0 } }
Comments
Post a Comment