Skip to content

Missing Option: Scale Padding/Margin #4628

Description

@Rincewind3d

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions