C1U7206
Posts: 1
Joined: Mon Jul 24, 2023 4:49 am

To set the interval of data in one minute instead of five minutes

Mon Jul 24, 2023 4:58 am

Hello.

I am developing a stock chart with 12 hours of data.

What I want to do is set the interval of the initial data in a minute.

There is data that falls from 100 to 0 at short intervals, so if you don't zoom in and check it, you can't check the data in the chart when you look up every 5 minutes.

Currently, the interval for initial data is set in 5 minutes.
However, if you zoom in, the interval is reduced little by little from five minutes.

I don't know if I need to fix this xAxis or Series.

I attach my code.

xAxis: {
crosshair: {
width: 1,
color: '#1c7ed6',
dashStyle: 'shortdot',
},
type: 'datetime',
dateTimeLabelFormats: {
second: '%H:%M',
minute: '%m-%d %H:%M',
hour: '%m-%d %H:%M',
day: '%y-%m-%d',
week: '%Y-%m-%d',
month: '%Y-%m',
year: '%Y',
}
},
series : [{
data: ...
pointStart: ....
pointIntreval: 60000
} ...forEach]


Please help me.

jakub.s
Posts: 984
Joined: Fri Dec 16, 2022 11:45 am

Re: To set the interval of data in one minute instead of five minutes

Mon Jul 24, 2023 9:39 am

Hi,

Welcome to our forum & thanks for the question!

I'm sorry, but I'm not sure if I fully understand your question. Could you please elaborate on this?

Also, could you reproduce this problem in an online code editor (you can start here: https://jsfiddle.net/BlackLabel/vyb7oq4s/)?

(I'm not sure if that's the case, but you have a typo in your config - pointIntreval instead of pointInterval so maybe that's the cause of your issue).

I'll be waiting for your response.

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Stock”