Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
formatting y-axis labels and tooltip values in igDataChart for jquery.
posted

Hi,

I want to format y- axis labels in currency format like 10000 should look 10,000. I also have written a java script function that formats the currency. I tried to use formatLabel as described in the link http://ko.infragistics.com/community/forums/p/71144/360406.aspx#360406.It works well for x-axis because values are known and are string. But in y axis all values are not known and are numeric and we have to convert numeric to formatted string.

I am just passing min and max values and steps are generated automatically, so I don't have clue about how to format internally generated steps.

similarly in the Tooltip, i am displaying is by using say "tooltipTemplate: '<div class="tooltip">${item.Label}</div><div>$$(lbl_budget): ${item.Budget}</div>".

now item.Budget is numeric value say 10000.But i want to display 10,000. So, how to format this value using my own function.

Thanks & Regards,

Bipul Kumar