Generation

generate functionFri, 03 Mar 2023

Correct the code of these plotly plots so that the y-axis is a logarithmic scale fig = go.Figure() fig.add_trace(go.Bar( x=data['Country'], y=data['Total Cases'], name='Заболевших', marker_color='indianred')) fig.add_trace(go.Bar( x=data['Country'], y=data['Total Deaths'], name='Умерших', marker_color='lightsalmon')) fig.update_layout(barmode='group', xaxis_tickangle=-45) fig.show()

fig = go.Figure() fig.add_trace(go.Bar( x=data['Country'], y=data['Total Cases'], name='Заболевших', marker_color='indianred')) fig.add_trace(go.Bar( x=data['Country'], y=data['Total Deaths'], name='Умерших', marker_color='lightsalmon')) fig.update_layout(barmode='group', xaxis_tickangle=-45, yaxis_type="log") fig.show()

Questions about programming?Chat with your personal AI assistant