While creating an nvd3 area chart, there are ways to change the orientation of the axis, meaning starting from top to bottom, this works fine with non area charts, when I try to do so with area series, the datapoints are well located, the issue is that the rendered area still remains on the same direction, I mean, from bottom to top.
Is there a way to fix this issue?
I'm using angular-nvd3 with the following options on nvd3 initialization:
var app = angular.module('plunker', ['nvd3']);
app.controller('MainCtrl', function($scope) {
$scope.options = {
chart: {
type: 'lineChart',
height: 450,
margin : {
top: 20,
right: 20,
bottom: 40,
left: 55
},
yDomain: [100, 0],
x: function(d){ return d.x; },
y: function(d){ return d.y; },
}
};
$scope.data = [{
"area": true,
"values": [
{
"x": 1,
"y": 50
},
{
"x": 2,
"y": 55
},
{
"x": 3,
"y": 60
},
{
"x": 4,
"y": 70
}
]
}];
});
Here a plunker to show the issue.