# Create a chart

Now, we can create a chart. We add a script to our page. Use the default settings for now. These can be tweaked later.

const config = {
  type: 'line',
  data: {
    datasets: [
      {
        data: []
      },
      {
        data: []
      }
    ]
  },
  options: {
    scales: {
      x: {
        type: 'realtime'
      }
    }
  }
};
const myChart = new Chart(
  document.getElementById('myChart'),
  config
);