Closed kum-deepak closed 3 years ago
Agree, if we are composing an object of all filters, .anchorName()
would be a good choice: it is guaranteed to be a unique identifier for the chart.
It is not sufficiently documented, but it checks if the anchor is an element, if so uses its id; if it's a string selector it removes #
; otherwise it creates a string based on the chart's unique integer id.
Therefore it will work in all cases, and work optimally in the most common case, where unique #id
selectors are used.
I suppose if we wanted we could have another level of customization over that, but it's a great default.
Thanks, Gordon! That is helpful. Initial changes are same as needed for #1777. I will make a merge than diverege.
Implemented in #1795
Ability to do so at the chart and chart group level. This will allow saving / restoring state (in terms of filters) for the entire chart group. Can be used as undo/redo, or to even save in secondary storage across user sessions.
One challeneg remains - how do we identify charts (or dimenions) across sessions. One approach can be chart anchors. @gordonwoodhull any ideas?