Skip to content

Commit

Permalink
Merge branch 'master' into gl3d-blend-rebase include fix for extreme …
Browse files Browse the repository at this point in the history
…opacityscale

- update volume mock with extreme opacityscale
  • Loading branch information
archmoj committed Apr 6, 2020
2 parents efa3cb7 + 573bb19 commit 3373d8c
Show file tree
Hide file tree
Showing 114 changed files with 25,123 additions and 10,748 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,36 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
where X.Y.Z is the semver of most recent plotly.js release.


## [1.53.0] -- 2020-03-31

### Added
- Introduce `rangebreaks` on date axes mainly thanks to [#4614] with API revision & improvements in
[#4639, #4641, #4644, #4649, #4652, #4653, #4660, #4661, #4670, #4677, #4684, #4688, #4695, #4696, #4698, #4699]
- Introduce "(x|y) unified" `hovermode` [#4620, #4664, #4669, #4687]
- Add "hovered data" mode to `spikesnap` [#4665]
- Add "full-json" export format to `Plotly.toImage` and `Plotly.dowloadImage` [#4593]
- Add `node.customdata` and `link.customdata` to `sankey` traces [#4621]
- Add `opacityscale` for `surface` traces [#4480]

### Changed
- Improve `contour` labels (add extra pad) and correct minus sign [#4540]
- Improve sizing text inside `pie` and `sunburst` (add extra pad) [#4519]
- Improve display of spikelines when `spikedistance` is set to -1 [#4637]
- Improve compare `hovermode` to include all points at same coordinate [#4664]
- Improve `histogram` hover labels (harmonize start & end values) [#4662]
- Display new colors on Plotly's logo [#4691]
- Update links & descriptions to Chart Studio Cloud and plotly.com website [#4694]
- Update contributing guidelines & add info about trace module architecture [#4624]
- Require `config.plotlyServerURL` to be set for Chart Studio export [#4690]

### Fixed
- Fix `Plotly.downloadImage` to match transparencies in gl3d plots with the on-screen render [#4566]
- Fix amount of transparency applied by `opacity` in `surface` traces [#4480, #4642]
- Fix gaps in `bar` traces (regression introduced in 1.50.0) [#4634]
- Fix gaps in `funnel` & `waterfall` [#4663]
- Fix `template` to set axis `type`, `tickformatstops`, `tick0`, `dtick`, `tickvals` and `tickmode` [#4670, #4685]


## [1.52.3] -- 2020-03-02

## Fixed
Expand Down
40 changes: 15 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<a href="https://plot.ly/javascript/"><img src="http://images.plot.ly/logo/[email protected]" height="70"></a>
<a href="https://plotly.com/javascript/"><img src="https://images.plot.ly/logo/[email protected]" height="70"></a>

[![npm version](https://badge.fury.io/js/plotly.js.svg)](https://badge.fury.io/js/plotly.js)
[![circle ci](https://circleci.com/gh/plotly/plotly.js.png?&style=shield&circle-token=1f42a03b242bd969756fc3e53ede204af9b507c0)](https://circleci.com/gh/plotly/plotly.js)
[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/plotly/plotly.js/blob/master/LICENSE)

Built on top of [d3.js](http://d3js.org/) and [stack.gl](http://stack.gl/),
Built on top of [d3.js](https://d3js.org/) and [stack.gl](http://stack.gl/),
plotly.js is a high-level, declarative charting library. plotly.js ships with over 40
chart types, including scientific charts, 3D graphs, statistical charts, SVG maps, financial charts,
and more.

<p align="center">
<a href="https://www.plot.ly/javascript" target="_blank">
<a href="https://plotly.com/javascript/" target="_blank">
<img src="https://raw.githubusercontent.com/cldougl/plot_images/add_r_img/plotly_2017.png">
</a></p>

[Contact us](https://plot.ly/products/consulting-and-oem/) for Plotly.js consulting, dashboard development, application integration, and feature additions.
[Contact us](https://plotly.com/products/consulting-and-oem/) for Plotly.js consulting, dashboard development, application integration, and feature additions.

## Table of contents

Expand Down Expand Up @@ -44,10 +44,10 @@ and import plotly.js as `import Plotly from 'plotly.js-dist';` or `var Plotly =

```html
<!-- Latest compiled and minified plotly.js JavaScript -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script>

<!-- OR use a specific plotly.js release (e.g. version 1.5.0) -->
<script src="https://cdn.plot.ly/plotly-1.5.0.min.js"></script>
<!-- OR use a specific plotly.js release (e.g. version 1.52.3) -->
<script src="https://cdn.plot.ly/plotly-1.52.3.min.js" charset="utf-8"></script>

<!-- OR an un-minified version is also available -->
<script src="https://cdn.plot.ly/plotly-latest.js" charset="utf-8"></script>
Expand All @@ -63,7 +63,7 @@ Fastly supports Plotly.js with free CDN service. Read more at https://www.fastly

and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).

#### Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
#### Read the [Getting started page](https://plotly.com/javascript/getting-started/) for more examples.


## Modules
Expand Down Expand Up @@ -93,8 +93,6 @@ Then elsewhere in your code:
var Plotly = require('./path/to/custom-plotly');
```

To learn more about the plotly.js module architecture, refer to our [modularizing monolithic JS projects](https://plot.ly/javascript/modularizing-monolithic-javascript-projects/) post.

#### Non-ascii characters

Important: the plotly.js code base contains some non-ascii characters. Therefore, please make sure to set the `charset` attribute to `"utf-8"` in the script tag that imports your plotly.js bundle. For example:
Expand All @@ -113,13 +111,11 @@ Have a bug or a feature request? Please first read the [issues guidelines](https

## Documentation

Official plotly.js documentation is hosted on [plot.ly/javascript](https://plot.ly/javascript).
Official plotly.js documentation is hosted on [plotly.com/javascript](https://plotly.com/javascript).

These pages are generated by the Plotly [documentation repo](https://github.com/plotly/documentation/tree/gh-pages) built with [Jekyll](http://jekyllrb.com) and publicly hosted on GitHub Pages.
These pages are generated by the Plotly [graphing-library-docs repo](https://github.com/plotly/graphing-library-docs) built with [Jekyll](https://jekyllrb.com/) and publicly hosted on GitHub Pages.
For more info about contributing to Plotly documentation, please read through [contributing guidelines](https://github.com/plotly/documentation/blob/source/Contributing.md).

You can also suggest new documentation examples by submitting a [Codepen](http://codepen.io/tag/plotly/) on community.plot.ly with tag [`plotly-js`](http://community.plot.ly/c/plotly-js).

## Contributing

Please read through our [contributing guidelines](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md). Included are directions for opening issues, using plotly.js in your project and notes on development.
Expand All @@ -128,14 +124,13 @@ Please read through our [contributing guidelines](https://github.com/plotly/plot

* Follow [@plotlygraphs](https://twitter.com/plotlygraphs) on Twitter for the latest Plotly news.
* Follow [@plotly_js](https://twitter.com/plotly_js) on Twitter for plotly.js release updates.
* Implementation help may be found on community.plot.ly (tagged [`plotly-js`](http://community.plot.ly/c/plotly-js)) or
* 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)).
* 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).
* Direct developer email support can be purchased through a [Plotly Support Plan](https://support.plot.ly/libraries/javascript).

## Versioning

This project is maintained under the [Semantic Versioning guidelines](http://semver.org/).
This project is maintained under the [Semantic Versioning guidelines](https://semver.org/).

See the [Releases section](https://github.com/plotly/plotly.js/releases) of our GitHub project for changelogs for each release version of plotly.js.

Expand All @@ -145,15 +140,10 @@ Open-source clients to the plotly.js APIs are available at these links:

| | GitHub repo | Getting started |
|---|--------|---------|
|**R / RStudio**| [ropensci/plotly](https://github.com/ropensci/plotly) | [plot.ly/r/getting-started](https://plot.ly/r/getting-started) |
|**Python / Pandas / IPython notebook**| [plotly/plotly.py](https://github.com/plotly/plotly.py) | [plot.ly/python/getting-started](https://plot.ly/python/getting-started) |
|**MATLAB**| [plotly/matlab-api](https://github.com/plotly/matlab-api) | [plot.ly/matlab/getting-started](https://plot.ly/matlab/getting-started) |
|**R / RStudio**| [ropensci/plotly](https://github.com/ropensci/plotly) | [plotly/r/getting-started](https://plotly.com/r/getting-started) |
|**Python / Pandas / IPython notebook**| [plotly/plotly.py](https://github.com/plotly/plotly.py) | [plotly/python/getting-started](https://plotly.com/python/getting-started) |
|**MATLAB**| [plotly/matlab-api](https://github.com/plotly/matlab-api) | [plotly/matlab/getting-started](https://plotly.com/matlab/getting-started) |
|**node.js / Tonicdev / Jupyter notebook**| [plotly/plotly-notebook-js](https://github.com/plotly/plotly-notebook-js) | |
|**node.js cloud client**| [plotly/plotly-nodejs](https://github.com/plotly/plotly-nodejs) | [plot.ly/nodejs/getting-started](https://plot.ly/nodejs/getting-started) |
|**Julia**| [plotly/Plotly.jl](https://github.com/plotly/Plotly.jl) | [plot.ly/julia/getting-started](https://plot.ly/julia/getting-started) |

plotly.js charts can also be created and saved online for free at [plot.ly/create](https://plot.ly/create).

## Creators

### Active
Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ untrusted data being graphed by plotly.js. However, XSS or other issues may sti
Note that the typical use case for plotly.js is for visualizing data from trusted sources. For example if you use plotly.js to add a dashboard to your site and you control all the input data that's sent to plotly.js, you are not dependent on plotly.js for XSS protection.

If you require a higher degree of assurance, please consider purchasing our
[Plotly On-Premise](https://plot.ly/product/enterprise/) product, or [contact the Plotly sales team](mailto:sales@plot.ly)
[Plotly On-Premise](https://plotly.com/get-pricing/) product, or [contact the Plotly sales team](mailto:sales@plotly.com)
for more options.

## Reports

To report a security vulnerability, please email security@plot.ly with steps to reproduce the problem. Please allow up to
To report a security vulnerability, please email security@plotly.com with steps to reproduce the problem. Please allow up to
24 hours for an initial response.

## Bounties

In some cases, we offer monetary compensation (bounties) for reports of security vulnerabilities. Please see the [Plotly Security Vulnerability Bounty Program](http://help.plot.ly/security/) page for more information.
In some cases, we offer monetary compensation (bounties) for reports of security vulnerabilities. Please see the [Plotly Security Vulnerability Bounty Program](https://plotly.com/chart-studio-help/security/) page for more information.

## Release Process

Expand All @@ -31,4 +31,4 @@ Since the typical plotly.js use case involves trusted data, we do not remove old

## Advisories

All plotly.js security advisories released after August 1, 2016 are available at the [Plotly Security Advisories](http://help.plot.ly/security-advisories/) page.
All plotly.js security advisories released after August 1, 2016 are available at the [Plotly Security Advisories](https://plotly.com/chart-studio-help/security-advisories/) page.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"visualization",
"plotly"
],
"homepage": "https://plot.ly",
"homepage": "https://plotly.com/",
"ignore": [
"**/.*",
"bower_components",
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"plotly"
],
"minimum-stability": "stable",
"homepage": "https://plot.ly/javascript/",
"homepage": "https://plotly.com/javascript/",
"license": "MIT",
"authors": [
{
"name": "Plotly, Inc.",
"email": "sales@plot.ly"
"email": "sales@plotly.com"
}
]
}
52 changes: 26 additions & 26 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object. This property must be set before the plotly.js script tag, for example:
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.
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.52.3.js
They are also available on our CDN as https://cdn.plot.ly/plotly-locale-de-ch-latest.js OR https://cdn.plot.ly/plotly-locale-de-ch-1.53.0.js
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:
Expand All @@ -74,21 +74,21 @@ The main plotly.js bundle includes all the official (non-beta) trace modules.

It be can imported as minified javascript
- using dist file `dist/plotly.min.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.52.3.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.53.0.min.js

or as raw javascript:
- using the `plotly.js-dist` npm package (starting in `v1.39.0`)
- using dist file `dist/plotly.js`
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.52.3.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.53.0.js
- using CommonJS with `require('plotly.js')`

If you would like to have access to the attribute meta information (including attribute descriptions as on the [schema reference page](https://plot.ly/javascript/reference/)), use dist file `dist/plotly-with-meta.js`
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`

The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 6.9 MB | 3.2 MB | 957.2 kB | 7.2 MB |
| 6.9 MB | 3.2 MB | 961.9 kB | 7.2 MB |

## Partial bundles

Expand All @@ -114,16 +114,16 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 853.6 kB | 280.4 kB |
| 2.4 MB | 865.6 kB | 284.6 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-basic-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-basic-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -167,16 +167,16 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.7 MB | 983.5 kB | 321.4 kB |
| 2.8 MB | 995.9 kB | 325.8 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-cartesian-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -220,16 +220,16 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 880.7 kB | 289.9 kB |
| 2.5 MB | 892.4 kB | 294.1 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-geo-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-geo-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -273,16 +273,16 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.5 MB | 1.4 MB | 439.2 kB |
| 3.5 MB | 1.4 MB | 443.6 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl3d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -326,16 +326,16 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.5 MB | 1.4 MB | 458.2 kB |
| 3.5 MB | 1.4 MB | 462.4 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-gl2d-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -379,16 +379,16 @@ The `mapbox` partial bundle contains trace modules `scatter`, `scattermapbox`, `

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 3.1 MB | 1.5 MB | 461.8 kB |
| 3.2 MB | 1.5 MB | 466 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-mapbox-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down Expand Up @@ -432,16 +432,16 @@ The `finance` partial bundle contains trace modules `scatter`, `bar`, `histogram

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 940.7 kB | 305.4 kB |
| 2.6 MB | 953.3 kB | 309.9 kB |

#### CDN links

| Flavor | URL |
| ------ | --- |
| Latest | https://cdn.plot.ly/plotly-finance-latest.js |
| Latest minified | https://cdn.plot.ly/plotly-finance-latest.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.52.3.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.52.3.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.53.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.53.0.min.js |

#### npm package (starting in `v1.39.0`)

Expand Down
Loading

0 comments on commit 3373d8c

Please sign in to comment.