Chart turns black!
See original GitHub issueAfter rendering properly my charts turns black after some moment
$ionicLoading.show({
content: 'Loading',
animation: 'fade-in',
showBackdrop: true,
maxWidth: 200,
showDelay: 0
});
$timeout(function () {
$ionicLoading.hide();
$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 = []
data.push({
'key': region,
'values': []
})
$scope.dataRef.$loaded()
.then(function(x){
x.forEach(function(weeklydata){
var date = weeklydata['Date']
var count = weeklydata[region]["Count"]
data[0].values.push( [Date.parse(date), parseFloat(count)] );
})
})
return data;
};
}, 3000);
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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 withnpm install angular-nvd3
.)I have no css besides the provided stylesheet. Can you offer any suggestions?