score:2

Accepted answer

if you are using the ionic framework then you should also be using angularjs. if that is so then you would need to include the dependency in your controller. i used chartjs in my project very easily. post your controller javascript code and i can help you setup. take a look at this link first:

https://github.com/gonewandering/angles

you need to include the files in your index.html file first:

<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/chart.js/1.0.1-beta.2/chart.min.js"></script>
<script src="angles.js"></script>

then include "angles" as a dependency:

var app = angular.module("anglesexample", ["angles"]);

everything else appears to be okay.

best of luck!

score:0

i suggest you to use another chart generator, something like:

angular-charts

this was built to work with angular...as ionic was.

score:0

if you are using chart.js, make sure you add the reference to your app.js

angular.module('yourapp', ['ionic', 'chart.js']);

besides, you also need to include the following in your index.html, of course you have to make sure you are pointing to the correct directory where you put the 3 files below.

<!-- css file -->
<link rel="stylesheet" href="css/angular-chart.css">
<!-- library files -->
<script src="angular.chart.min.js"></script>
<script src="chart.js"></script>

score:0

enter image description here

best responsive chart for ionic framework

https://market.ionic.io/themes/charts


More Query from same tag