Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

padding between the Y axis and the first X axis tick

Open AbhishekAdusumilli opened this issue 2 years ago • 2 comments

Expected behavior

padding between the Y axis and the first X axis tick is not working as expected in previous version it is working. In latest version it is moving y-axis also . I have requirement to have some space between Y-axis and x- axis first tick mark. But It is not working as expected. Below is the example which is working . I want same behavior in latest version

https://jsfiddle.net/AbhishekAdusumilli/hknbd7c0/5/

Current behavior

padding between the Y axis and the first X axis tick is not working as expected in previous version it is working. In latest version it is moving y-axis also . I have requirement to have some space between Y-axis and x- axis first tick mark. But It is not working as expected. Below is the example which is working . I want same behavior in latest version

https://jsfiddle.net/AbhishekAdusumilli/hknbd7c0/5/

Reproducible sample

https://jsfiddle.net/AbhishekAdusumilli/hknbd7c0/5/

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v3.7.0

Browser name and version

No response

Link to your project

No response

AbhishekAdusumilli avatar Mar 12 '22 04:03 AbhishekAdusumilli

We are also facing a same issue and now had to downgrade the version. This limitation does not allow us to move to the latest version

mgardi85 avatar Apr 29 '22 06:04 mgardi85

Regarding issue labels. Is it really a support issue? As far as I know there is no way to add space between y axis and first tick on x axis in the latest version of chart.js.

I ended up creating fake chart.js labels with no data to emulate padding but it's far from ideal solution.

Ulisseus avatar Dec 12 '23 13:12 Ulisseus