How to change color of X and Y axes?

26 views
Skip to first unread message

sahibm...@gmail.com

unread,
Jul 20, 2017, 3:54:48 PM7/20/17
to dc-js user group
Hi people,
I am quite new to Dc.js.
I have created various charts like


But the color of axes and labels like " This is the Y axis" and color of numbers 10,12.... is black.

How can I change that?

Thanks in advance for your help.

sahibm...@gmail.com

unread,
Jul 20, 2017, 4:25:36 PM7/20/17
to dc-js user group

Just to add an example:

Gordon Woodhull

unread,
Jul 20, 2017, 4:31:31 PM7/20/17
to dc-js-us...@googlegroups.com
I can't provide any specific examples today (because I'm traveling) but in general any visual property which is not driven by data is best driven by CSS. 

This is the same for d3.js and dc.js.

So what I'd suggest you do is inspect the axis elements using the CSS/DOM tools of your favorite browser, determine selectors that affect the axes and axis labels, and then add a stylesheet which changes the colors as you like.
--
You received this message because you are subscribed to the Google Groups "dc-js user group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dc-js-user-gro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dc-js-user-group/1dd76339-0ef0-4f27-95ab-037eceed8ea6%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages