问题
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