Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5be7cec

Browse filesBrowse files
committed
Merge remote-tracking branch 'origin/master' into fix-legend-container-overflow
2 parents 1d5aea2 + 40f2221 commit 5be7cec
Copy full SHA for 5be7cec

File tree

Expand file treeCollapse file tree

408 files changed

+1424228
-1578372
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

408 files changed

+1424228
-1578372
lines changed

‎.circleci/config.yml

Copy file name to clipboardExpand all lines: .circleci/config.yml
+1-7Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2.1
22
orbs:
3-
browser-tools: circleci/browser-tools@1.4.8
3+
browser-tools: circleci/browser-tools@1.5.1
44

55
# Inspired by:
66
# https://github.com/CircleCI-Public/circleci-demo-workflows/blob/workspace-forwarding/.circleci/config.yml
@@ -464,12 +464,6 @@ jobs:
464464
- run:
465465
name: Test plot-schema.json diff - If failed, after (npm start) you could run (npm run schema && git add test/plot-schema.json && git commit -m "update plot-schema diff")
466466
command: diff --unified --color dist/plot-schema.json test/plot-schema.json
467-
- run:
468-
name: Test plotly.min.js import using amdefine
469-
command: npm run test-amdefine
470-
- run:
471-
name: Test plotly.min.js import using requirejs
472-
command: npm run test-requirejs
473467

474468
test-stackgl-bundle:
475469
docker:

‎.circleci/download_google_fonts.py

Copy file name to clipboardExpand all lines: .circleci/download_google_fonts.py
+9-2Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22

33
dirOut = '.circleci/fonts/truetype/googleFonts/'
44

5-
def download(repo, family, types) :
5+
def download(repo, family, types):
66
for t in types :
77
name = family + t + '.ttf'
88
url = repo + name + '?raw=true'
99
print(url)
1010
req = requests.get(url, allow_redirects=True)
11+
if req.status_code != 200:
12+
raise RuntimeError(f"""
13+
Download failed.
14+
Status code: {req.status_code}
15+
Message: {req.reason}
16+
"""
17+
)
1118
open(dirOut + name, 'wb').write(req.content)
1219

1320
download(
@@ -82,7 +89,7 @@ def download(repo, family, types) :
8289
)
8390

8491
download(
85-
'https://github.com/expo/google-fonts/blob/master/font-packages/gravitas-one/',
92+
'https://github.com/expo/google-fonts/blob/main/font-packages/gravitas-one/400Regular/',
8693
'GravitasOne',
8794
[
8895
'_400Regular'

‎.github/dependabot.yml

Copy file name to clipboardExpand all lines: .github/dependabot.yml
-19Lines changed: 0 additions & 19 deletions
This file was deleted.

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ build/*
55
!build/README.md
66

77
dist/*.LICENSE.txt
8+
dist/*.css
89

910
npm-debug.log*
1011
*.sublime*
1112
*~
1213
tags
1314

1415
.*
15-
!.github
1616
!.circleci
1717
!.gitignore
1818
!.npmignore

‎CHANGELOG.md

Copy file name to clipboardExpand all lines: CHANGELOG.md
+134-3Lines changed: 134 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,137 @@ 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.0.1] -- 2025-02-18
13+
14+
### Changed
15+
- Update `color-rgba` from 2.1.1 to 3.0.0 to fix hsl color conversion bug [[#7325](https://github.com/plotly/plotly.js/pull/7325)]
16+
17+
### Fixed
18+
- Fix click event handling for plots in shadow DOM elements [[#7357](https://github.com/plotly/plotly.js/pull/7357)]
19+
- Fix hoverlabels and other text labels with null values templated in [[#7360](https://github.com/plotly/plotly.js/pull/7360)]
20+
- Fix importing plotly.js via require on pages with [AMD](https://en.wikipedia.org/wiki/Asynchronous_module_definition) [[#7367](https://github.com/plotly/plotly.js/pull/7367)]
21+
- Update Romanian locale [[#7351](https://github.com/plotly/plotly.js/pull/7351)]
22+
- Update Italian locale [[#4425](https://github.com/plotly/plotly.js/pull/4425)]
23+
- Update Turkish locale [[#7352](https://github.com/plotly/plotly.js/pull/7352)]
24+
25+
## [3.0.0] -- 2025-01-27
26+
27+
### Removed
28+
- Drop support for passing a string to the `title` attribute, and drop support for deprecated attributes `titlefont`, `titleposition`, `titleside`, and `titleoffset` (use `title.text`, `title.font`, `title.side`, `title.offset` instead)[[#7212](https://github.com/plotly/plotly.js/pull/7212)]
29+
- Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [[#7213](https://github.com/plotly/plotly.js/pull/7213)]
30+
Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#7214](https://github.com/plotly/plotly.js/pull/7214)]
31+
- Drop support for deprecated `annotation.ref` attribute (use `annotation.xref` and `annotation.yref` instead) [[#7215](https://github.com/plotly/plotly.js/pull/7215)]
32+
- Drop support for deprecated error bar `opacity` attribute (use alpha channel of error bar `color` attribute instead) [[#7214](https://github.com/plotly/plotly.js/pull/7216)]
33+
- Drop support for deprecated attribute `gl3d.cameraposition` (use `gl3d.camera` instead) [[#7217](https://github.com/plotly/plotly.js/pull/7217)]
34+
- Drop deprecated `plot3dPixelRatio` from config [[#7231](https://github.com/plotly/plotly.js/pull/7231)]
35+
- Drop deprecated `zauto`, `zmin` and `zmax` from the surface trace [[#7234](https://github.com/plotly/plotly.js/pull/7234)]
36+
- Drop deprecated `autotick` attributes from cartesian axes [[#7236](https://github.com/plotly/plotly.js/pull/7236)]
37+
- Drop `transforms` from the API [[#7240](https://github.com/plotly/plotly.js/pull/7240), [#7254](https://github.com/plotly/plotly.js/pull/7254)]
38+
- Drop jQuery events support [[#7224](https://github.com/plotly/plotly.js/pull/7224)]
39+
- Drop the AMD support from the bundle header [[#7229](https://github.com/plotly/plotly.js/pull/7229)]
40+
41+
### Changed
42+
- Switch from webpack to esbuild for fast builds & testing as well as allowing modern JavaScript beyond es5 [[#6909](https://github.com/plotly/plotly.js/pull/6909)]
43+
- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [[#7009](https://github.com/plotly/plotly.js/pull/7009)]
44+
- Node v18 required for development [[#7116](https://github.com/plotly/plotly.js/pull/7124)]
45+
- Cleanup remaining code that was there to support the Internet Explorer [[#7251](https://github.com/plotly/plotly.js/pull/7251)]
46+
- Deprecate mapbox traces and provide links to migration docs for plotly.js and plotly.py users [[#7260](https://github.com/plotly/plotly.js/pull/7260)]
47+
48+
### Fixed
49+
- Remove inline styles that break plots in strict CSP setups [[#7109](https://github.com/plotly/plotly.js/pull/7109)],
50+
with thanks to @martian111 for the contribution!
51+
- Allow null or broken selection objects without throwing an error [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
52+
- Render scatterternary traces correctly if they have the `ids` attribute [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
53+
- Do not convert url-sourced layout images to data URI unless we're in staticPlot mode, to improve interactivity when images are changed with zoom/pan [[#7199](https://github.com/plotly/plotly.js/pull/7199)]
54+
- Fix source map of the mablibre dependency [[#7204](https://github.com/plotly/plotly.js/pull/7204)]
55+
- Fix years in license [[#7205](https://github.com/plotly/plotly.js/pull/7205)]
56+
- Maintain layout images element identity based on coordinates,
57+
for smoother updates when you add or remove images early in the list. [[#7277](https://github.com/plotly/plotly.js/pull/7277)]
58+
- Fix handling of new domain values given in the Plotly.react function to
59+
prevent loss of new domain values. [[#7283](https://github.com/plotly/plotly.js/pull/7283)]
60+
- Fix distortions in sankey diagram links loops [[#7272](https://github.com/plotly/plotly.js/pull/7272)],
61+
with thanks to @giuseppe-straziota for the contribution!
62+
- Performance improvement for scattergl traces with many points [[#7301](https://github.com/plotly/plotly.js/pull/7301)],
63+
with thanks to @giuseppe-straziota for the contribution!
64+
- Set height and width on the `.plotly-container` div to 100% to fix gl3d rendering in Dash Enterprise apps [[#7313](https://github.com/plotly/plotly.js/pull/7313)]
65+
66+
67+
## [2.35.3] -- 2024-12-13
68+
69+
### Fixed
70+
- Set height and width on the `.plotly-container` div to 100% to fix gl3d rendering in Dash Enterprise apps [[#7313](https://github.com/plotly/plotly.js/pull/7313)]
71+
72+
73+
## [3.0.0-rc.1] -- 2024-11-27
74+
75+
### Removed
76+
- Drop support for passing a string to the `title` attribute, and drop support for deprecated attributes `titlefont`, `titleposition`, `titleside`, and `titleoffset` (use `title.text`, `title.font`, `title.side`, `title.offset` instead)[[#7212](https://github.com/plotly/plotly.js/pull/7212)]
77+
- Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [[#7213](https://github.com/plotly/plotly.js/pull/7213)]
78+
Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#7214](https://github.com/plotly/plotly.js/pull/7214)]
79+
- Drop support for deprecated `annotation.ref` attribute (use `annotation.xref` and `annotation.yref` instead) [[#7215](https://github.com/plotly/plotly.js/pull/7215)]
80+
- Drop support for deprecated error bar `opacity` attribute (use alpha channel of error bar `color` attribute instead) [[#7214](https://github.com/plotly/plotly.js/pull/7216)]
81+
- Drop support for deprecated attribute `gl3d.cameraposition` (use `gl3d.camera` instead) [[#7217](https://github.com/plotly/plotly.js/pull/7217)]
82+
- Drop deprecated `plot3dPixelRatio` from config [[#7231](https://github.com/plotly/plotly.js/pull/7231)]
83+
- Drop deprecated `zauto`, `zmin` and `zmax` from the surface trace [[#7234](https://github.com/plotly/plotly.js/pull/7234)]
84+
- Drop deprecated `autotick` attributes from cartesian axes [[#7236](https://github.com/plotly/plotly.js/pull/7236)]
85+
- Drop `transforms` from the API [[#7240](https://github.com/plotly/plotly.js/pull/7240), [#7254](https://github.com/plotly/plotly.js/pull/7254)]
86+
- Drop jQuery events support [[#7224](https://github.com/plotly/plotly.js/pull/7224)]
87+
- Drop the AMD support from the bundle header [[#7229](https://github.com/plotly/plotly.js/pull/7229)]
88+
89+
### Changed
90+
- Switch from webpack to esbuild for fast builds & testing as well as allowing modern JavaScript beyond es5 [[#6909](https://github.com/plotly/plotly.js/pull/6909)]
91+
- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [[#7009](https://github.com/plotly/plotly.js/pull/7009)]
92+
- Node v18 required for development [[#7116](https://github.com/plotly/plotly.js/pull/7124)]
93+
- Cleanup remaining code that was there to support the Internet Explorer [[#7251](https://github.com/plotly/plotly.js/pull/7251)]
94+
- Deprecate mapbox traces and provide links to migration docs for plotly.js and plotly.py users [[#7260](https://github.com/plotly/plotly.js/pull/7260)]
95+
96+
### Fixed
97+
- Remove inline styles that break plots in strict CSP setups [[#7109](https://github.com/plotly/plotly.js/pull/7109)],
98+
with thanks to @martian111 for the contribution!
99+
- Allow null or broken selection objects without throwing an error [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
100+
- Render scatterternary traces correctly if they have the `ids` attribute [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
101+
- Do not convert url-sourced layout images to data URI unless we're in staticPlot mode, to improve interactivity when images are changed with zoom/pan [[#7199](https://github.com/plotly/plotly.js/pull/7199)]
102+
- Fix source map of the mablibre dependency [[#7204](https://github.com/plotly/plotly.js/pull/7204)]
103+
- Fix years in license [[#7205](https://github.com/plotly/plotly.js/pull/7205)]
104+
- Maintain layout images element identity based on coordinates,
105+
for smoother updates when you add or remove images early in the list. [[#7277](https://github.com/plotly/plotly.js/pull/7277)]
106+
- Fix handling of new domain values given in the Plotly.react function to
107+
prevent loss of new domain values. [[#7283](https://github.com/plotly/plotly.js/pull/7283)]
108+
109+
110+
## [3.0.0-rc.0] -- 2024-11-11
111+
112+
### Removed
113+
- Drop support for passing a string to the `title` attribute, and drop support for deprecated attributes `titlefont`, `titleposition`, `titleside`, and `titleoffset` (use `title.text`, `title.font`, `title.side`, `title.offset` instead)[[#7212](https://github.com/plotly/plotly.js/pull/7212)]
114+
- Drop deprecated pointcloud and heatmapgl traces and gl2d subplots [[#7213](https://github.com/plotly/plotly.js/pull/7213)]
115+
Drop support for deprecated `bardir` attribute (use `orientation` instead) [[#7214](https://github.com/plotly/plotly.js/pull/7214)]
116+
- Drop support for deprecated `annotation.ref` attribute (use `annotation.xref` and `annotation.yref` instead) [[#7215](https://github.com/plotly/plotly.js/pull/7215)]
117+
- Drop support for deprecated error bar `opacity` attribute (use alpha channel of error bar `color` attribute instead) [[#7214](https://github.com/plotly/plotly.js/pull/7216)]
118+
- Drop support for deprecated attribute `gl3d.cameraposition` (use `gl3d.camera` instead) [[#7217](https://github.com/plotly/plotly.js/pull/7217)]
119+
- Drop deprecated `plot3dPixelRatio` from config [[#7231](https://github.com/plotly/plotly.js/pull/7231)]
120+
- Drop deprecated `zauto`, `zmin` and `zmax` from the surface trace [[#7234](https://github.com/plotly/plotly.js/pull/7234)]
121+
- Drop deprecated `autotick` attributes from cartesian axes [[#7236](https://github.com/plotly/plotly.js/pull/7236)]
122+
- Drop `transforms` from the API [[#7240](https://github.com/plotly/plotly.js/pull/7240), [#7254](https://github.com/plotly/plotly.js/pull/7254)]
123+
- Drop jQuery events support [[#7224](https://github.com/plotly/plotly.js/pull/7224)]
124+
- Drop the AMD support from the bundle header [[#7229](https://github.com/plotly/plotly.js/pull/7229)]
125+
126+
### Changed
127+
- Switch from webpack to esbuild for fast builds & testing as well as allowing modern JavaScript beyond es5 [[#6909](https://github.com/plotly/plotly.js/pull/6909)]
128+
- Make offsetgroup work with barmode "stacked" and "relative" for bar traces [[#7009](https://github.com/plotly/plotly.js/pull/7009)]
129+
- Node v18 required for development [[#7116](https://github.com/plotly/plotly.js/pull/7124)]
130+
- Cleanup remaining code that was there to support the Internet Explorer [[#7251](https://github.com/plotly/plotly.js/pull/7251)]
131+
- Deprecate mapbox traces and provide links to migration docs for plotly.js and plotly.py users [[#7260](https://github.com/plotly/plotly.js/pull/7260)]
132+
133+
### Fixed
134+
- Remove inline styles that break plots in strict CSP setups [[#7109](https://github.com/plotly/plotly.js/pull/7109)],
135+
with thanks to @martian111 for the contribution!
136+
- Allow null or broken selection objects without throwing an error [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
137+
- Render scatterternary traces correctly if they have the `ids` attribute [[#7164](https://github.com/plotly/plotly.js/pull/7164)]
138+
- Do not convert url-sourced layout images to data URI unless we're in staticPlot mode, to improve interactivity when images are changed with zoom/pan [[#7199](https://github.com/plotly/plotly.js/pull/7199)]
139+
- Fix source map of the mablibre dependency [[#7204](https://github.com/plotly/plotly.js/pull/7204)]
140+
- Fix years in license [[#7205](https://github.com/plotly/plotly.js/pull/7205)]
141+
142+
12143
## [2.35.2] -- 2024-09-10
13144

14145
### Fixed
@@ -521,7 +652,7 @@ where X.Y.Z is the semver of most recent plotly.js release.
521652
## [2.15.1] -- 2022-10-11
522653

523654
### Fixed
524-
- Fix latest version of plotly.js main module on npm
655+
- Fix latest version of plotly.js main module on npm
525656

526657

527658
## [2.15.0] -- 2022-10-06
@@ -540,9 +671,9 @@ where X.Y.Z is the semver of most recent plotly.js release.
540671
- Fix automargin to update axis titles in redraws [[#6312](https://github.com/plotly/plotly.js/pull/6312)]
541672
- Fix exporting patterns with transparent color [[#6318](https://github.com/plotly/plotly.js/pull/6318)]
542673
- Fix exporting text on empty slices [[#6335](https://github.com/plotly/plotly.js/pull/6335)]
543-
- Disable interactions for `treemap`, `icicle`, `sunburst`, `pie`, `funnelarea`,
674+
- Disable interactions for `treemap`, `icicle`, `sunburst`, `pie`, `funnelarea`,
544675
`parcats`, `parcoords` and `sankey` traces when `staticPlot` is set to true [[#6296](https://github.com/plotly/plotly.js/pull/6296)]
545-
676+
546677

547678
## [2.14.0] -- 2022-08-10
548679

‎CITATION.cff

Copy file name to clipboard
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cff-version: 1.2.0
2+
message: "If you use this software, please cite it as below."
3+
authors:
4+
- family-names: "Johnson"
5+
given-names: "Alex"
6+
orcid: https://orcid.org/0000-0003-4623-4147
7+
- family-names: "Tétreault-Pinard"
8+
given-names: "Étienne"
9+
- family-names: "Samimi"
10+
given-names: "Mojtaba"
11+
title: "Open source Plotly charting library"
12+
version: 3.0.1
13+
doi: 10.5281/zenodo.13964707
14+
date-released: 2025-01-27
15+
url: "https://github.com/plotly/plotly.js"

‎CONTRIBUTING.md

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ This will produce the following plot, and say you want to simulate a selection p
340340

341341
The trace modules (found in [`src/traces`](https://github.com/plotly/plotly.js/tree/master/src/traces))
342342
are defined as plain objects with functions and constants attached to them in an index file
343-
(e.g. `src/traces/scatter/index.js`). The trace modules are "registered" undo the `Registry` object
343+
(e.g. `src/traces/scatter/index.js`). The trace modules are "registered" under the `Registry` object
344344
(found in [`src/registry.js`](https://github.com/plotly/plotly.js/blob/master/src/registry.js)) using
345345
`Plotly.register` (as done in the index files in `dist/`).
346346

‎CUSTOM_BUNDLE.md

Copy file name to clipboardExpand all lines: CUSTOM_BUNDLE.md
+4-15Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Custom bundle
2-
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces and transforms.
2+
You can simply make custom bundles yourself, if none of the [distributed packages](https://github.com/plotly/plotly.js/blob/master/dist/README.md) meet your needs, or you want to make a more optimized bundle file with/without specific traces.
33

44
Make sure you have the versions of node/npm that's recommended:
55
- plotly.js before 2.5: Node 12/npm 6
@@ -27,7 +27,7 @@ cd plotly.js
2727
npm i
2828
```
2929

30-
By default all traces and transforms are included in the bundle if you simply run:
30+
By default all traces are included in the bundle if you simply run:
3131
```sh
3232
npm run custom-bundle
3333
```
@@ -39,16 +39,6 @@ npm run custom-bundle -- --traces scatter,scattergl,scatter3d
3939
Please note that the `scatter` trace is currently included in all bundles and cannot be removed.
4040
[This behaviour may change in the future](https://github.com/plotly/plotly.js/pull/5535), so we recommend that you explicitly include `scatter` anyway if you need it in your bundle.
4141

42-
Use the `transforms` option to specify which should be included.
43-
```sh
44-
npm run custom-bundle -- --transforms sort,filter
45-
```
46-
47-
Or use `transforms none` to exclude them all.
48-
```sh
49-
npm run custom-bundle -- --transforms none
50-
```
51-
5242
Use the `strict` option to use strict trace types where possible.
5343
```sh
5444
npm run custom-bundle -- --traces scatter,scattergl --strict
@@ -66,15 +56,14 @@ npm run custom-bundle -- --unminified
6656
```
6757

6858
# Example illustrating use of different options together
69-
To create an unminified custom bundle named `myScatters` including `scatter`, `scattergl` and `scatter3d` traces without any transforms:
59+
To create an unminified custom bundle named `myScatters` including `scatter`, `scattergl` and `scatter3d` traces:
7060
```sh
7161
npm run custom-bundle -- \
7262
--unminified \
7363
--out myScatters \
7464
--traces scatter,scattergl,scatter3d \
75-
--transforms none
7665
```
7766
Or simply on one line:
7867
```sh
79-
npm run custom-bundle -- --unminified --out myScatters --traces scatter,scattergl,scatter3d --transforms none
68+
npm run custom-bundle -- --unminified --out myScatters --traces scatter,scattergl,scatter3d
8069
```

‎LICENSE

Copy file name to clipboardExpand all lines: LICENSE
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2021 Plotly, Inc
3+
Copyright (c) 2016-2024 Plotly Technologies Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.