更改标签的字体大小或字体颜色

change the font size or the font color for the labels

我正在使用 angularjs google 图表 API。我的网页中有多个图表。我想制作其中一个图表 h-axis labels 来隐藏或将标签字体颜色设为白色,这样它就不会显示在网页上。我浏览了 API 但现在似乎没有这样的配置选项。 生成的代码:

是否有修改该特定图表的 svg 元素以隐藏 h-axis labels 的选项。

js代码:

示例代码已尝试但失败:

$scope.chart.options = {
    timeline: {
        showRowLabels: false,
    },
    hAxis: {title: 'Priority', titleTextStyle: {color: 'white',fontSize:'0'}},
};

我试图将字体大小更改为 0,但即使这样也没有用。

这是我能够制作的选择器。希望对你有用。

如果不是请告诉我。

#timeline div div div svg g:nth-child(3) {
    display: none;
}