kurtajohnson2002
Posts: 1
Joined: Tue Apr 27, 2021 4:35 pm

thousandsSep Equivalent in Gantt?

I'm building a Gantt chart using the example of left axis as a table. Two of the columns I'm returning should have commas for values greater than 999. These are calculated columns for total cost and total hours. Does Highcharts Gantt have an equivalent of thousandsSep, like the charting tool?
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: thousandsSep Equivalent in Gantt?

Hi,
Welcome to our forum and thanks for contacting us with your question.

For change thousands separator this setting lang.thousandsSep should work at Gantt.
But keep in mind at the example with left axis as a table have xaxis set like date and you need to calculate them in label formatter.

Demo:
https://jsfiddle.net/BlackLabel/ur36tpkv/

API References:
https://api.highcharts.com/gantt/lang.thousandsSep
https://www.highcharts.com/docs/chart-c ... formatting

Let me know if that was what you were looking for.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”