<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<script src="https://cdn.flexmonster.com/lib/flexmonster.amcharts.js"></script>
<script src="https://cdn.amcharts.com/lib/5/index.js"></script>
<script src="https://cdn.amcharts.com/lib/5/percent.js"></script>
<script src="https://cdn.amcharts.com/lib/5/themes/Animated.js"></script>
<div>
<p>
By default,
<a
href="https://www.flexmonster.com/api/all-methods-amcharts/"
target="_blank"
>the Connector for amCharts</a> prepares the data based on the current
slice in Flexmonster Pivot. In this example, the data for the slice is specified
using the
<a
href="https://www.flexmonster.com/api/amcharts-getdata/#options-slice"
target="_blank"
>options.slice</a> parameter (lines 59-70 in the JavaScript box).
</p>
<p>
If <code>options.slice</code> is defined, the chart will not respond to
further slice changes on the grid, which means data shown on the chart will
be static.
</p>
</div>
<div id="pivotContainer">The component will appear here</div>
<div id="amcharts-container"></div>