我正在 angularjs 中创建一个项目。在我的项目中,我正在使用角度图表。我想更改图表的 y 轴值,但我不知道该怎么做。这是我的代码:
在控制器中:
$scope.labels = ["January", "February", "March", "April", "May", "June", "July"];
// $scope.series = ['Series A', 'Series B'];
$scope.data = [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90]
];
在 html 中:
<canvas id="line" class="chart chart-line" chart-data="data"
chart-labels="labels" chart-legend="true"
chart-click="onClick" >
</canvas>