With the primary functionality for each plot type of plot app migrated, we need to make sure the previous functionality of the legend click event and graphic click event is being supported.
For changing the legend click event, we want to support the legend_markdown_pattern and disable_default_legend_click properties. More information can be found in the README.
legend_markdown_pattern - implemented as a string array that are used for changing the displayed value and also allowing data modelers to create the text as a link. plots[x].traces[x].legend_markdown_pattern
disable_default_legend_click - implemented as a boolean property to disable the default legend click event. plots[x].config.disable_default_legend_click
for example, the legend for pie charts allow the user to click a legend property. Single click will hide the pie slice associated with the clicked legend text. Double click will show only the pie slice associated with the clicked legend text
with this property set to true, the default single and double click events should be turned off
These 2 properties should work for the following types to maintain previous functionality:
[x] pie
[x] bar
[x] violin
make sure disable_default_legend_click also works for:
[x] dot
[x] histogram
For changing the graph click event, we want to support graphic_link_pattern. More information can be found in the README.
graphic_link_pattern - implemented as a string array or a just a string to allow for graph click events to navigate to other pages. plots[x].traces[x].graphic_link_pattern
this property should work for the same types listed above:
[x] pie
[x] bar
[x] violin
NOTE:
For violin plot, the location of the configuration values differs from the other plot types.
The implementation for allowing customized click events for the legend and graph was initially discussed in issue #106 . More details can be found there and in the plot functionality document.
Future implementation of these properties (graphic_link_pattern and legend_markdown_pattern) should be expanded to dot and histogram.
With the primary functionality for each plot type of plot app migrated, we need to make sure the previous functionality of the legend click event and graphic click event is being supported.
For changing the legend click event, we want to support the
legend_markdown_pattern
anddisable_default_legend_click
properties. More information can be found in the README.legend_markdown_pattern
- implemented as a string array that are used for changing the displayed value and also allowing data modelers to create the text as a link.plots[x].traces[x].legend_markdown_pattern
disable_default_legend_click
- implemented as a boolean property to disable the default legend click event.plots[x].config.disable_default_legend_click
true
, the default single and double click events should be turned offdisable_default_legend_click
also works for:For changing the graph click event, we want to support
graphic_link_pattern
. More information can be found in the README.graphic_link_pattern
- implemented as a string array or a just a string to allow for graph click events to navigate to other pages.plots[x].traces[x].graphic_link_pattern
NOTE: For violin plot, the location of the configuration values differs from the other plot types.
plots[x].config.xaxis.group_keys[x].legend_markdown_pattern
plots[x].config.xaxis.group_keys[x].graphic_link_pattern
The implementation for allowing customized click events for the legend and graph was initially discussed in issue #106 . More details can be found there and in the plot functionality document.
Future implementation of these properties (
graphic_link_pattern
andlegend_markdown_pattern
) should be expanded todot
andhistogram
.