Y axis label font size

736 views
Skip to first unread message

smo...@google.com

unread,
Jun 13, 2016, 1:47:25 PM6/13/16
to c3js
I am trying to increase the font size for the Y-axis labels.

Adding the code below does not change the text properties
.c3-axis-y-label{
font-weight:bold;
font-size:15px;
}

The only option I found so far was to use this:
.c3 svg{
font: 13px sans-serif;
}

Though it works, it changes the font for all text in all of my charts on that page. Any ideas?

siru...@gmail.com

unread,
Dec 13, 2017, 1:45:38 PM12/13/17
to c3js
I just used

#mychartdiv g.tick text tspan {
font-size: 1.1rem;
}

and that worked, though it also changes the x axis label font sizes.

Reply all
Reply to author
Forward
0 new messages