I'd like to change the placement of the "exporting" buttons. In the moment they are positioned at the top right, and thus hiding pieces of a longer title. I'd like to change that, but don't see in the references a parameter for that.
Thanks for any hints!
There are many options to style buttons, you just have to take a look the reference.
Using exporting
, you can directly style the button, like:
exporting: {
buttons: {
exportButton: {
align: 'left',
x: 40
}
}
}
demo
Using navigation
you can style all buttons:
navigation: {
buttonOptions: {
align: 'center'
}
}
demo
Reference:
Ricardo's answer is almost correct. I believe the syntax has changed since he answered.
exporting button documentation
exporting: {
buttons: {
contextButton: {
align: 'left',
x: 0,
y: 380,
verticalAlign: 'top'
}
}
},
This works for me:
exporting: {
buttons: {
contextButton: {
align: 'center',
x: 50
}
}
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With