The clearChart is very useful when I need to reload data and categories for a chart.
When using drillsteps the breadcrumbs aren't reset. I need this to be able to combine the formfilter with the drillstep function. A simple typical use case could be using the formfilter to filter on dates and using the drillstep for detailed data. Now, I am not sure that the formfilter is intended to be used with charts but, it does work. Unfortunately the breadcrumbs can't be reset. This is a problem in the following scenario:
Chart show sales with categories "Country" for level 1, "State" for level 2 and "City" for level 3. The formfilter is for year (2014 and 2015).
If I drill to City level and apply the filter to show only 2014. The chart is updatet, but if i click on the label for "State" I get the unfiltered values. It would be really helpful to be able to reset the breadcrumbs, so it would just display the "Start" label. Is there any way to achieve this?
I have searched the source files but, I have not been able to come up with a solution.
I found a solution. I made a function that resets the breadcrumps. The function is:
resetBreadCrumbs: function() { drillLabelList = []; currentDrillDownStep = 0; }
I'll make a pull request.
The clearChart is very useful when I need to reload data and categories for a chart.
When using drillsteps the breadcrumbs aren't reset. I need this to be able to combine the formfilter with the drillstep function. A simple typical use case could be using the formfilter to filter on dates and using the drillstep for detailed data. Now, I am not sure that the formfilter is intended to be used with charts but, it does work. Unfortunately the breadcrumbs can't be reset. This is a problem in the following scenario:
Chart show sales with categories "Country" for level 1, "State" for level 2 and "City" for level 3. The formfilter is for year (2014 and 2015).
If I drill to City level and apply the filter to show only 2014. The chart is updatet, but if i click on the label for "State" I get the unfiltered values. It would be really helpful to be able to reset the breadcrumbs, so it would just display the "Start" label. Is there any way to achieve this?
I have searched the source files but, I have not been able to come up with a solution.
Regards,
Loke