Chartjs-Custom Legend ChartJS not showing the text decoration: line through

1👍

You try to toggle a class you dont have defined in your style sheet. Classes in CSS start with a dot.

You can also check if the class gets set on the element you intend to set it on. You also might run into issues while trying to use dots in your class name because a dot means that the element has both class names.

So .x.y {styling} means the styling will only be applied to elements that have at least this in there class: class="x y"

Leave a comment