angularjs-nvd3-directives

Angular-nvd3 issue, failed to update chart when set data to newData

六眼飞鱼酱① 提交于 2019-12-02 13:36:25
问题 It is a strange issue not only about nvd3 directive , I have steped into the directive source code, but still not find the reason. I put it in plunker, switch comment line 34 and 35 in app.js will show the issue. if I set a new value in $scope.data, the chart works well, but if I set a newData, the chart will not work. I've debug the angular-nvd3 directive, when I change the whole data object , the $watch('data') (angular-nvd3.js line 320) still work, but the scope.chart.update() not working

Angular-nvd3 issue, failed to update chart when set data to newData

回眸只為那壹抹淺笑 提交于 2019-12-02 04:38:21
It is a strange issue not only about nvd3 directive , I have steped into the directive source code, but still not find the reason. I put it in plunker , switch comment line 34 and 35 in app.js will show the issue. if I set a new value in $scope.data, the chart works well, but if I set a newData, the chart will not work. I've debug the angular-nvd3 directive, when I change the whole data object , the $watch('data') (angular-nvd3.js line 320) still work, but the scope.chart.update() not working correct. I didn't found anywhere that nvd3.js hold the chart data, so I really don't know what happend

How to display values in Stacked Multi-bar chart - nvd3 Graphs

安稳与你 提交于 2019-11-30 08:44:13
问题 I got a scenario where in I need to display value for every stack in stacked multi-bar chart - nvd3 graph as we can display value in discrete value - nvd3 graph. I understand, 'showvalue' is used in discrete bar controller, can we use showvalue in stacked graph, if not please suggest with an alternative solution. Thanks in advance 回答1: Currently isn't possible. That option is available only in the discrete bar chart. From the maintainer: We don't have this ability. Stacked/Grouped charts also

How to display values in Stacked Multi-bar chart - nvd3 Graphs

三世轮回 提交于 2019-11-29 11:14:55
I got a scenario where in I need to display value for every stack in stacked multi-bar chart - nvd3 graph as we can display value in discrete value - nvd3 graph. I understand, 'showvalue' is used in discrete bar controller , can we use showvalue in stacked graph, if not please suggest with an alternative solution. Thanks in advance Currently isn't possible. That option is available only in the discrete bar chart. From the maintainer: We don't have this ability. Stacked/Grouped charts also have complex animations making this a tricky thing to solve. We use tooltips instead. Source https:/