如何在Google时间轴图表中将背景设置为透明? [英] How to set background to transparent in Google timeline chart?

查看:85
本文介绍了如何在Google时间轴图表中将背景设置为透明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Google时间线图表的背景设置为透明.

I am trying to set the background of Google timeline chart to transparent.Timeline Chart

Tried using

backgroundColor: 'none'
backgroundColor: 'transparent'

nothing seems to work.

Also I tried using

alternatingRowStyle: false

to remove the alternating colors in the rows. It does not work either. Any other ideas?

解决方案

Use this to style the alternating rows like the non-alternating ones (works now, until Google implements this option):

svg g:first-of-type path {
    stroke: #e6e6e6;
}
svg g:first-of-type rect:not(:last-child) {
    fill: #ffffff;
}

这篇关于如何在Google时间轴图表中将背景设置为透明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆