Vineet
December 1, 2021, 7:57pm
1
Is there an option to set up a feature so that selection on one visual like a piece on the pie chart filters down data on other visuals on the dashboard like a drill down.
jesse
December 1, 2021, 9:06pm
2
Not at the moment. This is part of the long-term “nice to have” projects which the community will consider implementing in the future.
igla
December 3, 2021, 8:45am
3
My colleague developed and just created a pull request for this functionality as we were needed it a lot. It works the same way as Link in the ‘Table’ visualization. You can try!
getredash:master
← ufedor:add-click-for-chart-viz
opened 09:52PM - 01 Dec 21 UTC
## What type of PR is this? (check all applicable)
- [ X ] Feature
## De… scription
I've added a small improvement: click event reaction for Chart visualiztion, opening template-based url with clicked point data substitutions. All the work is done by adding regular 'plotly_click' event handler.
It can be configured from the Visualization Editor. At the bottom of General tab I've added next additional params:
- "Enable link" check box, enabling link functionality for Chart in general
- "Open in new tab" check box
- "URL Template" - works like a Data Labels templates
### URL template
Every curve can be referenced using {{ @@x1 }} {{ @@y1 }} {{ @@x2 }} {{ @@y2 }} ... syntax:
axis with any curve number according to the Series config.
The first met curve X and Y values can be referenced by just{{ @@x }} {{ @@y }} syntax.
Any unresolved reference would be replaced with an empty string.
## Related Tickets & Documents
## Mobile & Desktop Screenshots/Recordings (if there are UI changes)
![Screenshot 2021-12-02 005049](https://user-images.githubusercontent.com/30313021/144319780-7b3c97e6-5eba-4733-afb7-f0be0c23cc86.png)
3 Likes