chiasm-project / chiasm

A browser based environment for interactive data visualizations.
MIT License
184 stars 27 forks source link

Develop a UI for switching between visualizations AND configuring them #17

Open curran opened 9 years ago

curran commented 9 years ago

This involves having a dedicated form-based UI for configuring each visualization type. The user should be able to switch between Scatter Plot, Line Chart, Box Plot, Bar Chart, and Pie Chart. Each time the user switches the visualization type, the configuration option UI should update to show options specific to the loaded visualization.

This component will effectively be an interactive version of the visualization feature set that Chorus already implements as a multi-step process.

Hypercubed commented 9 years ago

Where do you store the options "specific to the loaded visualization"? This is something we briefly discussed but I am still struggling with. It seams to me the that chiasm plugins needs to be explicit about the configurations options available.

curran commented 9 years ago

This is something I'm still struggling with as well. Each plugin needs to declare a list of "publicProperties", which are exposed to the Chiasm configuration, but these do not specify which kinds of UI elements would be appropriate for editing each parameter.

One approach I'm thinking of taking is to have the user interface for visualization configuration embedded within the visualization itself. For example, clicking on the X axis could bring up a menu to select the X column.

Alternatively, the UI elements could be external to the visualization, and a separate plugin can implement the configuration user interface for each visualization.