Dynamic binning of time-series data on zoom #2669
Unanswered
ibnesayeed
asked this question in
Q&A
Replies: 1 comment
-
I am not aware of anyway to change the type of binning dynamically upon zooming. Vega-lite does some automatic formatting of the axes depending on the data in the chart, so you might be able to achieve something similar to what you want by using a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose, we have a time-series data of a web server access log. We want to render a bar plot of number of requests to the server per unit time. Suppose, we bind the interactivity of the chart so that it only responds on x-axis on zoom. Now, we would like for the bar plot to change the bin size (time unit) as we zoom in and out. Suppose, initially it was a daily count, on zooming in it should turn into an hourly bar plot (and per minute or per second on further zooming in), and weekly, monthly, and yearly on zooming out. The y-axis scale should change to reflect the changing heights of bars.
Is this something possible with Altair? If so, any examples or code samples for this behavior would be wonderful.
Beta Was this translation helpful? Give feedback.
All reactions