srini@highcharts
Posts: 1
Joined: Wed Oct 20, 2021 7:32 am

Highchart-Stock chart with time period and resolution settings

Hi Team,

Thank you for this great product.

I am new to this Hihgcharts stock chart .I want to know is the below requirement is possible with high charts stock. Please educate me with some example.


My requirement is:

I have couple of time period options like 1 Day,1 month,3 months,6 months and 1 year data. when user clicks on 1 Day period then i want to show the chart with minute resolution (ie., 1 days chart ticks data is to be visible by "minute" wise),if user clicks on 1month then need to show with "hour" resolution. similarly like this-seconds, minutes, hours, day resolution).

Is there nay such option or settings I could achieve this requirement.

Attached the image which explains my requirement.




Thanks,
Srinivas.
Attachments
tradeReq.png
tradeReq.png (66.14 KiB) Viewed 951 times
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Highchart-Stock chart with time period and resolution settings

Hello srini@highcharts,

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

You can achieve exactly something like that with options available for range selector buttons. The most important thing is to make sure that your data has correct format, frequency, and quantity. In the demo you will find an example of how to set different data grouping options for each button.
Demo: https://jsfiddle.net/BlackLabel/am6L18kz/
API reference: https://api.highcharts.com/highstock/ra ... ttons.type,


Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Stock”