Spaces:
Sleeping
Sleeping
Commit ·
9048554
1
Parent(s): b2744d8
Fix bar chart y-axis scaling (rangemode=tozero)
Browse files294 unmodified lines29529629729829930013 unmodified lines31431531631731831941 unmodified lines3613623633643653669 unmodified lines376377378379380381294 unmodified linesxaxis_title="Fleet Size",yaxis_title="Extra Profit from Circular Model (EUR)",showlegend=False,)st.plotly_chart(fig_advantage, use_container_width=True)13 unmodified linestitle="Products Needed to Serve Same Customers",xaxis_title="Fleet Size Target", yaxis_title="Products to Manufacture",barmode="group", legend=dict(orientation="h", yanchor="bottom", y=1.02),)st.plotly_chart(fig_products, use_container_width=True)41 unmodified linesfig_sens.update_layout(title="Profit Advantage by # of Cycles",xaxis_title="Number of Use Cycles", yaxis_title="Profit Advantage (EUR)",)fig_sens.add_vline(x=max_cycles, line_dash="dash", line_color="blue",annotation_text=f"Current: {max_cycles}")9 unmodified linesfig_cost.update_layout(title="Cost Savings from Reuse",xaxis_title="Number of Use Cycles", yaxis_title="Cost Saved vs Linear (EUR)",)st.plotly_chart(fig_cost, use_container_width=True)294 unmodified lines29529629729829930030113 unmodified lines31531631731831932032141 unmodified lines3633643653663673683699 unmodified lines379380381382383384385294 unmodified linesxaxis_title="Fleet Size",yaxis_title="Extra Profit from Circular Model (EUR)",showlegend=False,yaxis=dict(rangemode='tozero'),)st.plotly_chart(fig_advantage, use_container_width=True)13 unmodified linestitle="Products Needed to Serve Same Customers",xaxis_title="Fleet Size Target", yaxis_title="Products to Manufacture",barmode="group", legend=dict(orientation="h", yanchor="bottom", y=1.02),yaxis=dict(rangemode='tozero'),)st.plotly_chart(fig_products, use_container_width=True)41 unmodified linesfig_sens.update_layout(title="Profit Advantage by # of Cycles",xaxis_title="Number of Use Cycles", yaxis_title="Profit Advantage (EUR)",yaxis=dict(rangemode='tozero'),)fig_sens.add_vline(x=max_cycles, line_dash="dash", line_color="blue",annotation_text=f"Current: {max_cycles}")9 unmodified linesfig_cost.update_layout(title="Cost Savings from Reuse",xaxis_title="Number of Use Cycles", yaxis_title="Cost Saved vs Linear (EUR)",yaxis=dict(rangemode='tozero'),)st.plotly_chart(fig_cost, use_container_width=True)
app.py+4