Hello!
I’m developing a monitoring dashboard leveraging the power of the Vaadin Charts and the Timeline, and I’m very impressed by the two.
I know it could sound a little strange, but I need to be able to change/reset the visible time range of the entire timeline, including the bottom browser. I analyzed the API and to my understanding it only permits to alter the visible range of the graph only and not the browser. In particular, I would like to be able to shrink the displayed timespan the browser is showing.
I noticed it dinamically expands if you add data points to your datasource, but once it has grown, I found no way of resetting/shrinking it.
Think for example a Timeline with two datasources, one which spans a one year timespan, the other covers a two years one.
If the user removes from the timeline the two years datasource, I would be able to shrink the entire timeline/browser to only display a one year interval.
I am investigating what could be the best way to do this, if feasible. I’m thinking of extending the widget to implement custom behaviour but it would be my first time on the client side, so it would be quite an hard job.
I also wonder if this is a requested feature / is on the roadmap yet.
As a side note, if you are curious, what I’m doing is using a Timeline ( in fact only the timeline browser, the graph is hidden ) as a master controller on the page, to control the timespan displayed on all other charts dinamically added to the page. This is working pretty good.
Cheers,
Federico