0
我使用angularjs-UI-引導theme.i想卓爾餅圖如何在angularjs中重新加載ui圖表?
HTML:
<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具有JSON數據設置爲卓爾餅圖。
問題
如果我有chart.also不工作timeout.so如何重新加載UI選項和數據綁定設置的$ scope.chartdata動態值在$ http請求則沒有約束力數據圖表。