我目前正在使用Chartist.js
,但我无法更改图表的默认线条颜色。
Chartist.js
对于简单线图
我已经尝试过:
.ct-series-a .ct-line{
background-color: blue;
}
但是它没有带来任何结果。如何解决这个问题?
最佳答案
试试这个:
.ct-series-a .ct-line {
/* Set the colour of this series line */
stroke: red;
/* Control the thikness of your lines */
stroke-width: 5px;
/* Create a dashed line with a pattern */
stroke-dasharray: 10px 20px;
}
https://gionkunz.github.io/chartist-js/getting-started.html#customizing-the-default-css
关于javascript - 如何更改 Chartist.js 中图表的线条颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43432120/