How can I make a 100% stacked chart with nvd3?

99封情书 提交于 2019-12-24 03:00:33

问题


I looked at nvd3 stacked charts, and does anyone know how can I make a 100% stacked chart with nvd3?

For example, a chart like this: https://www.syncfusion.com/content/en-US/Products/Images/wpf/chart/wpf-chart-ColumnStacked100.jpg


回答1:


I used the multibar chart and then transformed the data to simulate a 100% stacked bar chart. I had to add each of the bar's values and then divide value in the bar by the total value of the bar.



来源:https://stackoverflow.com/questions/20157147/how-can-i-make-a-100-stacked-chart-with-nvd3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!