Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change placement of "exporting" option

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!

like image 221
luftikus143 Avatar asked Jan 30 '13 11:01

luftikus143


3 Answers

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:

  • http://api.highcharts.com/highstock#exporting.buttons.exportButton
like image 52
Ricardo Alvaro Lohmann Avatar answered Oct 23 '22 07:10

Ricardo Alvaro Lohmann


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'
            }
        }
    },
like image 39
Sean M Avatar answered Oct 23 '22 06:10

Sean M


This works for me:

exporting: {
  buttons: {
    contextButton: {
      align: 'center',
      x: 50
    }
  }
},
like image 39
fabio_biondi Avatar answered Oct 23 '22 06:10

fabio_biondi