Interactive Chart.js Example

Code Example

const data = {
  labels: ['January', 'February', 'March', 'April', 'May', 'June'],
  datasets: [{
    label: 'Sales',
    data: [12, 19, 3, 5, 2, 3],
    backgroundColor: 'rgba(37, 99, 235, 0.7)'
  }]
};

const options = {
  responsive: true,
  plugins: {
    legend: { position: 'top' },
    title: { display: true, text: 'Monthly Sales Example' }
  }
};

<Bar data={data} options={options} />;