Chartjs-Angular- Chart.js, how off opacity in line chart?

1๐Ÿ‘

โœ…

If you do not want to see the fill under the line, then set the fill property to false (this is part of a line chart dataset configuration). Iโ€™m not exactly sure how to do this in angular chart.js, but it looks like you could add it to your datasetOverride2 object.

$scope.datasetOverride2 = [{fill: false}, {fill: false}, {fill: false}];

If this doesnโ€™t work then you need to use the property wherever you define each dataset.

0๐Ÿ‘

My friend,

$scope.datasetOverride2 = [{
  yAxisID: 'y-axis-1',
  fill: false,
}];

work but only for blue color date, look:

enter image description here

0๐Ÿ‘

aww, its so easy. Look:

enter image description here

Solution:

$scope.datasetOverride2 = [{fill: false},{fill: false},{fill: false}];

Thanks guys for help. We did it!

Leave a comment