I need to combine ChartRangeFilter with BarChart. This is currently not supported, because CharRangeFilter works on continuous axis, while BarChart needs discrete x-axis.
On x-axis I have equidistant data ( January 2010, February 2010...)
My first step was to create data table with two x-axis columns. The first column is continuous and the second one is string ("Jan 2010"). Then I do something like this:
ChartRangeFilter.setView({'columns': [0,2]});
BarChart.setView({'columns': [1,2]});
That is - to
ChartRangeFilter I set continuous axis and to
BarChart column with discrete axis.
I see, that I can not bind the two chart by standard dashboard.bind, but I have to write my own hadler hoked on ChartRangeFilter statchange listener.
My problem is, how to set data to BarChart in the linstener handler. I know, how to find start and end of the ChartRangeFilter, but how to fiter the data table and pass it to the BarChart?
Thanks for any hint!