angularjs – 删除AngularCharts中的网格线

前端之家收集整理的这篇文章主要介绍了angularjs – 删除AngularCharts中的网格线前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用 AngularCharts这是Chart.js的AgnularJS包装器.我想从我的图表中删除所有网格线,因此只有实际的折线图.但网格没有被删除.

调节器

@H_403_13@$scope.labelsx2 = [" "," "," Time ago "," "]; $scope.seriesx2 = [' ']; $scope.datax2 = [ [65,59,80,81,56,55,40] ]; $scope.options = { scaleShowGridLines : false }; $scope.labelsx2 = [" ",40] ]; $scope.options = { scaleShowGridLines : false };

Chart.html

@H_403_13@<canvas id="line" class="chart chart-line" data="datax2" labels="labelsx2" legend="true" series="seriesx2" options="{showTooltips: false}"></canvas>

解决方法

您可以在下面应用选项来删除网格线.这对我有用.

@H_403_13@$scope.options = { scales: { xAxes: [{ gridLines: { display: false } }],yAxes: [{ gridLines: { display: false } }] } };

谢谢.

猜你在找的Angularjs相关文章