chartist.js points without fill

444 views Asked by At

I'm using chartist.js in my project. Right now my points looks like this:

enter image description here

Which are actually just svg line.

What I need is to make look it like this:

enter image description here

Is it any way to do it using chartist.js ?

1

There are 1 answers

0
Jaikrexe On BEST ANSWER

Ok this is what I found. It is related to this.

So the only thing you need to do is change point-svg from line to circle. And after this u can do this in your css.

fill:none;
stroke: tomato;

This is what I have right now:

enter image description here

You can make it different color depends inside which path it is located. ex.

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

.ct-series-b .ct-circle {
    stroke: green;
}