Skip to content

Commit e769191

Browse files
jqnatividadclaude
authored andcommitted
feat: upgrade bundled plotly.js from 3.6.0 to 3.7.0
- replaces the three vendored plotly.min.js copies (plotly, plotly_static, docs/book) with v3.7.0 and bumps the pinned CDN version strings in plot.rs, the jupyter notebook template, plotly_static template, and the book header. - fix wasm-yew examples, plotly.js was pinned at 2.14.0, and multiple_plots_example used plotly-latest.min.js, which the CDN freezes at v1.58.5 (2021) — a 1.x runtime against a library that now emits 3.x JSON. Closes #419 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com>
1 parent 50228ab commit e769191

11 files changed

Lines changed: 279 additions & 278 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
1818
### Changed
1919

2020
- [[#406](https://github.com/plotly/plotly.rs/issues/406)] Upgrade bundled plotly.js from 3.0.1 to 3.6.0
21+
- [[#419](https://github.com/plotly/plotly.rs/issues/419)] Upgrade bundled plotly.js from 3.6.0 to 3.7.0
2122

2223
## [0.14.1] - 2026-02-15
2324

‎docs/book/plotly.min.js‎

Lines changed: 90 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/book/theme/header.hbs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<script src="https://cdn.plot.ly/plotly-3.6.0.min.js"></script>
1+
<script src="https://cdn.plot.ly/plotly-3.7.0.min.js"></script>

‎examples/customization/multiple_plots_example/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use plotly::{
1212
fn main() {
1313
let html: String = HtmlPage::new()
1414
.with_title("Plotly-rs Multiple Plots")
15-
.with_script_link("https://cdn.plot.ly/plotly-latest.min.js")
15+
.with_script_link("https://cdn.plot.ly/plotly-3.7.0.min.js")
1616
.with_header(1, "Multiple Plotly plots on the same HTML page")
1717
.with_raw(first_plot())
1818
.with_raw(second_plot())

‎examples/wasm-yew/basic/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<title>Plotly Yew</title>
7-
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
7+
<script src="https://cdn.plot.ly/plotly-3.7.0.min.js"></script>
88
</head>
99

1010
<body></body>

‎examples/wasm-yew/callback-example/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<title>Plotly Yew</title>
7-
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
7+
<script src="https://cdn.plot.ly/plotly-3.7.0.min.js"></script>
88
</head>
99

1010
<body></body>

‎plotly/resource/plotly.min.js‎

Lines changed: 90 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎plotly/src/plot.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ impl Plot {
757757
/// This function provides HTML script tags that load JavaScript libraries
758758
/// from external CDN sources, requiring an internet connection to
759759
/// function. The referenced sources include:
760-
/// - Plotly.js library from CDN (version 3.6.0)
760+
/// - Plotly.js library from CDN (version 3.7.0)
761761
/// - MathJax tex-svg from jsDelivr CDN (version 3.2.2)
762762
///
763763
/// This is the default behavior when the `plotly_embed_js` feature is
@@ -767,7 +767,7 @@ impl Plot {
767767
// Note that since 'tex-mml-chtml' conflicts with 'tex-svg' when generating
768768
// Latex Titles we no longer include it.
769769
r##"<script src="https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-svg.js"></script>
770-
<script src="https://cdn.plot.ly/plotly-3.6.0.min.js"></script>
770+
<script src="https://cdn.plot.ly/plotly-3.7.0.min.js"></script>
771771
"##
772772
.to_string()
773773
}

‎plotly/templates/jupyter_notebook_plot.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div>
22
<div id="{{ plot_div_id }}" class="plotly-graph-div" style="height:100%; width:100%;"></div>
33
<script type="text/javascript">
4-
require(['https://cdn.plot.ly/plotly-3.6.0.min.js'], function(Plotly) {
4+
require(['https://cdn.plot.ly/plotly-3.7.0.min.js'], function(Plotly) {
55
Plotly.newPlot(
66
"{{ plot_div_id }}",
77
{{ plot| tojson | safe }}

‎plotly_static/resource/plotly.min.js‎

Lines changed: 90 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)