Skip to content

Commit 5ed2efb

Browse files
committed
reorder book recipes
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
1 parent 26865e3 commit 5ed2efb

13 files changed

Lines changed: 496 additions & 436 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1919
- [[#421](https://github.com/plotly/plotly.rs/pull/421)] Backfill trace attributes for trace types to bring them to parity with plotly.js 3.7
2020
- [[#422](https://github.com/plotly/plotly.rs/issues/422)] Add `Indicator`, `Histogram2d`, `Icicle` trace types
2121
- [[#425](https://github.com/plotly/plotly.rs/issues/425)] Add `Splom` and `Parcats` trace types (scatter-plot matrix and parallel categories)
22+
- [[#432](https://github.com/plotly/plotly.rs/issues/432)] Add `Funnel` and `Waterfall` trace types
2223

2324
### Changed
2425

@@ -33,6 +34,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
3334
- [[#387](https://github.com/plotly/plotly.rs/pull/387)] Fix HeatMap hovertext/text dimensions
3435
- [[#385](https://github.com/plotly/plotly.rs/pull/385)] Add `{x,y}gap` parameter to heatmaps
3536
- [[#381](https://github.com/plotly/plotly.rs/pull/381)] Make `Plot::default()` behave like `Plot::new()`
37+
- [[#432](https://github.com/plotly/plotly.rs/issues/432)] Fixed mdBook table of contents ordering
38+
3639

3740
## [0.14.0] - 2026-01-10
3841

‎docs/book/src/SUMMARY.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@
1414
- [Scatter Plots](./recipes/basic_charts/scatter_plots.md)
1515
- [Line Charts](./recipes/basic_charts/line_charts.md)
1616
- [Bar Charts](./recipes/basic_charts/bar_charts.md)
17+
- [Table Charts](./recipes/basic_charts/table_charts.md)
1718
- [Pie Charts](./recipes/basic_charts/pie_charts.md)
18-
- [Sankey Diagrams](./recipes/basic_charts/sankey_diagrams.md)
19-
- [Parallel Categories](./recipes/basic_charts/parcats_charts.md)
2019
- [Treemap Charts](./recipes/basic_charts/treemap_charts.md)
2120
- [Sunburst Charts](./recipes/basic_charts/sunburst_charts.md)
22-
- [Funnel Charts](./recipes/basic_charts/funnel_charts.md)
23-
- [Waterfall Charts](./recipes/basic_charts/waterfall_charts.md)
2421
- [Icicle Charts](./recipes/basic_charts/icicle_charts.md)
22+
- [Sankey Diagrams](./recipes/basic_charts/sankey_diagrams.md)
23+
- [Parallel Categories](./recipes/basic_charts/parcats_charts.md)
2524
- [Indicator Charts](./recipes/basic_charts/indicator_charts.md)
2625
- [Statistical Charts](./recipes/statistical_charts.md)
2726
- [Error Bars](./recipes/statistical_charts/error_bars.md)
@@ -37,6 +36,8 @@
3736
- [Time Series and Date Axes](./recipes/financial_charts/time_series_and_date_axes.md)
3837
- [Candlestick Charts](./recipes/financial_charts/candlestick_charts.md)
3938
- [OHLC Charts](./recipes/financial_charts/ohlc_charts.md)
39+
- [Waterfall Charts](./recipes/financial_charts/waterfall_charts.md)
40+
- [Funnel Charts](./recipes/financial_charts/funnel_charts.md)
4041
- [Rangebreaks](./recipes/financial_charts/rangebreaks.md)
4142
- [3D Charts](./recipes/3dcharts.md)
4243
- [Scatter 3D](./recipes/3dcharts/3dcharts.md)

‎docs/book/src/recipes/basic_charts.md‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ The source code for the following examples can also be found [here](https://gith
44

55
Kind | Link
66
:---|:----:
7-
Scatter Plots |[![Scatter Plots](./img/line_and_scatter_plot.png)](./basic_charts/scatter_plots.md)
7+
Scatter Plots | [![Scatter Plots](./img/line_and_scatter_plot.png)](./basic_charts/scatter_plots.md)
88
Line Charts | [![Line Charts](./img/line_shape_options_for_interpolation.png)](./basic_charts/line_charts.md)
9-
Bar Charts | [![Bar Charts](./img/bar_chart_with_error_bars.png)](./basic_charts/scatter_plots.md)
9+
Bar Charts | [![Bar Charts](./img/bar_chart_with_error_bars.png)](./basic_charts/bar_charts.md)
10+
Table Charts | [Table Charts](./basic_charts/table_charts.md)
1011
Pie Charts | [![Pie Charts](./img/pie_charts.png)](./basic_charts/pie_charts.md)
11-
Sankey Diagrams | [![Sankey Diagrams](./img/basic_sankey.png)](./basic_charts/sankey_diagrams.md)
12-
Parallel Categories | [![Parallel Categories](./img/parallelcat.png)](./basic_charts/parcats_charts.md)
1312
Treemap Charts | [![Treemap Charts](./img/treemap.png)](./basic_charts/treemap_charts.md)
1413
Sunburst Charts | [![Sunburst Charts](./img/sunburst.png)](./basic_charts/sunburst_charts.md)
1514
Icicle Charts | [![Icicle Charts](./img/icicle.png)](./basic_charts/icicle_charts.md)
15+
Sankey Diagrams | [![Sankey Diagrams](./img/basic_sankey.png)](./basic_charts/sankey_diagrams.md)
16+
Parallel Categories | [![Parallel Categories](./img/parallelcat.png)](./basic_charts/parcats_charts.md)
1617
Indicator Charts | [![Indicator Charts](./img/indicator.png)](./basic_charts/indicator_charts.md)
17-
Funnel Charts | [![Funnel Charts](./img/funnel.png)](./basic_charts/funnel_charts.md)
18-
Waterfall Charts | [![Waterfall Charts](./img/waterfall.png)](./basic_charts/waterfall_charts.md)

‎docs/book/src/recipes/basic_charts/bar_charts.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,17 @@ The `to_inline_html` method is used to produce the html plot displayed in this p
3535
```
3636

3737
{{#include ../../../../../examples/basic_charts/output/inline_stacked_bar_chart.html}}
38+
39+
## Category Order Bar Chart
40+
```rust,no_run
41+
{{#include ../../../../../examples/basic_charts/src/main.rs:category_order_bar_chart}}
42+
```
43+
44+
{{#include ../../../../../examples/basic_charts/output/inline_category_order_bar_chart.html}}
45+
46+
## Bar Chart with Pattern Fills
47+
```rust,no_run
48+
{{#include ../../../../../examples/basic_charts/src/main.rs:bar_chart_with_pattern_fills}}
49+
```
50+
51+
{{#include ../../../../../examples/basic_charts/output/inline_bar_chart_with_pattern_fills.html}}

‎docs/book/src/recipes/basic_charts/sankey_diagrams.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The `to_inline_html` method is used to produce the html plot displayed in this p
2222
{{#include ../../../../../examples/basic_charts/output/inline_basic_sankey_diagram.html}}
2323

2424

25-
## Skankey diagram with defined node position
25+
## Sankey diagram with defined node position
2626
```rust,no_run
2727
{{#include ../../../../../examples/basic_charts/src/main.rs:custom_node_sankey_diagram}}
2828
```

‎docs/book/src/recipes/basic_charts/scatter_plots.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ The `to_inline_html` method is used to produce the html plot displayed in this p
7474
```
7575

7676
{{#include ../../../../../examples/basic_charts/output/inline_large_data_sets.html}}
77+
78+
## Categories Scatter Chart
79+
```rust,no_run
80+
{{#include ../../../../../examples/basic_charts/src/main.rs:categories_scatter_chart}}
81+
```
82+
83+
{{#include ../../../../../examples/basic_charts/output/inline_categories_scatter_chart.html}}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Table Charts
2+
3+
A `Table` trace renders structured data as an HTML table inside the plot. Unlike cartesian traces,
4+
it does not use x/y axes — you supply a styled `Header` and `Cells` block.
5+
6+
The following imports have been used to produce the plots below:
7+
8+
```rust,no_run
9+
use plotly::color::NamedColor;
10+
use plotly::traces::table::{
11+
Align as TableAlign, Cells, Fill as TableFill, Font as TableFont, Header, Line as TableLine,
12+
};
13+
use plotly::{Plot, Table};
14+
```
15+
16+
The `to_inline_html` method is used to produce the html plot displayed in this page.
17+
18+
## Basic Table
19+
```rust,no_run
20+
{{#include ../../../../../examples/basic_charts/src/main.rs:table_chart}}
21+
```
22+
23+
{{#include ../../../../../examples/basic_charts/output/inline_table_chart.html}}

‎docs/book/src/recipes/financial_charts.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ The source code for the following examples can also be found [here](https://gith
44

55
Kind | Link
66
:---|:----:
7-
Time Series and Date Axes |[![Time Series and Date Axes](./img/time_series_and_date_axes.png)](./financial_charts/time_series_and_date_axes.md)
7+
Time Series and Date Axes | [![Time Series and Date Axes](./img/time_series_and_date_axes.png)](./financial_charts/time_series_and_date_axes.md)
88
Candlestick Charts | [![Candlestick Charts](./img/candlestick_chart.png)](./financial_charts/candlestick_charts.md)
99
OHLC Charts | [![OHLC Charts](./img/ohlc_chart.png)](./financial_charts/ohlc_charts.md)
10+
Waterfall Charts | [![Waterfall Charts](./img/waterfall.png)](./financial_charts/waterfall_charts.md)
11+
Funnel Charts | [![Funnel Charts](./img/funnel.png)](./financial_charts/funnel_charts.md)
1012
Rangebreaks | [![Rangebreaks](./img/rangebreaks.png)](./financial_charts/rangebreaks.md)

docs/book/src/recipes/basic_charts/funnel_charts.md renamed to docs/book/src/recipes/financial_charts/funnel_charts.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ The following imports have been used to produce the plots below:
1818

1919
```rust,no_run
2020
use plotly::color::NamedColor;
21-
use plotly::common::{Marker, Orientation};
21+
use plotly::common::Marker;
2222
use plotly::funnel::Connector as FunnelConnector;
23+
use plotly::layout::Layout;
2324
use plotly::{Funnel, Plot};
2425
```
2526

2627
The `to_inline_html` method is used to produce the html plot displayed in this page.
2728

2829
## Basic Funnel
2930
```rust,no_run
30-
{{#include ../../../../../examples/basic_charts/src/main.rs:basic_funnel}}
31+
{{#include ../../../../../examples/financial_charts/src/main.rs:basic_funnel}}
3132
```
3233

33-
{{#include ../../../../../examples/basic_charts/output/inline_basic_funnel.html}}
34+
{{#include ../../../../../examples/financial_charts/output/inline_basic_funnel.html}}

docs/book/src/recipes/basic_charts/waterfall_charts.md renamed to docs/book/src/recipes/financial_charts/waterfall_charts.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ sequence of signed contributions. Each bar's role is set by its `Measure`:
1010
The value supplied for a `Total` bar is ignored — plotly.js re-derives it — but the slot
1111
must still be present, because the label, value and `measure` arrays are read positionally.
1212

13+
For nested stage-to-stage containment rather than signed contributions, see
14+
[Funnel Charts](./funnel_charts.md) instead.
15+
1316
The following imports have been used to produce the plots below:
1417

1518
```rust,no_run
1619
use plotly::color::NamedColor;
20+
use plotly::layout::Layout;
1721
use plotly::waterfall::{Marker as WaterfallMarker, Measure, MeasureStyle};
1822
use plotly::{Plot, Waterfall};
1923
```
@@ -22,7 +26,7 @@ The `to_inline_html` method is used to produce the html plot displayed in this p
2226

2327
## Basic Waterfall
2428
```rust,no_run
25-
{{#include ../../../../../examples/basic_charts/src/main.rs:basic_waterfall}}
29+
{{#include ../../../../../examples/financial_charts/src/main.rs:basic_waterfall}}
2630
```
2731

28-
{{#include ../../../../../examples/basic_charts/output/inline_basic_waterfall.html}}
32+
{{#include ../../../../../examples/financial_charts/output/inline_basic_waterfall.html}}

0 commit comments

Comments
 (0)