0

Does anyone have any idea if I can fix de y-axis when I scroll to the right on Angular ChartsJS library ? I have searched in the documentation, but I found nothing. Can I fix it some other way ?

Thanks in advance!

blaa
  • 801
  • 3
  • 16
  • 32

1 Answers1

0

I think you are looking for this fiddle .

originally answered here.

<div class="chartWrapper">
 <div class="chartAreaWrapper">
    <canvas id="myChart" height="300" width="1200"></canvas>
 </div>
 <canvas id="myChartAxis" height="300" width="0"></canvas>
</div>
Community
  • 1
  • 1
Disha
  • 822
  • 1
  • 10
  • 39
  • I am working with chart js 2. Do you have any idea how can I adapt this – blaa Aug 30 '16 at 09:52
  • If I use this, I get this error : angular.js:13236 TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)' – blaa Aug 30 '16 at 12:37