AM Charts - Themes


How can we use a theme?

amCharts 4 makes it easy to apply themes to am4charts. Let's make our chart more lively by enabling "Animated" theme. To do so, we'll need to remember to import the theme itself as well as set the system to use it.

<script src="//"></script>
<script src="//"></script>
<script src="//"></script>

<div id="chartdiv" style="width: 100%; height: 400px;"></div>

// Set theme

// Create chart instance
var chart = am4core.create("chartdiv", am4charts.PieChart);

// ...
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License