I am using dc.js row chart. Something exactly like the day of the week chart in the example of this page
Can someone please suggest how can I change the label colors from white to black.
I am using dc.js row chart. Something exactly like the day of the week chart in the example of this page
Can someone please suggest how can I change the label colors from white to black.
I your CSS, use .dc-chart g.row text {fill: black;}
.
text
elements (or their parent g
elements with class row) which would have overriden any CSS styling. So, you can go ahead and simply CSS style the g
elements having class row to whichever color you want and the text
elements will inherit that (the cascading effect). Here is a minimal FIDDLE illustrating my point. –
Durbar Furthermore, for those who try with pie charts, the selector for labels is without the g.row
. i.e. : .dc-chart text.pie-slice {fill: black;}
© 2022 - 2024 — McMap. All rights reserved.
.dc-chart g.row text {fill: black;}
? – Durbar