I have a highstock line chart displaying daily and weekly stock prices for a given stock. Problem is when the data array is large enough the daily data points get "sampled" into weekly data points and weekly data points get sampled down to monthly data points.
Is there any way to set them by user to weekly,or monthly when needed.
Thanks in advance
Check about dataGrouping.
You can set it to get sampled when needed like the example.
Or if you want to disable you can set it to false, like the code bellow or here:
series: [{
type: 'candlestick',
name: 'AAPL',
data: arrayOfData,
dataGrouping: {
enabled: false
}
}]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With