hockeyCode
hockeyCode

Reputation: 53

How to adjust axis text - dc.js

I am a first time user of dc.js and I want to change the font color and size of the text on the axis of my charts. Does anyone know a quick and easy way to do this?

Upvotes: 5

Views: 1015

Answers (2)

Fabrice
Fabrice

Reputation: 1

For the font color it works better like this :

.dc-chart .axis text { fill: white; }

Upvotes: 0

Ben Leitner
Ben Leitner

Reputation: 1532

.dc-chart .axis text {
  font-size: /* Insert font size */;
  color: /* Insert color here */;
}

Upvotes: 5

Related Questions