Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
be6d4df
Init - basic working implementation
kb- May 18, 2024
55c1b31
Implemented style and template handling
kb- May 19, 2024
0e0591e
Added Dash and Python demo
kb- May 19, 2024
fcd8457
Update index.html
kb- May 19, 2024
d69ac85
Update README.md
kb- May 19, 2024
dcb5eec
Update README.md
kb- May 19, 2024
a617412
Added schema and cleanup
kb- May 19, 2024
4eb2801
Made linter happy
kb- May 19, 2024
47f4925
Update README.md
kb- May 19, 2024
4744a1f
locales
kb- May 20, 2024
723276c
Merge branch 'dev-tooltip' of plotly.js:kb-/plotly.js into dev-tooltip
kb- May 20, 2024
11e47c6
Demo
kb- May 20, 2024
653e666
Update various.html
kb- May 20, 2024
2babc9b
Update various.html
kb- May 20, 2024
c84007b
Handle log axis
kb- May 20, 2024
421546e
Update various.html
kb- May 20, 2024
24586ad
Handle log axis
kb- May 20, 2024
df56bf1
Check parameters availability
kb- May 20, 2024
ca55621
Merge branch 'dev-tooltip' of plotly.js:kb-/plotly.js into dev-tooltip
kb- May 20, 2024
8196cd7
Merged src/components/modebar/buttons.js from dev-tooltip-all into de…
kb- May 22, 2024
bade5e8
Merge branch 'master'
kb- Jul 18, 2024
6fd5b10
build
kb- Jul 18, 2024
c422552
Added test mocks
kb- Jul 19, 2024
f3cbc0f
untrack dist
kb- Jul 19, 2024
643479f
Added Jasmine test
kb- Jul 24, 2024
bb296e9
linter fix
kb- Jul 26, 2024
914d88a
Merge branch 'master' into dev-tooltip
kb- Jul 28, 2024
c0ac3ed
cleanup
kb- Jul 28, 2024
5997181
Add histogram2d test mock
kb- Jul 28, 2024
ce61edc
fixed 0 value handling
kb- Jul 28, 2024
d5bfcf1
fixed multi curve histogram handling
kb- Jul 28, 2024
34c5d4a
Handle subplots
kb- Jul 28, 2024
3461a50
make default number format consistent with hover
kb- Jul 28, 2024
0e09adf
Add z to heatmap tooltip default template
kb- Jul 28, 2024
297f208
Fixed subplot handling
kb- Jul 29, 2024
b06d9e7
Fixed test
kb- Jul 29, 2024
9f1d071
generate histogram test click
kb- Aug 2, 2024
baf2d38
Change to assets click function
kb- Aug 3, 2024
96538aa
Added test on log axis plot
kb- Aug 3, 2024
2e94cf7
fixed timing
kb- Aug 3, 2024
4b87290
Test preventing second tooltip on same data point
kb- Aug 3, 2024
0edf63d
Generic default template based on data availability
kb- Aug 3, 2024
6464184
Complete attributes
kb- Aug 4, 2024
de95245
Handle multycategory
kb- Aug 7, 2024
b41160f
Merge branch 'master' into dev-tooltip
kb- Aug 10, 2024
46548c6
fix subplot handling
kb- Aug 21, 2024
0a31a8b
Added default template for category axis
kb- Aug 21, 2024
fc509f7
More test image mocks
kb- Aug 22, 2024
ffd6340
Add violin side to side handling
kb- Aug 22, 2024
022c960
Merge branch 'master' into dev-tooltip
kb- Aug 22, 2024
c1804af
Fixed test click point
kb- Aug 22, 2024
25bc3ac
handle missing axis info
kb- Aug 22, 2024
1cd0960
Added tooltip to hasGL2D
kb- Aug 22, 2024
b042ddf
Added gl2d mocks
kb- Aug 22, 2024
6fa84ce
Schema update
kb- Aug 22, 2024
0fd21bc
Blacklist mock files derived from existing blacklisted files
kb- Aug 22, 2024
5930d29
test_syntax
kb- Aug 24, 2024
28cf945
Merge branch 'master' into dev-tooltip
kb- Aug 24, 2024
273e22c
fixed attributes - plotschema pass
kb- Aug 24, 2024
645c7f6
removed circular reference
kb- Aug 26, 2024
f0d24eb
add baselines (no tooltip displayed)
kb- Aug 26, 2024
a64af96
draftlog
kb- Aug 26, 2024
79c4388
test-mock pass
kb- Aug 26, 2024
13b74a1
Implement heatmap attribute - default tooltiptemplate
kb- Aug 28, 2024
34f8f11
schema
kb- Aug 28, 2024
78a7a2a
Create tooltip_template_heatmap.png
kb- Oct 11, 2024
40607a8
Merge branch 'master' into dev-tooltip
kb- Oct 12, 2024
c04ae71
fixed heatmat attributes
kb- Oct 12, 2024
b139c07
fixed scatter attributes
kb- Oct 12, 2024
bc6652e
fixed bar attributes
kb- Oct 12, 2024
7bac76a
fixed bar attributes
kb- Oct 12, 2024
3416d50
fixed box defaults
kb- Oct 12, 2024
f65a4db
fixed funnel defaults
kb- Oct 12, 2024
b0e7fa3
fixed candlestick attributes
kb- Oct 12, 2024
4fed40e
fixed heatmapgl defaults
kb- Oct 12, 2024
2c1d70d
fixed scattergl defaults
kb- Oct 12, 2024
735082a
fixed histogram attributes
kb- Oct 12, 2024
5884f4f
fixed histogram2d attributes
kb- Oct 12, 2024
d727a1c
fixed histogram2dcontour attributes
kb- Oct 12, 2024
4e74db1
fixed ohlc attributes (bug on master)
kb- Oct 12, 2024
95625a1
fixed pointcloud defaults (bug on master)
kb- Oct 12, 2024
0ac20bd
fixed scattercarpet attributes
kb- Oct 12, 2024
373ff66
fixed contour defaults
kb- Oct 12, 2024
54b73ee
fixed splom attributes
kb- Oct 12, 2024
8eb01bd
fixed violin defaults
kb- Oct 12, 2024
8d4acac
fixed waterfall attributes
kb- Oct 12, 2024
43db9b3
fixed attributes
kb- Oct 13, 2024
5361195
Merge branch 'master' into dev-tooltip
kb- Oct 13, 2024
3d0f76a
schema
kb- Oct 13, 2024
baf913e
removed ohlc tests (ohlc_first from master fails too)
kb- Oct 13, 2024
227b0be
baselines
kb- Oct 13, 2024
2720fb8
removed obsolete plot types tests
kb- Oct 13, 2024
ce08efb
removed candlestick test (candlestick from master fails too)
kb- Oct 13, 2024
655ba2d
removed obsolete plot types test
kb- Oct 13, 2024
6b04964
removed dflt (was not compatible with category)
kb- Oct 13, 2024
f8ca024
fixed scattercarpet attributes
kb- Oct 13, 2024
00cc9e7
fixed heatmap dflt (was not compatible with category)
kb- Oct 13, 2024
1ba450e
fixed bar arrow placement for shared categories
kb- Oct 13, 2024
b538574
schema
kb- Oct 13, 2024
3d5103d
fixed jasmine test
kb- Oct 13, 2024
73e8c55
baseline
kb- Oct 13, 2024
c817480
moved ohlc template to attributes
kb- Oct 13, 2024
dc026cc
fixed candlestick attributes
kb- Oct 13, 2024
298af7d
mocks
kb- Oct 13, 2024
25efa5f
fixed waterfall arrow placement
kb- Oct 13, 2024
8c7ac8e
schema
kb- Oct 13, 2024
6524182
Delete notes.txt
kb- Nov 4, 2024
a5e2668
Resolved merge conflict
kb- Nov 4, 2024
550cf0b
schema
kb- Nov 4, 2024
33e1005
Handle stacked traces
kb- Nov 16, 2024
6f9904e
baselines
kb- Nov 17, 2024
317a430
removed mock
kb- Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master'
  • Loading branch information
kb- committed Jul 18, 2024
commit bade5e8a88d48ae557ec4b7a1acd1a92974f61c8
2 changes: 1 addition & 1 deletion .circleci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ case $1 in
;;

make-baselines-mathjax3)
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax || EXIT_STATE=$?
python3 test/image/make_baseline.py mathjax3 legend_mathjax_title_and_items mathjax parcats_grid_subplots table_latex_multitrace_scatter table_plain_birds table_wrapped_birds ternary-mathjax ternary-mathjax-title-place-subtitle || EXIT_STATE=$?
exit $EXIT_STATE
;;

Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,51 @@ 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.34.0] -- 2024-07-18

### Added
- Add `subtitle` attribute to `layout.title` to enable adding subtitles to plots [[#7012](https://github.com/plotly/plotly.js/pull/7012)]
- Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [[#7043](https://github.com/plotly/plotly.js/pull/7043)]
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to `category_order` on cartesian axes [[#6223](https://github.com/plotly/plotly.js/pull/6223)],
with thanks to @acxz and @prabhathc for the contribution!
- Add axis property `ticklabelindex` for drawing the label for each minor tick n positions away from a major tick,
with thanks to @my-tien for the contribution! [[#7036](https://github.com/plotly/plotly.js/pull/7036)]
- Add property `ticklabelstandoff` and `ticklabelshift` to cartesian axes to adjust positioning of tick labels,
with thanks to @my-tien for the contribution! [[#7006](https://github.com/plotly/plotly.js/pull/7006)]
- Add `x0shift`, `x1shift`, `y0shift`, `y1shift` to shapes to add control over positioning of shape vertices on (multi-)category axes,
with thanks to @my-tien for the contribution! [[#7005](https://github.com/plotly/plotly.js/pull/7005)]

### Fixed
- Fix displaying scattergl traces while zooming or panning (regression introduced in 2.26.0) [[#7018](https://github.com/plotly/plotly.js/pull/7018)],
with thanks to @eiriklv for the contribution!
- Fix for excessive hoverlabel removal and overlap for plots with both scatter and bar traces [[#6954](https://github.com/plotly/plotly.js/pull/6954)],
with thanks to @mbant for the contribution!
- Fix adding cartesian "togglehover" when included in `modebar.add` [[#5879](https://github.com/plotly/plotly.js/pull/5879)],
with thanks to @Sizurka for the contribution!
- Handle `zorder` between overlaying cartesian subplots [[#7032](https://github.com/plotly/plotly.js/pull/7032)],
This feature was anonymously sponsored: thank you to our sponsor!


## [2.33.0] -- 2024-05-29

### Added
- Add support for numeric text font `weight` [[#6990](https://github.com/plotly/plotly.js/pull/6990)]
- Add `shadow`, `lineposition` and `textcase` options to SVG fonts [[#6983](https://github.com/plotly/plotly.js/pull/6983)]

### Fixed
- Fix unicode variable names in @plotly/d3 [[#6992](https://github.com/plotly/plotly.js/pull/6992)],
with thanks to @GeorchW for the contribution!
- Fix `getFullTransformMatrix` in shadow DOM [[#6996](https://github.com/plotly/plotly.js/pull/6996)],
with thanks to @OpportunityLiu for the contribution!
- Fix drag on legend scrollbar while `edits.legendPosition` is `true` [[#6997](https://github.com/plotly/plotly.js/pull/6997)],
with thanks to @OpportunityLiu for the contribution!
- Fix numerical instability in 3D plots [[6998](https://github.com/plotly/plotly.js/pull/6998)],
with thanks to @hborchardt for the contribution!
- Fix numerical precision of drawing surface trace [[6999](https://github.com/plotly/plotly.js/pull/6999)],
with thanks to @hborchardt for the contribution!
- Fix isosurface maximum value calculation when `isomax` is set to null [[#7002](https://github.com/plotly/plotly.js/pull/7002)]


## [2.32.0] -- 2024-04-23

### Added
Expand Down
271 changes: 271 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
# Using distributed files

All plotly.js bundles inject an object `Plotly` into the global scope.

Import plotly.js as:

```html
<script src="plotly.min.js"></script>
```

or the un-minified version as:

```html
<script src="plotly.js" charset="utf-8"></script>
```

### To include localization

Plotly.js defaults to US English (en-US) and includes British English (en) in the standard bundle.
Many other localizations are available - here is an example using Swiss-German (de-CH),
see the contents of this directory for the full list.
Note that the file names are all lowercase, even though the region is uppercase when you apply a locale.

*After* the plotly.js script tag, add:

```html
<script src="plotly-locale-de-ch.js"></script>
<script>Plotly.setPlotConfig({locale: 'de-CH'})</script>
```

The first line loads and registers the locale definition with plotly.js, the second sets it as the default for all Plotly plots.
You can also include multiple locale definitions and apply them to each plot separately as a `config` parameter:

```js
Plotly.newPlot(graphDiv, data, layout, {locale: 'de-CH'})
```

# Bundle information

The main plotly.js bundle includes all trace modules.

The main plotly.js bundles weight in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 8.3 MB | 3.5 MB | 1 MB | 8.6 MB |

#### CDN links
> https://cdn.plot.ly/plotly-2.34.0.js

> https://cdn.plot.ly/plotly-2.34.0.min.js


#### npm packages
> [plotly.js](https://www.npmjs.com/package/plotly.js)

> [plotly.js-dist](https://www.npmjs.com/package/plotly.js-dist)

> [plotly.js-dist-min](https://www.npmjs.com/package/plotly.js-dist-min)

#### Meta information
> If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plotly.com/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
---

## Partial bundles

plotly.js also ships with several _partial_ bundles:

- [basic](#plotlyjs-basic)
- [cartesian](#plotlyjs-cartesian)
- [geo](#plotlyjs-geo)
- [gl3d](#plotlyjs-gl3d)
- [gl2d](#plotlyjs-gl2d)
- [mapbox](#plotlyjs-mapbox)
- [finance](#plotlyjs-finance)
- [strict](#plotlyjs-strict)

> Each plotly.js partial bundle has a corresponding npm package with no dependencies.

> The minified version of each partial bundle is also published to npm in a separate "dist-min" package.

> The strict bundle now includes all traces, but the regl-based traces are built differently to avoid function constructors. This results in about a 10% larger bundle size, which is why this method is not used by default. Over time we intend to use the strict bundle to work on other strict CSP issues such as inline CSS.

---

### plotly.js basic

The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 1000.7 kB | 334.3 kB |

#### CDN links
> https://cdn.plot.ly/plotly-basic-2.34.0.js

> https://cdn.plot.ly/plotly-basic-2.34.0.min.js


#### npm packages
> [plotly.js-basic-dist](https://www.npmjs.com/package/plotly.js-basic-dist)

> [plotly.js-basic-dist-min](https://www.npmjs.com/package/plotly.js-basic-dist-min)

---

### plotly.js cartesian

The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `heatmap`, `histogram`, `histogram2d`, `histogram2dcontour`, `image`, `pie`, `scatter`, `scatterternary` and `violin`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.4 MB | 1.2 MB | 422.4 kB |

#### CDN links
> https://cdn.plot.ly/plotly-cartesian-2.34.0.js

> https://cdn.plot.ly/plotly-cartesian-2.34.0.min.js


#### npm packages
> [plotly.js-cartesian-dist](https://www.npmjs.com/package/plotly.js-cartesian-dist)

> [plotly.js-cartesian-dist-min](https://www.npmjs.com/package/plotly.js-cartesian-dist-min)

---

### plotly.js geo

The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `scattergeo`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.2 MB | 1.1 MB | 377.2 kB |

#### CDN links
> https://cdn.plot.ly/plotly-geo-2.34.0.js

> https://cdn.plot.ly/plotly-geo-2.34.0.min.js


#### npm packages
> [plotly.js-geo-dist](https://www.npmjs.com/package/plotly.js-geo-dist)

> [plotly.js-geo-dist-min](https://www.npmjs.com/package/plotly.js-geo-dist-min)

---

### plotly.js gl3d

The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`, `scatter`, `scatter3d`, `streamtube`, `surface` and `volume`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.6 MB | 1.5 MB | 498.9 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl3d-2.34.0.js

> https://cdn.plot.ly/plotly-gl3d-2.34.0.min.js


#### npm packages
> [plotly.js-gl3d-dist](https://www.npmjs.com/package/plotly.js-gl3d-dist)

> [plotly.js-gl3d-dist-min](https://www.npmjs.com/package/plotly.js-gl3d-dist-min)

---

### plotly.js gl2d

The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `pointcloud`, `scatter`, `scattergl` and `splom`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.9 MB | 605.6 kB |

#### CDN links
> https://cdn.plot.ly/plotly-gl2d-2.34.0.js

> https://cdn.plot.ly/plotly-gl2d-2.34.0.min.js


#### npm packages
> [plotly.js-gl2d-dist](https://www.npmjs.com/package/plotly.js-gl2d-dist)

> [plotly.js-gl2d-dist-min](https://www.npmjs.com/package/plotly.js-gl2d-dist-min)

---

### plotly.js mapbox

The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitymapbox`, `scatter` and `scattermapbox`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 4.4 MB | 1.8 MB | 536.1 kB |

#### CDN links
> https://cdn.plot.ly/plotly-mapbox-2.34.0.js

> https://cdn.plot.ly/plotly-mapbox-2.34.0.min.js


#### npm packages
> [plotly.js-mapbox-dist](https://www.npmjs.com/package/plotly.js-mapbox-dist)

> [plotly.js-mapbox-dist-min](https://www.npmjs.com/package/plotly.js-mapbox-dist-min)

---

### plotly.js finance

The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funnel`, `funnelarea`, `histogram`, `indicator`, `ohlc`, `pie`, `scatter` and `waterfall`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.9 MB | 1.1 MB | 363.7 kB |

#### CDN links
> https://cdn.plot.ly/plotly-finance-2.34.0.js

> https://cdn.plot.ly/plotly-finance-2.34.0.min.js


#### npm packages
> [plotly.js-finance-dist](https://www.npmjs.com/package/plotly.js-finance-dist)

> [plotly.js-finance-dist-min](https://www.npmjs.com/package/plotly.js-finance-dist-min)

---

### plotly.js strict

The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `candlestick`, `carpet`, `choropleth`, `choroplethmapbox`, `cone`, `contour`, `contourcarpet`, `densitymapbox`, `funnel`, `funnelarea`, `heatmap`, `heatmapgl`, `histogram`, `histogram2d`, `histogram2dcontour`, `icicle`, `image`, `indicator`, `isosurface`, `mesh3d`, `ohlc`, `parcats`, `parcoords`, `pie`, `pointcloud`, `sankey`, `scatter`, `scattergl`, `scatter3d`, `scattercarpet`, `scattergeo`, `scattermapbox`, `scatterpolar`, `scatterpolargl`, `scattersmith`, `scatterternary`, `splom`, `streamtube`, `sunburst`, `surface`, `table`, `treemap`, `violin`, `volume` and `waterfall`.

#### Stats

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 8.7 MB | 3.8 MB | 1.1 MB |

#### CDN links
> https://cdn.plot.ly/plotly-strict-2.34.0.js

> https://cdn.plot.ly/plotly-strict-2.34.0.min.js


#### npm packages
> [plotly.js-strict-dist](https://www.npmjs.com/package/plotly.js-strict-dist)

> [plotly.js-strict-dist-min](https://www.npmjs.com/package/plotly.js-strict-dist-min)

---


_This file is auto-generated by `npm run stats`. Please do not edit this file directly._
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.