Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Option: Scale Padding/Margin #4628

Closed
Rincewind3d opened this issue Aug 8, 2017 · 1 comment
Closed

Missing Option: Scale Padding/Margin #4628

Rincewind3d opened this issue Aug 8, 2017 · 1 comment

Comments

@Rincewind3d
Copy link

Hello,

if have Chart with two yAxis on one side. The layout looks a little bit shitty, because the labels of axis 1 touches axis 2:

bildschirmfoto 2017-08-08 um 16 27 26

It would be easy if there would an option for an left/right padding/margin for the yAxis.

My current workaround is adding empty spaces to the ticks callback:

     yAxes: [{
                    display: true,
                    id: 'y-left-01',
                    position: 'left',
                    ticks: {
                        callback: value => `  ${value} kg `
                    }
                }, {
                    display: true,
                    id: 'y-left-02',
                    position: 'left',
                    ticks: {
                        callback: value => `${value}°`
                    }

                }]

bildschirmfoto 2017-08-08 um 16 31 54

@nagix
Copy link
Contributor

nagix commented May 23, 2019

This was fixed by #4646, and the fix is included in version 2.7.0.

@nagix nagix closed this as completed May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants