Skip to content

Commit d7e73d7

Browse files
committed
plotly.js 2.11 and changelog for MathJax work
1 parent 4faf64d commit d7e73d7

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,26 @@ This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## [Unreleased]
66

7+
### Added
8+
- [#1949](https://github.com/plotly/dash/pull/1915) Add built-in MathJax support to both `dcc.Markdown` and `dcc.Graph`. A new boolean prop `mathjax` was added to these two components, defaulting to `False`. Set `mathjax=True` to enable math rendering. This work uses MathJax v3, although `dcc.Graph` and Plotly.js can also be used with MathJax v2.
9+
- In `dcc.Markdown` this has two flavors: inline math is any content between single dollar signs, for example `"$E=mc^2$"`, and "display" math (on its own line, potentially multi-line) is delimited by double dollar signs.
10+
- In `dcc.Graph`, most text fields (graph and axis titles, trace names, scatter and bar text) can use math, and it's enabled with single dollar sign delimiters. A limitation here is that currently a given piece of text can only be one or the other: if math is found, everything outside the delimiters is ignored. See https://plotly.com/python/LaTeX/ for details.
11+
- For an intro to LaTeX math, see https://en.wikibooks.org/wiki/LaTeX/Mathematics.
12+
- Big thanks to [Equinor](https://www.equinor.com/) for sponsoring this development, including the related work in Plotly.js!
13+
14+
### Updated
15+
- [#1949](https://github.com/plotly/dash/pull/1915) Upgrade Plotly.js to v2.11.0 (from v2.9.0)
16+
- [Feature release 2.10.0](https://github.com/plotly/plotly.js/releases/tag/v2.10.0):
17+
- Support for MathJax v3
18+
- `fillpattern` for `scatter` traces with filled area
19+
- [Feature release 2.11.0](https://github.com/plotly/plotly.js/releases/tag/v2.11.0):
20+
- Every trace type can now be rendered in a stricter CSP environment, specifically avoiding `unsafe-eval`. Please note: the `regl`-based traces (`scattergl`, `scatterpolargl`, `parcoords`, and `splom`) are only strict in the `strict` bundle, which is NOT served by default in Dash. To use this bundle with Dash, you must either download it and put it in your `assets/` folder, or include it as an `external_script` from the CDN: https://cdn.plot.ly/plotly-strict-2.11.0.min.js. All other trace types are strict in the normal bundle.
21+
- Patch release [2.10.1](https://github.com/plotly/plotly.js/releases/tag/v2.5.1) containing a bugfix for `mesh3d` traces.
22+
23+
724
### Fixed
825
- [#1915](https://github.com/plotly/dash/pull/1915) Fix bug [#1474](https://github.com/plotly/dash/issues/1474) when both dcc.Graph and go.Figure have animation, and when the second animation in Figure is executed, the Frames from the first animation are played instead of the second one.
926

10-
### Fixed
1127
- [#1953](https://github.com/plotly/dash/pull/1953) Fix bug [#1783](https://github.com/plotly/dash/issues/1783) in which a failed hot reloader blocks the UI with alerts.
1228

1329
## [2.2.0] - 2022-02-18

components/dash-core-components/package-lock.json

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

components/dash-core-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"mathjax": "^3.2.0",
5050
"moment": "^2.29.1",
5151
"node-polyfill-webpack-plugin": "^1.1.4",
52-
"plotly.js-dist-min": "2.10.1",
52+
"plotly.js-dist-min": "2.11.0",
5353
"prop-types": "^15.7.2",
5454
"ramda": "^0.27.1",
5555
"rc-slider": "^9.7.5",

0 commit comments

Comments
 (0)