NG2-Charts Can't bind to 'datasets' since it isn't a known property of 'canvas'
问题 I am trying to use the basic example of NG2-Charts (http://valor-software.com/ng2-charts/) I copy pasted the HTML part <div style="display: block"> <canvas baseChart [datasets]="barChartData" [labels]="barChartLabels" [options]="barChartOptions" [legend]="barChartLegend" [chartType]="barChartType" (chartHover)="chartHovered($event)" (chartClick)="chartClicked($event)"></canvas> </div> and the TypeScript part private barChartOptions: any = { scaleShowVerticalLines: false, responsive: true };