ng2-chart doesn't display as expected even more the console doesn't show any error
问题 mychart.component.ts import {Component} from '@angular/core'; import {CHART_DIRECTIVES} from 'ng2-charts/ng2-charts'; import { ROUTER_DIRECTIVES, Router } from '@angular/router'; import { Http, Response, HTTP_PROVIDERS } from '@angular/http'; import { CORE_DIRECTIVES, NgIf, NgFor, FormBuilder, Validators, Control, ControlGroup, FORM_DIRECTIVES, NgClass} from '@angular/common'; import { DashboardComponent } from '../dashboard/dashboard.component'; import { Auth } from'../auth/auth'; import {