Closed martinschmelzer closed 5 years ago
Yes, you are correct. Only character value were allowed for colorvar
. I have updated this now to allow for either character or numeric values. Your example produces a gradient colour scale with the developer version of googleVis on GitHub.
Great! Thanks for solving this that quick!
Using the following code
I intend to create a chart where the Profit column of the Fruits data is mapped to a gradient color scale from yellow to red. But the result does not show the gradient color scale. Somehow, in the JS output, the Profit column is of type string (in contrast to the R dataframe column) which prevents the gradient scale to be applied:
Not sure if this is a bug?