删除 highcharter R 中的网格线
Remove grid lines in highcharter R
我已经从 highcharter R 包创建了自己的绘图主题。我想删除背景中的白色水平线。我曾尝试将“gridLineWidth”设置为 0,但没有成功。这是我当前图表的图片。任何帮助将不胜感激。
my_theme = hc_theme(
colors = c(
"#5daa45","#0066b2","#d51f3a", "#983794", "#ebe71c", "#5196bc"),
chart = list(
backgroundColor = "#242932",
gridLineWidth = 0
),
title = list(
style = list(
color = "#e8e8e8"
# fontFamily = "Lato"
)
),
subtitle = list(
style = list(
color = "#e8e8e8"
# fontFamily = "Shadows Into Light"
)
),
legend = list(
itemStyle = list(
# fontFamily = "Tangerine",
color = "#e8e8e8"
),
itemHoverStyle = list(
color = "#e8e8e8"
)
)
)
没有API *chart*.gridLineWidth
属性: https://api.highcharts.com/highcharts/chart.gridLineWidth
但是,*yAxis*.gridLineWidth
和 *xAxis*.gridLineWidth
有一个:https://api.highcharts.com/highcharts/yAxis.gridLineWidth and https://api.highcharts.com/highcharts/xAxis.gridLineWidth :)
我已经从 highcharter R 包创建了自己的绘图主题。我想删除背景中的白色水平线。我曾尝试将“gridLineWidth”设置为 0,但没有成功。这是我当前图表的图片。任何帮助将不胜感激。
my_theme = hc_theme(
colors = c(
"#5daa45","#0066b2","#d51f3a", "#983794", "#ebe71c", "#5196bc"),
chart = list(
backgroundColor = "#242932",
gridLineWidth = 0
),
title = list(
style = list(
color = "#e8e8e8"
# fontFamily = "Lato"
)
),
subtitle = list(
style = list(
color = "#e8e8e8"
# fontFamily = "Shadows Into Light"
)
),
legend = list(
itemStyle = list(
# fontFamily = "Tangerine",
color = "#e8e8e8"
),
itemHoverStyle = list(
color = "#e8e8e8"
)
)
)
没有API *chart*.gridLineWidth
属性: https://api.highcharts.com/highcharts/chart.gridLineWidth
但是,*yAxis*.gridLineWidth
和 *xAxis*.gridLineWidth
有一个:https://api.highcharts.com/highcharts/yAxis.gridLineWidth and https://api.highcharts.com/highcharts/xAxis.gridLineWidth :)