Using ui-router, angularjs and d3.js on Visual Studio 2015.
1. chart.cshtml :
<body>
<div ng-app="ParetoChart">
<div ng-controller="paretoChartController">
</div>
</div>
</body>
2. paretoChartController has the basic pareto chart code available in d3.js example.
3. Chart is displayed perfectly.
4. Curent (Chart) View is changed to another view through the angularjs ui-router.
5. The new view only contains text. The Chart stays below the text on the new view. Switching to other views keep the chart below what ever is displayed. Does not overlap the new view.
6. How do I clear the chart when exiting the Chart View ?