user3616977
user3616977

Reputation: 557

EXTJS 6.0.x: Increase space between axis and axis label

I'm using extjs 6.0.1. We want to increase the space between the axis and axis labels both (x&y axis).

Any help here would be great.

Increase distance between axis & axis label

Upvotes: 1

Views: 303

Answers (1)

Fabio Barros
Fabio Barros

Reputation: 1439

Just use titleMargin config in the axis:

          axes: [{
                type: 'numeric',
                title: 'My Title',
                titleMargin: 100,
                fields: ['field1', 'field2'],
                position: 'left',
                grid: true
            }, {
                type: 'category',
                title: 'Period',
                titleMargin: 100,
                position: 'bottom',
                fields: 'period_field',
                label: {
                    rotate: {
                        degrees: -45
                    }
                }                    
            }]

Upvotes: 1

Related Questions