Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dygraphs change values/legend background

I'm using dygraphs on a dark background and can't seem to get the background on the legends/values to be transparent.

CSS I've tried:

.dygraph-legend {
  background:none;
}

and

.dygraph-legend {
  background-color: transparent;
}

I can't find a way to make this transparent.

Link to an image of the problem: here

like image 998
Troy Watson Avatar asked Jul 16 '26 02:07

Troy Watson


1 Answers

dygraphs sets some inline styles on the legend <div>. To override them, you need to use !important:

.dygraph-legend {
  background: transparent !important;
}
like image 177
danvk Avatar answered Jul 17 '26 14:07

danvk