# Charting library for Ionic 2 Apps

**URL:** <https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993>\
**Category:** ionic-v3\
**Created:** [February 1, 2017, 12:03am UTC](https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993 "2017-02-01T00:03:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gauz09](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@gauz09](https://forum.ionicframework.com/u/gauz09)\
**Post date:** [February 1, 2017, 12:03am UTC](https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993/1 "2017-02-01T00:03:23Z")

</div>

Can anybody please suggest a charting library that gels well with Ionic 2? I am looking for something that is responsive and something that would work on mobile phones, tablets and laptop/desktop screens as well.

I have gone through a few of the past posts in this forum that are talking about charting. Few popular ones comes out to be Chart.js, ng2-charts and also got D3.

I thought of checking with the experts here instead of reinventing the wheel on which works best with Ionic 2. I am sure there will be pros and cons of choosing one over another.

Thanks for your great help!

---

<div class="post-metadata">

**Author:** ![gauz09](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@gauz09](https://forum.ionicframework.com/u/gauz09)\
**Post date:** [February 1, 2017, 6:17pm UTC](https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993/2 "2017-02-01T18:17:44Z")

</div>

Suggestions please…

---

<div class="post-metadata">

**Author:** ![ryanlogsdon](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ryanlogsdon/32/103208_2.png) [@ryanlogsdon](https://forum.ionicframework.com/u/ryanlogsdon)\
**Post date:** [February 1, 2017, 8:02pm UTC](https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993/3 "2017-02-01T20:02:38Z")

</div>

This post solves chart imports.

> [@Module ''chart.js'' has no exported member 'Chart'](https://forum.ionicframework.com/t/module-chart-js-has-no-exported-member-chart/57975):
>
> I am porting my JS project over to TS and the Chart.js import is giving trouble. I did npm install chart.js --save And in my .ts file: import {Chart} from 'chart.js' For awhile i was stuck with Cannot find module 'chart.js' and the app would not start up. I somewhat followed Mike Hartington’s [external library guide](http://mhartington.io/post/ionic2-external-libraries/) (--ambient is deprecated?) and now have the error Module ''chart.js'' has no exported member 'Chart' tsconfig [image] package.json [image]

Personally, I was going to need to tackle this problem this week. My normal rule is to check [npmjs.org](http://npmjs.org) for the popularity of a package.

Plotly.js has 20-some thousand downloads this month. Chart.js has 10 times that. Lots of StackOverflow help for Chart.js as well. Looks like that’s what I’ll be using.

---

<div class="post-metadata">

**Author:** ![gauz09](https://avatars.discourse-cdn.com/v4/letter/g/f17d59/32.png) [@gauz09](https://forum.ionicframework.com/u/gauz09)\
**Post date:** [February 2, 2017, 12:04am UTC](https://forum.ionicframework.com/t/charting-library-for-ionic-2-apps/77993/4 "2017-02-02T00:04:51Z")

</div>

Thanks @ryanlogsdon for your kind reply. Chart.js is what I ended up using and it’s working fine. The charts are not really that attractive (tried bar, doughnut and line charts) but it works. Maybe, I need to read more on Chart.js to beautify and make it more attractive to the users. That will be my next task. 🙂

Thanks again for replying, appreciated!
