hello. currently the number in my tooltip looks like this "$ 1234567" but how do i make it look like "$ 1,234,567"?
$J("#chart").kendoChart({
dataSource: {
data:source,
group: {
field: "MDetail",
dir: "asc"
},
sort: {
field: "Month",
dir: "asc"
}
},
theme: "blueOpal",
title: {
text: "Total Cost of Workforce for " + year
},
legend: {
position: "bottom"
},
seriesDefaults: {
type: "area",
format: "${0:0,000}"
},
series: [{
field: "Amount",
groupNameTemplate: "#= group.value # "
}],
valueAxis: {
labels: {
template: "#= kendo.format('$ {0:N0}', value / 1000000) # M"
},
majorUnit: 100000000,
line: {
visible: false
},
axisCrossingValue: -10
},
categoryAxis: {
field: "Month",
majorGridLines: {
visible: false
}
},
tooltip: {
visible: true,
format: "$ {0:0,000}"
}
});