[Chartjs]-Ionic2 Angular2: I can't seem to get an ng2-chart to appear in my app

1👍

Looks like you are running into this issue with ng2-charts. Try using display style as stated by couple of folks in the above post. display:block

3👍

Make sure you have also done the following:

  • Install Chart.js

npm install chart.js –save

  • In your app.ts file, make sure you import chart.js

import ‘../node_modules/chart.js/dist/Chart.bundle.min.js’;

  • In the scss file of the page that displays the tab, insert the following:

.chart { display: block; height: 100%; }

Then your chart should work.

Leave a comment