Skip to content

Commit 7f6ac5d

Browse files
committed
Merge remote-tracking branch 'upstream/live-docs' into mkdocs-conversion
2 parents 22ee456 + 222a6f5 commit 7f6ac5d

File tree

1,565 files changed

+1544667
-1516826
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,565 files changed

+1544667
-1516826
lines changed

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ jobs:
303303
- run:
304304
name: Compare pixels
305305
command: .circleci/test.sh test-image ; find build -maxdepth 1 -type f -delete
306+
- image-diff-message
306307
- store_artifacts:
307308
path: build
308309
destination: /
@@ -317,6 +318,7 @@ jobs:
317318
- run:
318319
name: Compare pixels
319320
command: .circleci/test.sh test-image-virtual-webgl ; find build -maxdepth 1 -type f -delete
321+
- image-diff-message
320322
- store_artifacts:
321323
path: build
322324
destination: /
@@ -331,6 +333,7 @@ jobs:
331333
- run:
332334
name: Compare pixels
333335
command: .circleci/test.sh test-image ; find build -maxdepth 1 -type f -delete
336+
- image-diff-message
334337
- store_artifacts:
335338
path: build
336339
destination: /
@@ -345,6 +348,7 @@ jobs:
345348
- run:
346349
name: Compare pixels of mathjax v3 baselines
347350
command: .circleci/test.sh test-image-mathjax3
351+
- image-diff-message
348352
- store_artifacts:
349353
path: build
350354
destination: /
@@ -515,6 +519,16 @@ jobs:
515519
- store_artifacts:
516520
path: topojson.tar
517521

522+
commands:
523+
image-diff-message:
524+
steps:
525+
- run:
526+
name: IMAGE DIFF DETECTED - SEE NOTE BELOW
527+
when: on_fail
528+
command: |
529+
echo "Image Diff Detected: baseline images may need to be updated. Run 'tasks/circleci_image_artifact_download.sh' to download the baseline images generated by this job."
530+
echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
531+
518532
workflows:
519533
version: 2
520534
build-and-test:

.github/ISSUE_TEMPLATE.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report for a plotly.js issue
4+
title: "[BUG]: "
5+
labels: bug
6+
7+
---
8+
9+
### Instructions (remove this section before submitting report)
10+
11+
Thanks for your interest in plotly.js!
12+
13+
- Before submitting a new bug report, please search for existing and closed issues. If your bug is not addressed yet, fill out the sections below and submit a new issue.
14+
- Issues found on the example pages from **https://plotly.com/javascript/** should be filed in our [documentation repo](https://github.com/plotly/documentation/issues) with the exception of **https://plotly.com/javascript/reference** which should be filed here.
15+
- Implementation questions ("How do I do ...?") should be asked on our [Community Forum](https://community.plotly.com/c/plotly-js/6) or on [Stack Overflow](https://stackoverflow.com/questions/tagged/plotly) (tagged 'plotly').
16+
- Comments should add content to the discussions. Approbation comments such as *+1* or *I would like this feature to be implemented as well* will be deleted by the maintainers. Please use [GitHub reactions](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.
17+
18+
### Description
19+
20+
_Add a clear description of the issue that you're having._
21+
22+
### Screenshots/Video
23+
24+
_Add screenshots or a video of the issue._
25+
26+
### Steps to reproduce
27+
28+
_Reports **must** include steps to reproduce the issue. Alternatively, you can use [codepen](http://codepen.io/), [jsfiddle](https://jsfiddle.net/) or [jsbin](https://jsbin.com) to share your example. Please use the [latest (un-minified) version](https://github.com/plotly/plotly.js/releases) of plotly.js in your report unless not applicable._
29+
30+
- Go to '...'
31+
- Click on X
32+
- Note the issue with Y
33+
34+
35+
### Notes
36+
37+
_Add info here that doesn't fit in the other sections._
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Feature request
3+
about: Submit a new feature request for plotly.js
4+
title: "[FEATURE]: "
5+
labels: feature
6+
7+
---
8+
9+
### Instructions (remove this section before submitting an issue)
10+
11+
Thanks for your interest in plotly.js!
12+
13+
- Before submitting a new feature request, please search for existing and closed requests. If your request is novel, fill out the sections below and submit a new request.
14+
- Comments should add content to the discussions. Approbation comments such as *+1* or *I would like this feature to be implemented as well* will be deleted by the maintainers. Please use [GitHub reactions](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments) instead.
15+
16+
### Description
17+
18+
_Add a clear description of the feature that you're requesting._
19+
20+
21+
### Why should this feature be added?
22+
23+
_Provide an argument for why this feature should be added. We can't add everything, so this will help us determine what gets worked on. Please also consider creating a PR and adding the feature yourself. Help is always appreciated._
24+
25+
### Mocks/Designs
26+
27+
_Please add any mocks or designs you might have for the feature._
28+
29+
### Notes
30+
31+
_Add info here that doesn't fit in the other sections._

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tags
1717

1818
.*
1919
!.circleci
20+
!.github/
2021
!.gitignore
2122
!.npmignore
2223

CHANGELOG.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,35 @@ To see all merged commits on the master branch that will be part of the next plo
99

1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

12-
## [3.1.0]
12+
## [3.1.2] -- 2025-10-16
13+
14+
### Added
15+
- Add "SI extended" formatting rule for tick exponents on axis labels, allowing values to be displayed with extended SI prefixes (e.g., femto, pico, atto) [[#7249](https://github.com/plotly/plotly.js/pull/7249)], with thanks to @dberardi99 for the contribution!
16+
17+
### Fixed
18+
- Fix editable `title.text` for `ternary`, `polar`, `colorbar`, and `rangeslider` (regression introduced in 3.0.0) [[#7513](https://github.com/plotly/plotly.js/pull/7513)], with thanks to @Lexachoc for the contribution!
19+
- Fix `layout.title.subtitle` does not properly clear/remove from the chart when `subtitle` object is not in place, or `subtitle.text` set to `null`, empty string, or whitespace-only values [[#7571](https://github.com/plotly/plotly.js/pull/7571)], with thanks to @cminn10 for the contribution!
20+
- Fix issue where `visible` property of one legend was affecting another. [[#7574](https://github.com/plotly/plotly.js/pull/7574)]
21+
- Resolve incorrect shape clipping for domain-referenced shapes on n*10th subplot. [[#7576](https://github.com/plotly/plotly.js/pull/7576)]
22+
- Update config diff check method to handle nested arrays [[#7579](https://github.com/plotly/plotly.js/pull/7579)]
23+
24+
25+
## [3.1.1] -- 2025-09-29
26+
27+
### Fixed
28+
- Update plot with all config changes during call to `Plotly.react` [[#7475](https://github.com/plotly/plotly.js/pull/7475)]
29+
- Fix wheel event handler `Violation` in Chromium by setting `passive: true` [[#7517](https://github.com/plotly/plotly.js/pull/7517)]
30+
- Fix `locationmode` warning to be less aggressive: show warning only when `locationmode` is `'country names'` [[#7520](https://github.com/plotly/plotly.js/pull/7520)]
31+
- Refactor `drawMainTitle` to use context-specific selections for title and subtitle, avoiding conflicts when multiple plots are present on the same page [[#7522](https://github.com/plotly/plotly.js/pull/7522)], with thanks to @davibarbosa2 for the contribution!
32+
- Fix broken styling of map attributions [[#7526](https://github.com/plotly/plotly.js/pull/7526)]
33+
- Calculate colorscale properly for histogram when marker `cmin`/`cmax`/`cmid` values are undefined [[#7534](https://github.com/plotly/plotly.js/pull/7534)]
34+
- Tidy up some stray characters in attribute descriptions [[#7539](https://github.com/plotly/plotly.js/pull/7539)], [[#7540](https://github.com/plotly/plotly.js/pull/7540)]
35+
- Fix some typos (and a conditional check) [[#7542](https://github.com/plotly/plotly.js/pull/7542)], with thanks to @musvaage for the contribution!
36+
- Fix cropping of subunits in USA topojson, clean up land and coastlines layers for all topojson [[#7555](https://github.com/plotly/plotly.js/pull/7555)]
37+
- Fix issue causing empty ScatterGL plots when using text elements [#7563](https://github.com/plotly/plotly.js/pull/7563)
38+
39+
40+
## [3.1.0] -- 2025-08-08
1341

1442
### Added
1543
- Add property `zerolinelayer` to cartesian axes to allow drawing zeroline above traces [[#7269](https://github.com/plotly/plotly.js/pull/7269)]

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors:
99
- family-names: "Samimi"
1010
given-names: "Mojtaba"
1111
title: "Open source Plotly charting library"
12-
version: 3.1.0
12+
version: 3.1.2
1313
doi: 10.5281/zenodo.13964707
14-
date-released: 2025-08-07
14+
date-released: 2025-10-16
1515
url: "https://github.com/plotly/plotly.js"

README.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
6060
6161
```html
6262
<head>
63-
<script src="https://cdn.plot.ly/plotly-3.1.0.min.js" charset="utf-8"></script>
63+
<script src="https://cdn.plot.ly/plotly-3.1.2.min.js" charset="utf-8"></script>
6464
</head>
6565
<body>
6666
<div id="gd"></div>
@@ -78,7 +78,7 @@ Alternatively you may consider using [native ES6 import](https://developer.mozil
7878

7979
```html
8080
<script type="module">
81-
import "https://cdn.plot.ly/plotly-3.1.0.min.js"
81+
import "https://cdn.plot.ly/plotly-3.1.2.min.js"
8282
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
8383
</script>
8484
```
@@ -90,7 +90,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
9090
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
9191

9292
```html
93-
<script src="https://cdn.plot.ly/plotly-3.1.0.js" charset="utf-8"></script>
93+
<script src="https://cdn.plot.ly/plotly-3.1.2.js" charset="utf-8"></script>
9494
```
9595

9696
> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
@@ -144,34 +144,35 @@ Please read through our [contributing guidelines](https://github.com/plotly/plot
144144

145145
Plotly.js is at the core of a large and dynamic ecosystem with many contributors who file issues, reproduce bugs, suggest improvements, write code in this repo (and other upstream or downstream ones) and help users in the Plotly community forum. The following people deserve special recognition for their outsized contributions to this ecosystem:
146146

147-
| | GitHub | Twitter | Status |
148-
|---|--------|---------|--------|
149-
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | | Active, Maintainer |
150-
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | [@solarchvision](https://twitter.com/solarchvision) | Active, Maintainer |
151-
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | | Active, Maintainer |
152-
|**My-Tien Nguyen**| [@my-tien](https://github.com/my-tien) | | Active, Community Contributor |
153-
|**Birk Skyum**| [@birkskyum](https://github.com/birkskyum) | | Active, Community Contributor |
154-
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) | Hall of Fame |
155-
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | | Hall of Fame |
156-
|**Jack Parmer**| [@jackparmer](https://github.com/jackparmer) | | Hall of Fame |
157-
|**Nicolas Kruchten** | [@nicolaskruchten](https://github.com/nicolaskruchten) | [@nicolaskruchten](https://twitter.com/nicolaskruchten) | Hall of Fame |
158-
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | [@MikolaLysenko](https://twitter.com/MikolaLysenko) | Hall of Fame |
159-
|**Ricky Reusser**| [@rreusser](https://github.com/rreusser) | [@rickyreusser](https://twitter.com/rickyreusser) | Hall of Fame |
160-
|**Dmitry Yv.** | [@dy](https://github.com/dy) | [@DimaYv](https://twitter.com/dimayv)| Hall of Fame |
161-
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | [@jonmmease](https://twitter.com/jonmmease) | Hall of Fame |
162-
|**Robert Monfera**| [@monfera](https://github.com/monfera) | [@monfera](https://twitter.com/monfera) | Hall of Fame |
163-
|**Robert Möstl** | [@rmoestl](https://github.com/rmoestl) | [@rmoestl](https://twitter.com/rmoestl) | Hall of Fame |
164-
|**Nicolas Riesco**| [@n-riesco](https://github.com/n-riesco) | | Hall of Fame |
165-
|**Miklós Tusz**| [@mdtusz](https://github.com/mdtusz) | [@mdtusz](https://twitter.com/mdtusz)| Hall of Fame |
166-
|**Chelsea Douglas**| [@cldougl](https://github.com/cldougl) | | Hall of Fame |
167-
|**Ben Postlethwaite**| [@bpostlethwaite](https://github.com/bpostlethwaite) | | Hall of Fame |
168-
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | [@hannahker11](https://twitter.com/hannahker11)| Hall of Fame |
169-
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | | Hall of Fame |
170-
|**Alex Vados**| [@alexander-daniel](https://github.com/alexander-daniel) | | Hall of Fame |
147+
| Contributor | GitHub | Status |
148+
|-------------|--------|---------|
149+
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | Active, Maintainer |
150+
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | Active, Maintainer |
151+
|**Cameron DeCoster** | [@camdecoster](https://github.com/camdecoster) | Active, Maintainer |
152+
|**My-Tien Nguyen**| [@my-tien](https://github.com/my-tien) | Active, Community Contributor |
153+
|**Birk Skyum**| [@birkskyum](https://github.com/birkskyum) | Active, Community Contributor |
154+
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | Hall of Fame |
155+
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | Hall of Fame |
156+
|**Jack Parmer**| [@jackparmer](https://github.com/jackparmer) | Hall of Fame |
157+
|**Nicolas Kruchten** | [@nicolaskruchten](https://github.com/nicolaskruchten) | Hall of Fame |
158+
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | Hall of Fame |
159+
|**Ricky Reusser**| [@rreusser](https://github.com/rreusser) | Hall of Fame |
160+
|**Dmitry Yv.** | [@dy](https://github.com/dy) | Hall of Fame |
161+
|**Jon Mease** | [@jonmmease](https://github.com/jonmmease) | Hall of Fame |
162+
|**Robert Monfera**| [@monfera](https://github.com/monfera) | Hall of Fame |
163+
|**Robert Möstl** | [@rmoestl](https://github.com/rmoestl) | Hall of Fame |
164+
|**Nicolas Riesco**| [@n-riesco](https://github.com/n-riesco) | Hall of Fame |
165+
|**Miklós Tusz**| [@mdtusz](https://github.com/mdtusz) | Hall of Fame |
166+
|**Chelsea Douglas**| [@cldougl](https://github.com/cldougl) | Hall of Fame |
167+
|**Ben Postlethwaite**| [@bpostlethwaite](https://github.com/bpostlethwaite) | Hall of Fame |
168+
|**Hannah Ker** | [@hannahker](https://github.com/hannahker) | Hall of Fame |
169+
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | Hall of Fame |
170+
|**Alex Vados**| [@alexander-daniel](https://github.com/alexander-daniel) | Hall of Fame |
171+
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | Hall of Fame |
171172

172173
## Copyright and license
173174

174-
Code and documentation copyright Plotly, Inc.
175+
Code and documentation copyright 2025 Plotly, Inc.
175176

176177
Code released under the [MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
177178

@@ -183,5 +184,7 @@ See the [Releases section](https://github.com/plotly/plotly.js/releases) of our
183184

184185
## Community
185186

186-
* Implementation help may be found on community.plot.com (tagged [`plotly-js`](https://community.plotly.com/c/plotly-js)) or on Stack Overflow (tagged [`plotly`](https://stackoverflow.com/questions/tagged/plotly)).
187-
* Developers should use the keyword `plotly` on packages which modify or add to the functionality of plotly.js when distributing through [npm](https://www.npmjs.com/browse/keyword/plotly).
187+
* Follow us on [X](https://x.com/plotlygraphs) and [LinkedIn](https://www.linkedin.com/company/plotly/) for the latest Plotly news.
188+
* Implementation help may be found on our community forum (tagged [`plotly-js`](https://community.plotly.com/c/plotly-js)) or
189+
on Stack Overflow (tagged [`plotly.js`](https://stackoverflow.com/questions/tagged/plotly.js)).
190+
* Developers should use the keyword `plotly` on packages which modify or add to the functionality of plotly.js when distributing through [npm](https://www.npmjs.com/search?q=keywords:plotly).

biome.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
"files": {
55
"maxSize": 10000000,
66
"includes": [
7+
"**/esbuild-config.js",
78
"**/src/**",
89
"**/lib/**",
910
"**/test/**",
1011
"**/tasks/**",
1112
"**/devtools/**",
13+
"**/topojson/**",
1214
"!**/test/plot-schema.json",
1315
"!**/dist",
1416
"!**/stackgl_modules",
@@ -88,17 +90,7 @@
8890
"noVar": "off",
8991
"noConsole": { "level": "off", "options": { "allow": ["log"] } }
9092
}
91-
},
92-
"includes": [
93-
"**",
94-
"!**/stackgl_modules",
95-
"!**/node_modules",
96-
"!**/dist",
97-
"!**/build",
98-
"!**/tasks/test_amdefine.js",
99-
"!**/tasks/test_requirejs.js",
100-
"!**/test/jasmine/assets/jquery-1.8.3.min.js"
101-
]
93+
}
10294
},
10395
"javascript": {
10496
"globals": [
@@ -131,7 +123,7 @@
131123
"formatter": {
132124
"enabled": true,
133125
"indentStyle": "space",
134-
"indentWidth": 1,
126+
"indentWidth": 2,
135127
"lineEnding": "lf",
136128
"lineWidth": 80
137129
}

0 commit comments

Comments
 (0)