javascript - Chartist 插件 tooltip 和 pointlabels 如何自定义
问题描述
如何将 chartist-plugin-pointlabels 标签向右偏移,因为有些标签被线隐藏了?
如何更改 chartist-plugin-tooltip 箭头背景?我设法改变了主要的工具提示背景
.chart-tooltip {
background: rgba(0,153,255,0.6) !important;
color: #FFF !important;
padding: 5px 10px;
border-radius: 3px;
}
我尝试更改箭头颜色,但以下没有任何效果
.chart-tooltip {
border-top-color: #0099ff !important;
border-bottom-color: #0099ff !important;
border-left-color: #0099ff !important;
border-right-color: #0099ff !important;
border-color: #0099ff !important;
}
.chart-tooltip::before 也不起作用。
解决方案
推荐阅读
- wagtail - 对于某些用户来说,Wagtail 管理页面加载速度非常慢(explorable_pages() 问题?)
- python - 在单个图中绘制多条曲线时选择列名作为图例
- python - Selenium Element 不可交互异常 - 如何克服这个问题?
- html - Bootstrap Carousel 如何使用应用的 img-fluid 类垂直对齐图像
- javascript - Nuxt js - SSR 页面重复组件
- wordpress - 如何使用 add_meta_box 保存和获取选定项目 ID 列表
- scala - 根据条件复用 Akka 源/流
- jsonschema - oneOf 嵌套在数组中
- php - 如何检查令牌是否未过期?
- python - Gitbash 在命令参数中将前缀附加到绝对 posix 路径