glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
738 stars 153 forks source link

Sliders/Options for custom_viewer ordered alphabetically #665

Open astrofrog opened 9 years ago

astrofrog commented 9 years ago

... rather than in the order they were defined. This can lead to strange counter-intuitive orderings.

ChrisBeaumont commented 9 years ago

Is it possible to determine the order in which they were defined, since they are registered via a kwargs dict? (idk whether internally this dict is ordered or not)

astrofrog commented 9 years ago

@ChrisBeaumont - ah right - in that case I think we should provide some kind of mechanism for users to specify the order. This could be an additional widget_order argument for example. I saw an example today where the order really didn't make sense, so it would be good to have this for those rare cases.