i want to create a multiple bar chart with nvd3 angularjs directive by cmaurer (nvd3 directive link) but the problem is that i need to stack some series and there is a strange bug. here is my data:
$scope.exampleData = [
{
"key": "Monto Inicial",
"values": [[0, $scope.planAhorro.MontoInicial]]
}, {
"key": "Monto Periodico",
"values": [[0, $scope.planAhorro.MontoPeriodico]]
}, {
"key": "Total Sueños",
"values": [[1, $scope.planAhorro.Valor]]
}];
i want to get 2 bars with the values of $scope.planAhorro.MontoInicial
and $scope.planAhorro.MontoPeriodico
stacked, and the another bar with the value $scope.planAhorro.Valor
alone, but the thing is the first 2 stack well and the third stack on top and i don't need it to stack!!
and here is the output: