Skip to main content

Posts

Showing posts from December, 2015

Chart.js 2.0 in Ionic

There are lots JS data chart libraries... it's hard to choose one that's right for you. I started using chartjs because it's responsiveness, it has good support for users interactions and there is an angular directives that support it: angular-chart.js . Angulars directive support chart.js 1.0, after some attempts, I have had some issues: Time series aren't supported. It isn't simple to manage missing value. Then I moved to chart.js 2.0, which was under development. Now, there is a beta version of the library. So, as first step I have installed it with bower (at https://github.com/nnnick/Chart.js.git#v2.0-dev), and then I try to put it into a Ionic project. I have put the chart inside a slider: <ion-nav-buttons side="left"> <button class="button button-icon button-clear ion-navicon" menu-toggle="left"> </button> </ion-nav-buttons> <ion-content> <ion-refre