首页 > 解决方案 > 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 也不起作用。

标签: javascriptchartist.js

解决方案


推荐阅读