【发布时间】:2018-02-06 00:10:59
【问题描述】:
我已将页面 css 设置为:
html {
font-family: 'Not the Default AmCharts Font';
}
我没有在我的图表代码中指定字体,但是图表没有继承页面的 css 定义的字体。
有没有办法一次性为所有 Amcharts 元素全局设置字体? 比如:
AmCharts.defaultFontFamily = 'Not the Default AmCharts Font';
我也很喜欢某种 jQuery 解决方案,例如:
$('.amcharts').find('*').css('font-family', 'Not the Default AmCharts Font');
这些解决方案都不起作用。
我真的希望这至少能影响以下方面: 图表标题 , 轴标题 , 轴标签 , 图形标签 , 气球文本 , 图例标签 , 图例值
【问题讨论】: