<script src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="https://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!-- This sample shows the usage of the resizeTo() method -->
<div id="indicatorDiv">Method Name: <strong>resizeTo()</strong>
<p>Resizes the chart to the specified width and height.To read more about this method, click <a href="http://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods.html#resizeTo" target="_blank">here</a>.</p>
<p>For the scroll line 2D chart shown below, enter the required width and height in their respective textboxes. When the <strong>Resize Chart</strong> button is clicked, the chart is resized according to the specified dimensions.</p>
<p><strong>Note</strong>: For this implementation, you will have to specify <strong>both</strong>, the height and the width, to resize the chart.</p>
<div class="text-center">
<div id="data">
<div id="msg"></div>
<strong>Specify Dimensions To Resize</strong>
<label id="label">Height:
<input type="text" id="height" />
</label>
<label id="label">Width:
<input type="text" id="width" />
</label>
<button id="resize" class="mb-20">Resize The Chart</button>
</div>
<div id="chart-container">FusionCharts will render here</div>
<div id="data2"></div>
</div>
</div>