Brunel-Visualization / Brunel

Brunel Visualization
Apache License 2.0
290 stars 77 forks source link

Select the y fields to display using legends #84

Open just4li opened 8 years ago

just4li commented 8 years ago

This is an enhancement request.

I am using both Zeppelin and Brunel side by side during my IoT Analytic Prototyping. One of the Zeppelin feature I wish available in Brunel is displaying Y fields by selecting legends(mainly in line chart).

Brunel offers interaction() and selection() to show certain fields in the chart, however, the implementation is you will have 2 separated charts plotted. The lower block chart is big and listed the fields on the top chart. By selecting one or multiple blocks, the top chart changes accordingly.

Zeppelin does a better job in my opinion. It integrates the selection feature with legends. by click the legend color square, the fields will be displayed or disabled. It makes the real chart much bigger and cleaner.

grahamwills commented 8 years ago

As a comment, you can use the "at" command to place the secondary "legend" chart in a smaller space.This is designed as a general feature that makes it possible to create unusual and novel legends, but yep, I agree it makes it cumbersome to do the standard legend selection technique.

To make this easier, we could just have legends, by default, be interactive so that when you click on them, it modifies the selection as is common. Unless you use the selection field for the main chart, this would have no effect, so I think it wouldn't cause issues for people not using it (i.e.their charts won't suddenly change!) and seems natural for those who have used selection and legends.

Any comments or other thoughts welcome

grahamwills commented 8 years ago

trickier than I thought ... will attempt again later