How to toggle between visualizations on a dashboard.

I have created three Plotly visualizations using the Python View node and saved it to a KNIME local path directory.

My objective are

  1. To display each saved visualization at the click of a button on a dashboard created using the composite view.

  2. As an alternative to 1, construct a click event, perhaps using JavaScript, to toggle between the two visualizations instead of just displaying all three on the dashboard.

  3. Obtaining JavaScript code that allows you to toggle between visualizations.

a.
flow

b. HTML file saving.
save directory

c. local file path of holding saved charts

d. An attempt at creating buttons that have should have event listeners

e. The result in mind.

Thank you in advance for all of your assistance.

Hi @setor,
To toggle between different visualizations, I would use a Single Selection Widget together with a CASE Switch Start. Based on the selection widget (turn on re-execution) you can activate one of the branches of the CASE Switch Start and thereby activate one of the view nodes. View nodes in inactive branches will not be shown.
Kind regards,
Alexander

2 Likes

Thank you. I will put that to the test.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.