【问题标题】:chartist.js points without fillchartist.js 点不填
【发布时间】:2018-02-18 03:39:54
【问题描述】:

我在我的项目中使用 chartist.js。现在我的观点是这样的:

实际上只是 svg 线。

我需要的是让它看起来像这样:

有什么方法可以使用 chartist.js 吗?

【问题讨论】:

    标签: javascript css svg stroke chartist.js


    【解决方案1】:

    好的,这就是我发现的。与this相关。

    因此,您唯一需要做的就是将 point-svg 从直线更改为圆。在此之后,您可以在您的 CSS 中执行此操作。

    fill:none;
    stroke: tomato;
    

    这就是我现在拥有的:

    你可以让它不同的颜色取决于它所在的路径。 例如。

    .ct-circle{fill:none;}
    .ct-series-a .ct-circle {
        stroke: red;
    }
    
    .ct-series-b .ct-circle {
        stroke: green;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-04-27
      • 1970-01-01
      • 2018-06-28
      • 1970-01-01
      • 2016-01-25
      • 1970-01-01
      • 2020-11-26
      相关资源
      最近更新 更多