This is a migrated thread and some comments may be shown as answers.

Format Currency

1 Answer 639 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 Aug 2016, 08:20 PM

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' } ]"
k-data-source="refunds6Months"
style="height: 250px;"></div>

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 17 Aug 2016, 06:52 AM
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' } }"


Regards,
Daniel
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Charts
Asked by
Michael
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or