How to change text color c3.js

I am trying in vain to change the font color of the legend of graph c3.js.

With the chrome style inspector, I can change, for example, the font size of the text, but not the color.

Attaching a screenshot with the above properties (font size and color).

Any clues?

style inspector screenshot

+4
source share
2 answers

It is not colorthat you should change, change strokeor instead fill. See this tutorial for an explanation and differences between stroke and padding.

+3
source

Add CSS

.c3-legend-item {
   fill: #9fabb1;
}
+1
source

Source: https://habr.com/ru/post/1655606/


All Articles