You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › Smoothen lines when zoomed out
First of all… GREAT product you have going!
I have one small feature request though. In my use case, it would be really nice if it was possible to have a adaptive resolution flag. What I mean in practice is that I would be able to load high-resolution data in my background ajax call (lets say the resolution is one datapoint every minute), but when showing the graph fully zoomed out, this can get a bit “crowdy” when the line is rendered. However, when showing the same data but an area zoomed in, you might want the full resolution data (without the need of an additional ajax-call).
This way, you can have lets say 5 minute resolution data (averages from the high-resolution data) when zoomed out, but higher resolution when zoomed in.
Thank you for your feedback. If I understood your requirements correctly, you can do that with a few lines of code. Here is a jsFiddle for same.
In case you are looking for something else, could you please send us a pictorial representation of the requirements so that we can understand it properly and assist you accordingly.
Well sort of… if i understand your code correct, it simply hides some staples when its zoomed out?
What i want to achieve is for my code to draw averages in a line chart when zoomed out, but show the fine data when zoomed in.
Say @gregoff, I agree with you. Very good detection
You must be logged in to reply to this topic. Login/Register