@amcharts/amcharts4-ember
Ember add-on for AmCharts 4
Installation
ember install @amcharts/amcharts4-ember
Usage
Add the amcharts4.files
array to your EmberApp
:
let app = defaults amcharts4: files: ;
Then inside of the files
you should include the various files that you will be using (if you forget to include a file, you will get a runtime error telling you exactly which file you need to add):
let app = defaults amcharts4: files: "charts" "themes/animated" ;
Make sure that your template contains a <div>
element for the chart:
<div id="chartdiv" style="width: 100%; height: 500px;"></div>
Lastly, import and use V4 like normal (make sure to use the didInsertElement
and willDestroyElement
methods):
;;;; am4core; ;