Skip to content

Commit

Permalink
Merge branch 'plotly:master' into issue-3973-overlap-hover
Browse files Browse the repository at this point in the history
  • Loading branch information
dagroe authored Feb 24, 2023
2 parents fbf8af8 + 1625db4 commit c925d9d
Show file tree
Hide file tree
Showing 274 changed files with 5,496 additions and 5,036 deletions.
13 changes: 8 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
working_directory: ~/plotly.js
steps:
- browser-tools/install-browser-tools: &browser-versions
chrome-version: 93.0.4577.63
chrome-version: 110.0.5481.100
install-firefox: false
install-geckodriver: false
- attach_workspace:
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
working_directory: ~/plotly.js
steps:
- browser-tools/install-browser-tools: &browser-versions
chrome-version: 93.0.4577.63
chrome-version: 110.0.5481.100
install-firefox: false
install-geckodriver: false
- attach_workspace:
Expand All @@ -113,7 +113,7 @@ jobs:
working_directory: ~/plotly.js
steps:
- browser-tools/install-browser-tools: &browser-versions
chrome-version: 93.0.4577.63
chrome-version: 110.0.5481.100
install-firefox: false
install-geckodriver: false
- attach_workspace:
Expand All @@ -132,7 +132,7 @@ jobs:
working_directory: ~/plotly.js
steps:
- browser-tools/install-browser-tools: &browser-versions
chrome-version: 93.0.4577.63
chrome-version: 110.0.5481.100
install-firefox: false
install-geckodriver: false
- attach_workspace:
Expand All @@ -151,7 +151,7 @@ jobs:
working_directory: ~/plotly.js
steps:
- browser-tools/install-browser-tools: &browser-versions
chrome-version: 93.0.4577.63
chrome-version: 110.0.5481.100
install-firefox: false
install-geckodriver: false
- attach_workspace:
Expand Down Expand Up @@ -400,6 +400,9 @@ jobs:
- run:
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")
command: diff --unified --color dist/plot-schema.json test/plot-schema.json
- run:
name: Test plotly.min.js import using amdefine
command: npm run test-amdefine
- run:
name: Test plotly.min.js import using requirejs
command: npm run test-requirejs
Expand Down
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ node_modules
dist
build

tasks/test_amdefine.js
tasks/test_requirejs.js
test/jasmine/assets/jquery-1.8.3.min.js
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,39 @@ To see all merged commits on the master branch that will be part of the next plo

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

## [2.18.2] -- 2023-02-15

### Fixed
- Avoid attaching internal d3 object to the window (regression introduced in 2.17.0) [#6487](https://github.com/plotly/plotly.js/pull/6487)
- Correct the order of lower fence and upper fence in the French locale (fr) [[#6476](https://github.com/plotly/plotly.js/pull/6476)],
with thanks to @Gagaro for the contribution!
- Correct formats in the Peruvian locale (es-pe) [[#6451](https://github.com/plotly/plotly.js/pull/6451)],
with thanks to @andresrcs for the contribution!


## [2.18.1] -- 2023-02-02

### Changed
- Bump `d3-interpolate` and `d3-color` to v3 to address audit warnings [[#6463](https://github.com/plotly/plotly.js/pull/6463)]

### Fixed
- Fix scaling of exports e.g. the SVG format by not adding `vector-effect` CSS to static plots [[#6445](https://github.com/plotly/plotly.js/pull/6445)]
- Fix hover on IE (regression introduced in 2.5.0) [[#6466](https://github.com/plotly/plotly.js/pull/6466)]


## [2.18.0] -- 2023-01-19

### Added
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)],
with thanks to @filipesantiagoAM and @VictorBezak for the contribution!

### Changed
- Improve detection of mobile & tablet devices for WebGL rendering by upgrading `is-mobile` [[#6432](https://github.com/plotly/plotly.js/pull/6432)]

### Fixed
- Fix library's imported name using `requirejs` AMD loader (regression introduced in 2.17.0) [[#6440](https://github.com/plotly/plotly.js/pull/6440)]


## [2.17.1] -- 2023-01-09

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
```html
<head>
<script src="https://cdn.plot.ly/plotly-2.17.1.min.js"></script>
<script src="https://cdn.plot.ly/plotly-2.18.2.min.js" charset="utf-8"></script>
</head>
<body>
<div id="gd"></div>
Expand All @@ -72,7 +72,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
```html
<script type="module">
import "https://cdn.plot.ly/plotly-2.17.1.min.js"
import "https://cdn.plot.ly/plotly-2.18.2.min.js"
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
</script>
```
Expand All @@ -82,7 +82,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
### Un-minified versions are also available on CDN
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
```html
<script src="https://cdn.plot.ly/plotly-2.17.1.js" charset="utf-8"></script>
<script src="https://cdn.plot.ly/plotly-2.18.2.js" charset="utf-8"></script>
```

> 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.
Expand Down
3 changes: 1 addition & 2 deletions devtools/test_dashboard/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ devtoolsConfig.output = {
filename: 'test_dashboard-bundle.js',
library: {
name: 'Tabs',
type: 'umd',
umdNamedDefine: true
type: 'umd'
}
};

Expand Down
50 changes: 25 additions & 25 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.17.1.js
> https://cdn.plot.ly/plotly-2.18.2.js
> https://cdn.plot.ly/plotly-2.17.1.min.js
> https://cdn.plot.ly/plotly-2.18.2.min.js

#### npm packages
Expand Down Expand Up @@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.5 MB | 952.9 kB | 318.4 kB |
| 2.5 MB | 953.4 kB | 318.7 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.17.1.js
> https://cdn.plot.ly/plotly-basic-2.18.2.js
> https://cdn.plot.ly/plotly-basic-2.17.1.min.js
> https://cdn.plot.ly/plotly-basic-2.18.2.min.js

#### npm packages
Expand All @@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.2 MB | 1.2 MB | 404.6 kB |
| 3.2 MB | 1.2 MB | 404.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.17.1.js
> https://cdn.plot.ly/plotly-cartesian-2.18.2.js
> https://cdn.plot.ly/plotly-cartesian-2.17.1.min.js
> https://cdn.plot.ly/plotly-cartesian-2.18.2.min.js

#### npm packages
Expand All @@ -137,12 +137,12 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.1 MB | 1.1 MB | 362.4 kB |
| 3.1 MB | 1.1 MB | 362.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.17.1.js
> https://cdn.plot.ly/plotly-geo-2.18.2.js
> https://cdn.plot.ly/plotly-geo-2.17.1.min.js
> https://cdn.plot.ly/plotly-geo-2.18.2.min.js

#### npm packages
Expand All @@ -160,12 +160,12 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.5 MB | 1.5 MB | 482.7 kB |
| 3.5 MB | 1.5 MB | 482.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.17.1.js
> https://cdn.plot.ly/plotly-gl3d-2.18.2.js
> https://cdn.plot.ly/plotly-gl3d-2.17.1.min.js
> https://cdn.plot.ly/plotly-gl3d-2.18.2.min.js

#### npm packages
Expand All @@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.3 MB | 1.8 MB | 589.6 kB |
| 4.3 MB | 1.8 MB | 589.8 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.17.1.js
> https://cdn.plot.ly/plotly-gl2d-2.18.2.js
> https://cdn.plot.ly/plotly-gl2d-2.17.1.min.js
> https://cdn.plot.ly/plotly-gl2d-2.18.2.min.js

#### npm packages
Expand All @@ -206,12 +206,12 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.3 MB | 1.7 MB | 519.2 kB |
| 4.3 MB | 1.7 MB | 519.5 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.17.1.js
> https://cdn.plot.ly/plotly-mapbox-2.18.2.js
> https://cdn.plot.ly/plotly-mapbox-2.17.1.min.js
> https://cdn.plot.ly/plotly-mapbox-2.18.2.min.js

#### npm packages
Expand All @@ -229,12 +229,12 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 1 MB | 346.8 kB |
| 2.8 MB | 1 MB | 347.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.17.1.js
> https://cdn.plot.ly/plotly-finance-2.18.2.js
> https://cdn.plot.ly/plotly-finance-2.17.1.min.js
> https://cdn.plot.ly/plotly-finance-2.18.2.min.js

#### npm packages
Expand All @@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
| 8.5 MB | 3.7 MB | 1.1 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.17.1.js
> https://cdn.plot.ly/plotly-strict-2.18.2.js
> https://cdn.plot.ly/plotly-strict-2.17.1.min.js
> https://cdn.plot.ly/plotly-strict-2.18.2.min.js

#### npm packages
Expand Down
10 changes: 6 additions & 4 deletions dist/plot-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11005,14 +11005,15 @@
"valType": "number"
},
"tickmode": {
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
"editType": "ticks",
"impliedEdits": {},
"valType": "enumerated",
"values": [
"auto",
"linear",
"array"
"array",
"sync"
]
},
"tickprefix": {
Expand Down Expand Up @@ -12013,14 +12014,15 @@
"valType": "number"
},
"tickmode": {
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided).",
"description": "Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property.",
"editType": "ticks",
"impliedEdits": {},
"valType": "enumerated",
"values": [
"auto",
"linear",
"array"
"array",
"sync"
]
},
"tickprefix": {
Expand Down
Loading

0 comments on commit c925d9d

Please sign in to comment.