I am trying to change the colours in a goolge stacked chart. I can not seem to replicate the suggestion given for color argument in the help file of 'gvisSteppedAreaChart'
df=data.frame(year=1:3, val1=c(1,3,4), val2=c(23,12,32))
SteppedArea1 <- gvisSteppedAreaChart(df, xvar="country", yvar=c("val1", "val2"),
options=list(isStacked=TRUE))
plot(SteppedArea1)
SteppedArea1 <- gvisSteppedAreaChart(df, xvar="country", yvar=c("val1", "val2"),
options=list(isStacked=TRUE),
colors="{color:[red','#004411']}")
plot(SteppedArea2)
I think there is a typo in the help file, or perhaps I am not specifying a HTML color string correctly (my HTML is very hazy)?