0
我在正在進行的項目中使用角度圖表。而且我想根據角度圖中的月份使用下拉過濾器搜索,以方便用戶使用。可能嗎? 這是我的代碼:如何在角度圖中使用過濾器搜索?
app.controller('newController',['$scope',function($scope){
$scope.labels = ['2006', '2007', '2008', '2009', '2010', '2011', '2012'];
$scope.series = ['Expenses', 'Invoices', 'Proposals'];
$scope.data = [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90],
[50, 20, 10, 35, 70, 1, 100]
];
}])
<canvas id="line" class="chart chart-line" chart-data="data" chart-labels="labels" chart-series="series" chart-options="options" chart-dataset-override="datasetOverride" chart-click="onClick" style="height: 185px; width: 339px;"></canvas>
數月還是數年? – Sajeetharan
個月...就像從一月到九月 –
但沒有數據要過濾1 – Sajeetharan