I am trying to redraw chart. following way. After assigning new data. Chart is broken. Please help.
$scope.data.sections.graphs.byType.data = response.timePerSubject;
<nvd3-pie-chart
data="data.sections.graphs.byType.data"
objectequality="true"
id="chartTimeSpentByType"
showLabels="true"
x="xFunction()"
y="yFunction()"
donut="true"
responsive="true"
donutRatio=".6"
duration="1500"
showLegend="false"
donutLabelsOutside="true"
color="colorFunction()"
legendColor="colorFunction()"
tooltips="false"
>
<svg height="400" width="100%" data-textLable="timeSpentByTypeText"></svg>
</nvd3-pie-chart>
I am trying to redraw chart. following way. After assigning new data. Chart is broken. Please help.