Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chart turns black!

See original GitHub issue

After rendering properly my charts turns black after some moment


    content: 'Loading',
    animation: 'fade-in',
    showBackdrop: true,
    maxWidth: 200,
    showDelay: 0

  $timeout(function () {

      $scope.options = {
            chart: {
                type: 'stackedAreaChart',
                height: 450,
                margin : {
                    top: 20,
                    right: 20,
                    bottom: 60,
                    left: 60

                x: function(d){return d[0];},
                y: function(d){return d[1];},
                showControls: false,
                useVoronoi: false,
                duration: 100,
                useInteractiveGuideline: false,
                xAxis: {
                    showMaxMin: true,
                    tickFormat: function(d) {
                        return  moment(new Date(d)).utc().format("YYYY-MM-DD")


                yAxis: {
                    tickFormat: function(d){
                        return d3.format(',.2f')(d);

        $scope.dataset = {

                        data1 : generateData('Africa'),

        function generateData(region){

            var data = []
                        'key': region,
                        'values': []



                        var date = weeklydata['Date']
                        var count = weeklydata[region]["Count"]
                        data[0].values.push( [Date.parse(date),  parseFloat(count)] );



            return data;

    }, 3000);

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

ffuglycommented, Feb 8, 2016

I think this is because you aren’t including the nv.d3.min.css file. Same thing was happening to me. Added this in and all works fine.

entritycommented, Aug 10, 2016

I have a similar problem in v1.0.8 even though I included the css: <link rel="stylesheet" src="node_modules/nvd3/build/nv.d3.css" />. (I installed the package with npm install angular-nvd3.)


I have no css besides the provided stylesheet. Can you offer any suggestions?

    <div class=container>
        <nvd3 data="data" options="options"></nvd3>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Graphics (mostly just pie charts) are gets black background
When I save as pdf with the PDF/A compliance box checked, only the pie chart in the document gets a black background.
Read more >
Chart is solid black after upgrade to 5.0 - Highcharts
I thought to try upgrading to v5.0 as my feature request has made it in but the entire chart now appears as a...
Read more >
How to fix black/negative background on livecharts chart in ...
P.S. the data that is in the chart I got from the 'livecharts' website, but the problem happens no matter if there is...
Read more >
Chart is black screen with no bars - Support Board
Sierra Chart is a professional Trading platform for the financial markets. ... Chart is black screen with no bars. View Count: 69.
Read more >
Chart.js Renders black screen for large dataset · Issue #6067
But I see black screen. ## Steps to Reproduce (for bugs) If I change x value to 10, It is working fine. But...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found