how can I dynamically change the x-range for a time-series in apps?
I’ve found the “xAxis” property in the highcharts documentation with min and max values but don’t know how to set it properly (neither manually nor dynamically) (xAxis.min | Highcharts Stock JS API Reference)
OK, I might be be missing something here but how about neither setting minnormax in the first place? The plot then should scale its axis according to the min and max values stemming from the data… At least this is the default behavior I’ve experienced so far.
Can you post your current code to make it easier to comprehend?
Thanks for the reply. The major problem is that when not specifying min and max, the data simply gets cut off so I currently have to manually filter to the desired time window in the workflow.
The raw data is sampled every 5 minutes, and the displayed data cuts off after 100 samples (8 hours and 15 minutes)
Have you tried adding "type": "datetime" to your xAxis definition? Seems to me as if your visualization is unaware of the axis type. When you have OD timestamps as x values, they might moreover be interpreted as simple strings and therefore your visualization might stop after 100 samples (100 sounds like a likely default threshold…).
For an App of mine, I was able to have a dynamic scaling on my axis (actually yAxis in my case but inverted plot) when I chose milliseconds unix time for the timestamp data (e.g. 1614222003000 for Thu Feb 25 2021 03:00:03 GMT+0000, your min and max values seem to be seconds unix time BTW) and datetime as axis type.
Also note, that a zoomable visualization might come in handy if you have both high resolution and long interval for your data points.
My config back then was as follows (plotting time spans from start to end on an inverted bar chart):