更改“导出”选项的位置

时间:2013-01-30 11:09:11

标签: highcharts positioning

我想更改“导出”按钮的位置。在他们位于右上方的那一刻,因此隐藏了更长的标题。我想改变它,但是在参考文献中没有看到参数。

感谢任何提示!

4 个答案:

答案 0 :(得分:9)

样式按钮有很多选项,你只需看一下参考。

使用exporting,您可以直接设置按钮的样式,例如:

exporting: {
    buttons: {
        exportButton: {
            align: 'left',
            x: 40
        }
    }
}

demo

使用navigation可以设置所有按钮的样式:

navigation: {
    buttonOptions: {
        align: 'center'
    }
}

demo

参考

答案 1 :(得分:3)

里卡多的回答几乎是正确的。我相信自从他回答后语法已经改变了。

exporting button documentation

    exporting: {
        buttons: {
            contextButton: {
                align: 'left',
                x: 0,
                y: 380,
                verticalAlign: 'top'
            }
        }
    },

答案 2 :(得分:2)

这对我有用:

Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 236, in run
    session = self._build_session(options)
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 52, in _build_session
    session = PipSession()
  File "C:\Python27\lib\site-packages\pip\download.py", line 216, in __init__
    super(PipSession, self).__init__(*args, **kwargs)
  File "C:\Python27\lib\site-packages\pip\_vendor\requests\sessions.py", line 273, in __init__
    self.headers = default_headers()
  File "C:\Python27\lib\site-packages\pip\_vendor\requests\utils.py", line 555, in default_headers
    'User-Agent': default_user_agent(),
  File "C:\Python27\lib\site-packages\pip\_vendor\requests\utils.py", line 524, in default_user_agent
    _implementation = platform.python_implementation()
  File "C:\Python27\Lib\platform.py", line 1498, in python_implementation
    return _sys_version()[0]
  File "C:\Python27\Lib\platform.py", line 1463, in _sys_version
    repr(sys_version))
ValueError: failed to parse CPython sys.version: '2.7.6 |CUSTOM| (default, Jun  4 2014, 16:30:34) [MSC v.1500 64 bit (AMD64)]'

Storing debug log for failure in C:\Users\kyzcr_000\pip\pip.log

答案 3 :(得分:0)

您可以使用x / y或对齐参数:ExportButton Align