Hi Guys,I was wondering if it is possible to automatically convert the values in the data to display currency values. Let's say I have a data set
data = [{ 'Label':'Pen', 'Amount': 1000 },
{ 'Label':'Pencil', 'Amount': 2000},
{ 'Label':'Paper', 'Amount': 3000}];
I would like to Display a dollar $ symbol with the values or it would be better if values like 1000 are truncated as $1k and the same is reflected all over the graph while displaying final values and even while using the tooltip.
Hello Vicky,
Yes you can format the labels of the igCategoryChart. To do so you should provide a function to xAxisFormatLabel or yAxisFormatLabel options of the chart. You may check this online sample where is shown how to change the labels – “Category Chart - Axis Labels”.
Please let me know if any additional questions on this matter arise.
Thank you for the speedy reply.Is it possible to give me a small working example in angular 6?