如何更改gvisAnnotationChart的chartArea背景色?
我try 了这个,但没有成功(我试图复制我在this answer)中看到的东西)
gvisAnnotationChart(
...,
options = list(
...,
chart = list(
backgroundColor = "#D3D3D3"
)
)
)
如何更改gvisAnnotationChart的chartArea背景色?
我try 了这个,但没有成功(我试图复制我在this answer)中看到的东西)
gvisAnnotationChart(
...,
options = list(
...,
chart = list(
backgroundColor = "#D3D3D3"
)
)
)
这是使用软件包演示中的一个图表,其中指定了一个背景 colored颜色 选项,这样您就可以看到它是如何记录的.
因为gvisAnnotationChart
有侧面板、图表区、图表和其他指定的面板类型区域,所有这些区域都可能有不同的背景,所以您必须针对这种类型的图表进行具体说明.
library(googleVis)
data(Stock)
plot(gvisAnnotationChart(Stock, datevar="Date",
numvar="Value", idvar="Device",
titlevar="Title", annotationvar="Annotation",
options=list(
displayAnnotations=TRUE,
# make it blue
chart = "{chartArea:{backgroundColor:'#003b70'}}",
legendPosition='newRow',
width=600, height=350)))