Dashz
September 21, 2023, 1:20am
1
Within my bar chart I would like to either have one chart with the highest - lowest rapid rapid charging possible and another with not possible or have one chart in which the rapid charging are in order from highest - lowest and not possible is at the end of smallest.
My code is:
fig = px.bar(ElectricCarData, x=“Brand”, color=‘RapidCharge’, pattern_shape_sequence=[“x”, “+”], height=400)
fig.update_xaxes(categoryorder=‘total descending’)
fig.update_layout(
title=“RapidCharge Across Brands”,
xaxis_title=“Brand”,
legend_title=“RapidCharge (Y/N)”,
font=dict(
family=“Times New Roman”,
size=13,
color=“#43464B ”))
fig.show()
My current chart view is:
AIMPED
September 21, 2023, 7:17am
2
Hi @Dashz , unfortunately I did not understand, what you are trying to do.
For future posts: could you please format your code for better readibility?
Hello Community,
we found a lot of new posts with sample code are rendered in a pretty bad format: incorrect indent and punctuations in a different encoding, etc.
there is no secret but a simple markdown trick
your code should be included between two ```, the first one followed by language like python , without the ending comment #part
```python
print("Hello Markdown")
``` # show the escaped ending
Dashz
September 22, 2023, 2:05am
3
How do you filter out a specific value from the row of a column within a bar chart