score:0

if you want to add scrollbar after a certain amount of data in chart.js. then you can use css to allow horizontal (overflow-x: scroll;) or vertical (overflow-y: scroll;) scroll.

<style>
.chartwrapper {
  position: relative;
}

.chartwrapper > canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.chartareawrapper {
  width: 15000px;
  overflow-x: scroll;
}
</style>

<div class="chartwrapper">
  <div class="chartareawrapper">
    <canvas id="chart" height="400" width="15000"></canvas>
  </div>
</div>

for more example you can use - http://jsfiddle.net/rbdqxfzl/140


Related Query