答案 0 :(得分:1)
您可以通过导出按钮配置将其他按钮添加到图表中。要更改轴比例,请使用具有正确轴类型的更新方法。要应用全屏视图,您可以切换一些CSS类。
In [1]: run_pipe(["yes"], ["head", "-n", "1"])
Out[1]: b'y\n'
In [2]: run_pipe(["false"], ["true"])
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
<ipython-input-2-db97c6876cd7> in <module>()
----> 1 run_pipe(["false"], ["true"])
~/test.py in run_pipe(*cmds)
22 for proc in procs:
23 if proc.returncode and proc.returncode != -signal.SIGPIPE:
---> 24 raise subprocess.CalledProcessError(proc.returncode, proc.args)
25 return stdout
CalledProcessError: Command '['false']' returned non-zero exit status 1
实时演示:https://jsfiddle.net/BlackLabel/w5Laobgc/
API参考:
https://api.highcharts.com/class-reference/Highcharts.Axis#update