OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Changing the text colour in the traffic Graphs
« previous next »
  • Print
Pages: [1]

Author Topic: Changing the text colour in the traffic Graphs  (Read 332 times)

marjohn56

  • Hero Member
  • *****
  • Posts: 807
  • Karma: 83
    • View Profile
Changing the text colour in the traffic Graphs
« 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");
« Last Edit: January 12, 2018, 09:10:11 pm by marjohn56 »
Logged
OPNsense 19.1.* - Qotom Q355G4 - ISP - ZEN U.K.

Team Rebellion Member

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • Changing the text colour in the traffic Graphs
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2019 All rights reserved
  • SMF 2.0.15 | SMF © 2017, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2