Merge Multiple Cells in Table?

Hi Everyone,

I am trying to merge cells in the table I have attached. Ideally, I’d like to have the cells containing “V1” merged together as one. The same for “V2” and “V3”. Below is my code as well, any idea how to pull this off?

    header=dict(values=[' ', 'V1', 'V1', 'V1', 'V2', 'V2', 'V2', 'V3', 'V3', 'V3']),
    cells=dict(values=[[" ", "C1", "C2", "C3", "C4", "C5"],
                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ['1', '$', '%', 'C', 1000, 1000],
                       ['2', '$', '%', 'C', 1000, 1000],
                       ['3.', '$', '%', 'C', 1000, 1000],

                       ]))

data = [trace]
py.plot(data, filename='test.html', auto_open = True)```

If you can use dash_table.DataTable, there is a flag that will let you do this (merge_duplicate_headers=True). See https://dash.plot.ly/datatable/style for more cool features

Thanks, I did see this. However, I’m not familiar with Dash and would prefer to use Python - the same functionality must be supported with Python, no?

Dash is pretty easy to pick up (and it is a python framework) as their online docs are very good.

well, I’m glad I wasted all that time messing around building out my table in Dash only to find that I can’t upload my table or have it hosted by plotly like I can with my python generated graphs and tables. Need HTML.

Amazing that I spend all this money for a subscription service and I can’t get a straight answer for a basic feature from customer support.

Hi @reggiebizzle,

I don’t think it’s possible to merge table cells using the table trace. Feel free to open a feature request with the plotly.js project at https://github.com/plotly/plotly.js/issues.

Also, just to be clear, this is a community forum not a paid customer support portal. See https://support.plot.ly/plans for info on paid support options.

Thanks,
-Jon