Question

I am calling gvisMotionChart from the R package googleVis and I would like to set the colorvar parameter to "Unique colours". I tried colorvar="Unique colours" but it doesn't work for me.

I would also like to set it to select=All by default, although I am not sure if this option can be passed on right now.

Any ideas?

Was it helpful?

Solution

You should pass a list of options to gvisMotionChart command, like this

..., options=list(state='{"colorOption":"_UNIQUE_COLOR"};')

I don't know if there is an option for selecting all items. I usually select a couple of them, using iconKeySettings in the state definition, like this:

"iconKeySettings":[{"key":{"dim0":"actual"}},{"key":{"dim0":"baseline"}}]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top