【发布时间】:2014-01-15 13:48:36
【问题描述】:
我想左对齐我的 Google 图表时间轴中的所有行标签。文档说“timeline.rowLabelStyle”只支持字体类型、颜色和大小,我无法让“allowHtml”关键字起作用。
我也尝试了以下方法,但没有运气:
.customChartStyle{
text-align:left !important;
}
...
chart.draw(data, {width: 950, height: 600, 'cssClassNames': {'tableCell': 'customChartStyle'}});
如果有人可以告诉我如何根据需要自定义行标签,我将不胜感激。
【问题讨论】:
-
不支持更改标签的对齐方式。您可以提交feature request 以添加支持。
标签: php html css google-visualization timeline