shreshtha
Posts: 25
Joined: Thu May 26, 2022 8:15 am

Re: HH:MM:SS on y-axis, better way?

Hi Droiddk the below url is not opening
http://jsfiddle.net/droiddk/nadowtt7/
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: HH:MM:SS on y-axis, better way?

Hi shreshtha,

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

If there is anything we can help you with, feel free to ask any questions.

Regards!
Mateusz Bernacik
Highcharts Developer
shreshtha
Posts: 25
Joined: Thu May 26, 2022 8:15 am

Re: HH:MM:SS on y-axis, better way?

I have y axis value in HH:MM how do I plot the series and show the tooltip? My x-axis is in DD/MM/YYYY. Facing issue with y-axis plotting
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: HH:MM:SS on y-axis, better way?

Hi shreshtha,

It sounds like you want to have both datetime axes and type property can be used to set axis type to datetime. The rest should work out of the box. If that doesn't work, please provide me with a sample of your data and I'll show you how to create a chart based on that.

Regards!
Mateusz Bernacik
Highcharts Developer
shreshtha
Posts: 25
Joined: Thu May 26, 2022 8:15 am

Re: HH:MM:SS on y-axis, better way?

I have data like below:
data = [[1652414400000, 7692, 1652421504, 'America/New_York"]]
data[0][0] -> x axis's value in epochdate of timezone data[0][3] i.e 'America/New_York'
data[0][1] -> y axis's value in milliseconds
data[0][2] -> tooltip value in epochdate of timezone data[0][3] i.e 'America/New_York'
data[0][3] -> each points timezone

Below are my issues:
how to plot y-axis? -> Y axis should have label in hours like 0,1,2... The point 7692 is 0.002hours so it should get plotted between 0-1 hours
displaying tooltip? -> 1652421504 should be displayed as 13/05/2022 1:58 am EDT

For any time conversion I use moment.js
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: HH:MM:SS on y-axis, better way?

Hello shreshtha,

Could you make it clearer, for example somehow illustrate or send a demo with the stage you stopped at? It is not entirely clear to me what you would like to achieve.

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Usage”