gpa*_*nda 7 data-visualization python-3.x plotly
我正在研究华丽而强大的 Plotly Python API,其目标是生成静态 html 仪表板。
这提出了两个问题:
为了生成 html,我看到以下示例。图表似乎是通过 URL 嵌入的。自从plotly 开源以来,这个 URL 嵌入实现仍然适用吗?现在有其他方法可以将绘图发送到静态 html 吗?
如何控制绘图/仪表板元素的布局?例如,在 Bokeh 中,我们可以执行以下操作:
bar = Bar(<define bar plot>)
line = Line(<define line plot>)
donut = Donut(<define donut chart>)
bar_line_panel = hplot(bar, line)
final_layout = vplot(bar_line_panel, donut)
output_file('foo.html')
show(final_layout)
渲染的 html 文件将包含圆环图上方彼此相邻的折线图和条形图。plotly 中是否有类似的功能,或者是否需要模板和 html/css 争论来指定绘图元素的布局,如本例所示?
感谢您抽出时间,非常期待在 Plotly 中创建一些交互式可视化!
| 归档时间: |
|
| 查看次数: |
1891 次 |
| 最近记录: |