Is possible to use gradient in bar charts?

Hi. I am wondering if is possible to use a gradient in bar charts instead of using solid colors. I was reading the documentation, however I just could find examples using a color scale with heatmaps. I would like to use something similar, but with bar charts.

Example
image

I have the same question (for Plotly R though), but I have not found any clue.

I have found some similar questions for Plotly Python in the community but none of them have any comments let alone answers. Perhaps is useful to have them linked here:

Also, there are two questions in SO that might help those using Dash Python, though I am not sure they solve the same problem:

Hi,

Here is the an option to create that kind of bar charts with Plotly Python that maybe useful.

1 Like