Skip to content

graph_objects.Table element takes up too much vertical space #3480

Closed
@frobnitzem

Description

@frobnitzem

Plotly is an amazing tool! However, the plotly.graph_objects.Table element takes up way too much vertical space.

This can be observed even inside the tables rendered in the plotly documentation:
https://plotly.com/python/table/

On my firefox browser, the very first table in that page only needs about 150 px of vertical space, but is somehow requesting a height of 525!

The rendered HTML in question looks like:

<g class="table" overflow="visible"
   style="box-sizing: content-box; position: absolute; left: 0px; overflow: visible; shape-rendering: crispedges; pointer-events: all;"
   width="734" height="525" transform="">
<g class="table-control-view"...></g></g>

The other tables on that page have similar issues.

For a work-around, I noticed the dash-sample-apps manually create HTML table elements (e.g. make_dash_table in https://github.com/plotly/dash-sample-apps/blob/main/apps/dash-drug-discovery/helpers.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions