JSFiddle - React, Tailwind, and code Playground

by alexb

HTML

<script src=https://cdn.jsdelivr.net/npm/chart.js></script>
<canvas></canvas>

JavaScript

var ctx = document.querySelector('canvas').getContext('2d');
var chart = new Chart(ctx, {
    type: 'bar',
    data: {
        labels: ['Tops', 'Bottoms', 'Accessories', 'Footwear'],
        datasets: [
        	{
            	backgroundColor: '#1E22AA',
              barPercentage: 1,
            	data: [4500, 900, 2000, 1900]
        	},
        	{
            	backgroundColor: '#6AD1E3',
              barPercentage: 1,
            	data: [3700, 1200, 3800, 3000]
        	}
				]
    },
    options: {
      scales: {
        xAxes: [{ gridLines : { display: false } }],
        yAxes: [{ gridLines : { display: false } }],
      },
    	legend: {
      	display: false
      }
    }
});