Monday 26 June 2023

Plotly plot single trace with 2 yaxis

I have a plotly graph object bar chart for which I want to display 2 y-axis (different currencies, so the conversion factor ist constant).

Currently I plot 1 trace each, while for the second one I set opacity to 0, disable the legend and hoverinfo. This hack works, but is ugly to maintain.

I'm aware of https://plotly.com/python/multiple-axes/

Is there an easier way to do this?

Goal: enter image description here

The conversion-Factor here is 3.9 CHF per credit



from Plotly plot single trace with 2 yaxis

No comments:

Post a Comment