# Mixed (Vertical Scroll)

const config = {
  type: 'line',
  data: data,
  options: {
    indexAxis: 'y',
    scales: {
      x: {
        type: 'linear',
        display: true,
        title: {
          display: true,
          text: 'Value'
        }
      },
      y: {
        type: 'realtime',
        realtime: {
          duration: 20000,
          refresh: 1000,
          delay: 2000,
          onRefresh: onRefresh
        }
      }
    },
    interaction: {
      mode: 'nearest',
      intersect: false
    }
  }
};