highcharts - Highstocks 如何更改范围选择器按钮的字体
问题描述
我构建了一个 Highstock 图表并想更改按钮的字体。见小提琴
buttonTheme: {
fill: '#0065b3',
padding: 10,
width: 60,
r: '5',
style: {
fontFamily: 'Poppins'
},
states: {
hover: {
style: {
fontFamily: 'Poppins',
fontWeight: 'bold'
}
},
select: {
style: {
fontFamily: 'Poppins'
}
}
}
},
所选按钮的字体正确,但其他字体不正确。将鼠标悬停在它们上方后,他们会获得正确的字体并保留它。当您重新加载图形时,字体再次丢失。我能做些什么?
解决方案
尝试使用 CSS 属性将其设置为解决方法:
.highcharts-range-selector-buttons {
font-family: Poppins !important;
}
推荐阅读
- java - Bukkit - 输入后在聊天中显示命令
- c++ - Clang tidy:在表达式末尾添加括号
- reactjs - React Redux thunk - 调度完成后渲染应用程序
- django - Django模型中具有外键的重复值
- python - psycopg2 中的 Python Alter 语句不更新 Peewee
- java - 一个连接中的多个协议
- javascript - JavaScript 中的严格 HTML 解析器
- python - 如何使用轴和子图设置 matplotlib figsize
- javascript - 如何从@google-cloud/storage 读取文件?
- python - 如何避免将多个文件加载到内存中?