✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Change y-axis number type to percentage for both plots in subplot

I have two line charts and I’m hoping to make both of the axes percentages. Here is the code I use to get the top chart w/ percentages (bottom chart still number format)

line_growth_fig.update_yaxes(title_text="Txns", row=1, col=1) line_growth_fig.update_yaxes(title_text="Rev", row=2, col=1) line_growth_fig.update_layout(yaxis= { 'tickformat': ',.0%'}, hovermode='closest', legend_orientation="h") pyo.plot(line_growth_fig, filename = 'TrulyGrowth.html')

Here is the chart at hand: