Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor update to waterfall-charts.md #2825

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/python/waterfall-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fig.show()
```

### Setting Marker Size and Color
This example uses [decreasing, increasing, and total](https://plotly.com/python/reference/waterfall/#waterfall-increasing) attributes to customize the bars.
This example uses [decreasing](https://plotly.com/python/reference/waterfall/#waterfall-decreasing), [increasing](https://plotly.com/python/reference/waterfall/#waterfall-increasing), and [totals](https://plotly.com/python/reference/waterfall/#waterfall-totals) attributes to customize the bars.

```python
import plotly.graph_objects as go
Expand All @@ -100,7 +100,7 @@ fig = go.Figure(go.Waterfall(
y = [10, 20, 30, -10, None, 10, 20, -40, None], base = 300,
decreasing = {"marker":{"color":"Maroon", "line":{"color":"red", "width":2}}},
increasing = {"marker":{"color":"Teal"}},
totals = {"marker":{"color":"deep sky blue", "line":{"color":'blue', "width":3}}}
totals = {"marker":{"color":"deep sky blue", "line":{"color":"blue", "width":3}}}
))

fig.update_layout(title = "Profit and loss statement", waterfallgap = 0.3)
Expand Down Expand Up @@ -129,4 +129,4 @@ fig.show()
```

#### Reference
See https://plotly.com/python/reference/waterfall/ for more information and chart attribute options!
See https://plotly.com/python/reference/waterfall/ for more information and chart attribute options!