chartjs-plugin-annotation icon indicating copy to clipboard operation
chartjs-plugin-annotation copied to clipboard

padding issue with drawing an average line

Open cohenu opened this issue 6 years ago • 1 comments

Hey All, I know that I can use the following:

layout: {
  padding: {
    left: 0,
    right: 30,
    top: 0,
    bottom: 0
  }
},

to create padding from the right side, when I do that and draw an average line with annotation plugin the average line gets also the padding. Is there a way to draw the line on 100% width of the canvas and the chart will ends 30px from the right side?

cohenu avatar Dec 21 '18 15:12 cohenu

~~@cohenu I think this issue is already solved from version 1.0.2~~

~~See codepen: https://codepen.io/stockinail/pen/abyrGav~~

Edit: I didn't catch the real need. It's still an enhancement

stockiNail avatar Nov 23 '21 12:11 stockiNail