【问题标题】:Google Charts remove white border around vAxis textPosition 'in' text on Bar ChartGoogle Charts 删除了条形图上 vAxis textPosition 'in' text 周围的白色边框
【发布时间】:2013-08-14 22:58:20
【问题描述】:

如何删除 Google Charts 条形图上 vAxis textPosition 'in' 文本样式周围的白色边框?

我的样式是这样的:

vAxis: { 'textPosition': 'in', 'textStyle': { color: 'black', 'stroke': 0 } },

我希望在彩色条中的黑色文本周围没有周围的白色区域。

查看此链接:https://developers.google.com/chart/interactive/docs/gallery/bubblechart

注意气泡内部的文本是如何用白色边框包围的。我想删除此边框,以便黑色文本直接位于气泡颜色之上,黑色文本周围没有边框。

我尝试了很多组合,例如:

'textStyle': { color: 'black', 'stroke': 0 }
'textStyle': { color: 'black', 'strokeWidth': 0 }
'textStyle': { color: 'black', 'border': 0 }
'textStyle': { color: 'black', 'border': 'none' }

我尝试过的没有任何区别。我仍然有文本周围的白色边框。

【问题讨论】:

    标签: google-visualization


    【解决方案1】:

    有一个未记录的“auraColor”选项适用于多个(如果不是全部)“textStyle”选项。例如,

    textStyle: { auraColor: 'white' }
    

    将其设置为“无”将删除它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-10-28
      • 1970-01-01
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      相关资源
      最近更新 更多