OPNsense Forum

English Forums => Development and Code Review => Topic started by: marjohn56 on January 12, 2018, 09:04:59 pm

Title: Changing the text colour in the traffic Graphs
Post by: marjohn56 on January 12, 2018, 09:04:59 pm
I hate to not be able to work something out, but I have tried various methods and have failed, so need a little pointer.

I am creating a new theme, it's pretty much there, apart from the colour ( color if you're in the U.S. but this side of the pond we use a 'u', and as we invented English we'll stick with it, no matter what Microsoft say. :P ) of the text. I have traced it as far as the nvd3 calls in traffic_graphs widget.php, but i'm unable make the colour change on all of the text no matter how I try.

BTW Red is just for testing. :)

Oh yes, this is what I am using:

d3.select("#traffic_graph_widget_chart_in").style('fill', "red");