我有这个谷歌图表时间线(使用 react-google-charts)。
<Chart
chartType="Timeline"
data={data}
width="100%"
options={{
allowHtml: true
bar: { groupWidth: 10 },
}}
/>
我尝试添加bar: { groupWidth: 10 }
并在正常条形图上工作,但不在时间线上。
例如,在这里尝试这个 jsfiddle:https ://jsfiddle.net/c5hyknfr/2/
不适用于时间线。还有其他方法吗?
编辑:增加了赏金,以防有人知道 CSS 和/或使用类的任何解决方法。Hacky 解决方案已获批准。