Skip to content

Commit 1225228

Browse files
update book for release refs/tags/0.12.0
1 parent 802f5da commit 1225228

File tree

15 files changed

+572
-39
lines changed

15 files changed

+572
-39
lines changed

content/fundamentals/shapes.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

content/getting_started.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h1 class="menu-title">Plotly.rs Book</h1>
175175
<h1 id="getting-started"><a class="header" href="#getting-started">Getting Started</a></h1>
176176
<p>To start using <a href="https://github.com/plotly/plotly.rs">plotly.rs</a> in your project add the following to your <code>Cargo.toml</code>:</p>
177177
<pre><code class="language-toml">[dependencies]
178-
plotly = "0.11"
178+
plotly = "0.12"
179179
</code></pre>
180180
<p><a href="https://github.com/plotly/plotly.rs">Plotly.rs</a> is ultimately a thin wrapper around the <code>plotly.js</code> library. The main job of this library is to provide <code>structs</code> and <code>enums</code> which get serialized to <code>json</code> and passed to the <code>plotly.js</code> library to actually do the heavy lifting. As such, if you are familiar with <code>plotly.js</code> or its derivatives (e.g. the equivalent Python library), then you should find <a href="https://github.com/plotly/plotly.rs"><code>plotly.rs</code></a> intuitive to use.</p>
181181
<p>A <code>Plot</code> struct contains one or more <code>Trace</code> objects which describe the structure of data to be displayed. Optional <code>Layout</code> and <code>Configuration</code> structs can be used to specify the layout and config of the plot, respectively.</p>
@@ -231,7 +231,7 @@ <h1 id="getting-started"><a class="header" href="#getting-started">Getting Start
231231
<h2 id="saving-plots"><a class="header" href="#saving-plots">Saving Plots</a></h2>
232232
<p>To add the ability to save plots in the following formats: png, jpeg, webp, svg, pdf and eps, you can use the <code>kaleido</code> feature. This feature depends on <a href="https://github.com/plotly/Kaleido">plotly/Kaleido</a>: a cross-platform open source library for generating static images. All the necessary binaries have been included with <code>plotly_kaleido</code> for <code>Linux</code>, <code>Windows</code> and <code>MacOS</code>. Previous versions of <a href="https://github.com/plotly/plotly.rs">plotly.rs</a> used the <code>orca</code> feature, however, this has been deprecated as it provided the same functionality but required additional installation steps. To enable the <code>kaleido</code> feature add the following to your <code>Cargo.toml</code>:</p>
233233
<pre><code class="language-toml">[dependencies]
234-
plotly = { version = "0.11", features = ["kaleido"] }
234+
plotly = { version = "0.12", features = ["kaleido"] }
235235
</code></pre>
236236
<h2 id="webassembly-support"><a class="header" href="#webassembly-support">WebAssembly Support</a></h2>
237237
<p>As of v0.8.0, <a href="https://github.com/plotly/plotly.rs">plotly.rs</a> can now be used in a <code>Wasm</code> environment by enabling the <code>wasm</code> feature in your <code>Cargo.toml</code>:</p>

content/print.html

Lines changed: 177 additions & 16 deletions
Large diffs are not rendered by default.

content/recipes/basic_charts.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ <h1 id="basic-charts"><a class="header" href="#basic-charts">Basic Charts</a></h
160160
<div class="table-wrapper"><table><thead><tr><th style="text-align: left">Kind</th><th style="text-align: center">Link</th></tr></thead><tbody>
161161
<tr><td style="text-align: left">Scatter Plots</td><td style="text-align: center"><a href="./basic_charts/scatter_plots.html"><img src="./img/line_and_scatter_plot.png" alt="Scatter Plots" /></a></td></tr>
162162
<tr><td style="text-align: left">Line Charts</td><td style="text-align: center"><a href="./basic_charts/line_charts.html"><img src="./img/line_shape_options_for_interpolation.png" alt="Line Charts" /></a></td></tr>
163-
<tr><td style="text-align: left">Bar Charts</td><td style="text-align: center"><a href="./basic_charts/scatter_plots.html"><img src="./img/bar_chart_with_error_bars.png" alt="Scatter Plots" /></a></td></tr>
163+
<tr><td style="text-align: left">Bar Charts</td><td style="text-align: center"><a href="./basic_charts/scatter_plots.html"><img src="./img/bar_chart_with_error_bars.png" alt="Bar Charts" /></a></td></tr>
164+
<tr><td style="text-align: left">Pie Charts</td><td style="text-align: center"><a href="./basic_charts/pie_charts.html"><img src="./img/pie_charts.png" alt="Pie Charts" /></a></td></tr>
164165
<tr><td style="text-align: left">Sankey Diagrams</td><td style="text-align: center"><a href="./basic_charts/sankey_diagrams.html"><img src="./img/basic_sankey.png" alt="Sankey Diagrams" /></a></td></tr>
165166
</tbody></table>
166167
</div>

content/recipes/basic_charts/bar_charts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h2 id="stacked-bar-chart"><a class="header" href="#stacked-bar-chart">Stacked B
250250
<i class="fa fa-angle-left"></i>
251251
</a>
252252

253-
<a rel="next prefetch" href="../../recipes/basic_charts/sankey_diagrams.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
253+
<a rel="next prefetch" href="../../recipes/basic_charts/pie_charts.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
254254
<i class="fa fa-angle-right"></i>
255255
</a>
256256

@@ -264,7 +264,7 @@ <h2 id="stacked-bar-chart"><a class="header" href="#stacked-bar-chart">Stacked B
264264
<i class="fa fa-angle-left"></i>
265265
</a>
266266

267-
<a rel="next prefetch" href="../../recipes/basic_charts/sankey_diagrams.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
267+
<a rel="next prefetch" href="../../recipes/basic_charts/pie_charts.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
268268
<i class="fa fa-angle-right"></i>
269269
</a>
270270
</nav>

0 commit comments

Comments
 (0)