jromero
Posts: 17
Joined: Wed Jan 19, 2022 1:54 pm
Contact: Website Twitter

Chrome shows different categories.

I have chart that is pulling data from a google spreadsheet. Everything works as expected in every browser that I tried(Firefox, Safari, Brave) The problem is that on Chrome the categories for the yAxis is showing as Jan '01 and Feb '01 and I can't figured out why? Anyone can help me please?
Incorrect category on Chrome
Incorrect category on Chrome
Screen Shot 2022-01-19 at 9.12.13 AM.png (103.97 KiB) Viewed 195 times
Here is the chart with showing the correct categories
Correct category on Firefox
Correct category on Firefox
Screen Shot 2022-01-19 at 9.06.36 AM.png (104.13 KiB) Viewed 195 times
here is the example in jsfiddle https://jsfiddle.net/jodarove/g5tco86m/2/

Thank you!
José Romero
Developer
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Chrome shows different categories.

Hi jromero,

Welcome to our forum and thanks for contacting us with your question!

Please try to add this piece of code to your config:

Code: Select all

	xAxis:{
		type: 'category'
	},
Demo: https://jsfiddle.net/BlackLabel/c5z3jwLx/

Seems to be working in chrome. It should guarantee more consisten behaviour across all browsers.

Let me know if that was what you were looking for!
Regards!
Mateusz Bernacik
Highcharts Developer
jromero
Posts: 17
Joined: Wed Jan 19, 2022 1:54 pm
Contact: Website Twitter

Re: Chrome shows different categories.

Hi mateusz.b,

Thank you so much! that piece of code fixed the problem!!

Best,
José
José Romero
Developer
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Chrome shows different categories.

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”