HTML5 charts.
https://luna.liriliri.io/?path=/story/chart
Add the following script and style to your page.
<script src="//cdn.jsdelivr.net/npm/luna-chart/luna-chart.js"></script>
You can also get it on npm.
npm install luna-chart --save
import LunaChart from 'luna-chart'
const container = document.getElementById('container')
const barChart = new LunaChart(container, {
type: 'bar',
bgColor: '#fbfbfb',
title: {
text: 'Bar Chart',
},
data: {
labels: ['Monday', 'TuesDay', 'Wednesday', 'Thursday', 'Friday'],
datasets: [
{
label: 'Dataset 1',
bgColor: '#e73c5e',
data: [128, 146, 56, 84, 222],
},
{
label: '#614d82',
bgColor: '#614d82',
data: [119, 23, 98, 67, 88],
},
],
},
})