# Integration

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

# Script Tag

<script src="https://cdn.jsdelivr.net/npm/chart.js@3.7"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-chart-matrix@1.1"></script>
<script>
    var myChart = new Chart(ctx, {type: 'matrix', ...});
</script>

# Bundlers (Webpack, Rollup, etc.)

import { Chart } from 'chart.js';
import { MatrixController, MatrixElement } from 'chartjs-chart-matrix';
Chart.register(MatrixController, MatrixElement);
Last Updated: 12/8/2022, 2:42:51 AM