# Integration

chartjs-plugin-zoom can be integrated with plain JavaScript or with different module loaders. The examples below show how to load the plugin in different systems.

# Script Tag

<script src="path/to/chartjs/dist/chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="path/to/chartjs-plugin-zoom/dist/chartjs-plugin-zoom.min.js"></script>
<script>
    var myChart = new Chart(ctx, {...});
</script>

# Bundlers (Webpack, Rollup, etc.)

import { Chart } from 'chart.js';
import zoomPlugin from 'chartjs-plugin-zoom';
Chart.register(zoomPlugin);
Last Updated: 11/16/2021, 3:06:42 PM