Selecting/copying axis label text and table cell contents

I am trying to select the text of the axis label so that it can be copied. Also trying to select cell contents in tables obtained by using plotly.graph_objects.Table. I used to be able to do this with an early version of dash (0.26) but I recently upgraded to 1.17 and I can no longer do it.

Is there any config which can be set so that text can be selected?

image

It looks like selecting text was disabled in plotly library: https://github.com/plotly/plotly.js/pull/5165

Is there a way to enable it in my code?

I found a workaround for this issue.

I added this CSS to override .user-select-none into the assets directory of my dash app.

.user-select-none {
    user-select: text!important;
}
1 Like