Skip to content

Commit 00fe051

Browse files
committed
reorder book recipes
Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
1 parent 888a8c5 commit 00fe051

26 files changed

Lines changed: 634 additions & 444 deletions

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: 9 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,10 +36,16 @@
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)
44+
- [Surface Plots](./recipes/3dcharts/surface_plots.md)
45+
- [Mesh3D](./recipes/3dcharts/mesh3d_plots.md)
4346
- [Maps](./recipes/maps.md)
47+
- [Scatter Maps](./recipes/maps/scatter_maps.md)
48+
- [Density Maps](./recipes/maps/density_maps.md)
4449
- [Choropleth Maps](./recipes/maps/choropleth_maps.md)
4550
- [Subplots](./recipes/subplots.md)
4651
- [Subplots](./recipes/subplots/subplots.md)

docs/book/src/recipes/3dcharts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ The complete source code for the following examples can also be found [here](htt
55
Kind | Link
66
:---|:----:
77
Scatter3D |[![Scatter 3D Charts](./img/basic_scatter3d.png)](./3dcharts/3dcharts.md)
8+
Surface Plots | [![Surface Plots](./img/surface_plot.png)](./3dcharts/surface_plots.md)
9+
Mesh3D | [![Mesh3D](./img/mesh3d.png)](./3dcharts/mesh3d_plots.md)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Mesh3D Plots
2+
3+
A `Mesh3D` trace draws a triangulated 3D mesh from vertex coordinates and triangle
4+
indices. An optional `intensity` array per vertex drives the color scale.
5+
6+
The following imports have been used to produce the plots below:
7+
8+
```rust,no_run
9+
use plotly::common::ColorScalePalette;
10+
use plotly::{Mesh3D, Plot};
11+
```
12+
13+
The `to_inline_html` method is used to produce the html plot displayed in this page.
14+
15+
## Basic Mesh3D Plot
16+
17+
```rust,no_run
18+
{{#include ../../../../../examples/3d_charts/src/main.rs:mesh_3d_plot}}
19+
```
20+
21+
{{#include ../../../../../examples/3d_charts/output/inline_mesh_3d_plot.html}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Surface Plots
2+
3+
A `Surface` trace renders a 3D surface from a matrix of z-values. Optional `x` and
4+
`y` vectors define the grid coordinates; when omitted, indices are used.
5+
6+
The following imports have been used to produce the plots below:
7+
8+
```rust,no_run
9+
use ndarray::Array;
10+
use plotly::{Plot, Surface};
11+
```
12+
13+
The `to_inline_html` method is used to produce the html plot displayed in this page.
14+
15+
## Basic Surface Plot
16+
17+
```rust,no_run
18+
{{#include ../../../../../examples/3d_charts/src/main.rs:surface_plot}}
19+
```
20+
21+
{{#include ../../../../../examples/3d_charts/output/inline_surface_plot.html}}

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](./img/table.png)](./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}}

0 commit comments

Comments
 (0)