Format Currency

2 posts, 0 answers
  1. Michael
    Michael avatar
    66 posts
    Member since:
    Dec 2009

    Posted 13 Aug Link to this post

    Below is my kendo chart where I'm binding the datasource via angular.  The data displays but I want my field which is monthTotal to be formatted as currency.

    <div kendo-chart
    k-legend="{ position: 'bottom' }"
    k-series-defaults="{ type: 'line' }"
    k-series="[ { field: 'monthTotal', name: 'Monthly Total', categoryField: 'invoiceDate' } ]"
    style="height: 250px;"></div>

  2. Daniel
    Daniel avatar
    2109 posts

    Posted 17 Aug Link to this post

    Hello Michael,

    Assuming that you are referring to the values displayed by the axis, you should set the valueAxis.labels.format option to format the values as currency e.g.
    <div kendo-chart
        k-value-axis="{ labels: { format: 'c' } }"

    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top