Search code examples
angular-nvd3

angular-nvd3 how to change the chart background color


I am following the angular-nvd3 example, and want to change the background color of the chart . I looked at this http://krispo.github.io/angular-nvd3/#/lineChart but i don't see anywhere you can set the background color. any help? btw, my plot looks like this with black background.enter image description here


Solution

  • Seems problems are solved. after including the "nv.d3.css", everything renders correctly

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.1/nv.d3.min.css"/>    
    

    add it to your index.html