I need to develop some charts like Donut Charts / Bar Charts in D3JS. Below is the sample code I have found for Donut Chart.
It is in JavaScript. Can we use it in Ionic 2 with TypeScript?
Is it work if we create android or ios app from Ionic 2 with “ionic run android --prod --release” command?
For desktop view, it is looking pretty good
But for mobile view, Chart is not properly visible. It seems that chart does not support responsive nature.
Please help.
I followed the angular2 + d3 examples, Not able to load chart, I tried with
package.json "@types/d3-scale": "^1.0.8", "@types/d3-selection": "^1.0.15", "@types/d3-shape": "^1.1.0", "d3": "^4.2.6",
in .ts import * as d3 from 'd3-selection'; import * as d3Scale from "d3-scale"; import * as d3Shape from "d3-shape" d3.select('doNutChart').append('<p>Hi this para</p>');
.html
<div id="doNutChart"></div>
I am unable to load the d3 or create the chart using d3.
Just for trial I tried appending a para