我当前正在使用Chartist.js
,但无法更改Chart的默认线条颜色。
Chartist.js
对于SIMPLE LINE CHART
,我尝试过:
.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