How to change label color in Morris.js charts?

Roman picture Roman · Dec 11, 2012 · Viewed 10.7k times · Source

I'm using morris.js charts which are fantastically easy to setup but I can't workout how to change the color for labels when rendering a Donut graph. By default it prints them in black but I want the graph on top of a dark background.

Does anyone know how to change the label color?

Answer

Julian Diaz picture Julian Diaz · May 9, 2015
<div id="bar-chart" class="morris-chart" style="height: 180px"></div>

.morris-chart text {
  fill: white;
}