0
I AngularJS-ui-Bootstrap bin mit theme.i KreisdiagrammWie man Ui-Diagramm in angularjs neu lädt?
HTML Drow wollen:
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading font-bold">Package Plan purchases</div>
<div class="panel-body">
<div ui-jq="plot" ui-options="
{{chartdata}},
{
series: { pie: { show: true, innerRadius: 0.5, stroke: { width: 0 }, label: { show: true, threshold: 0.05 } } },
colors: ['{{app.color.primary}}','{{app.color.info}}','{{app.color.success}}','{{app.color.warning}}','{{app.color.danger}}'],
grid: { hoverable: true, clickable: true, borderWidth: 0, color: '#333333' },
tooltip: true,
tooltipOpts: { content: '%s: %p.0%', defaultTheme: false, shifts: { x: 0, y: 20 } }
}
" style="height:240px"></div>
</div>
</div>
</div>
Chartdata hat json Daten auf Drow-Diagramm-Torte.
Problem
wenn ich dynamisch Wert von scope.chartdata $ gesetzt haben auf $ HTTP-Anforderung dann keine verbindlichen Daten über chart.also nicht arbeiten timeout.so wie ui-Option neu zu laden und Daten binden an Diagramm.