Open eteq opened 6 years ago
Just to check, does this work? app.data_collection[0].subsets[0].style.color = 'blue'
? Clearly an intuitive API, no? 😉 If you have a reference to the dataset you can do data.subsets[0].style.color = 'blue'
.
Aha! That does indeed work. So if you like, @astrofrog, you can rename this issue to "make app.data_collection[0].subsets[0].style.color = 'color'
easier to intuit" :wink:
I think adding the style argument (color, opacity) to add_data might be useful.
I agree, and same when making new subsets
Continuing in a series of issues that are "confusing elements of the API" from work on #28 :
It would be useful to have programatic control of the color used for a subset across all visualizations. Alternatively/ideally, also set the color of a non-subset in the same manner.