Reputation: 557
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.
Upvotes: 1
Views: 303
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