Skip to content

Commit

Permalink
1.46.1
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Apr 2, 2019
1 parent edef0c6 commit 5abfe58
Show file tree
Hide file tree
Showing 23 changed files with 174 additions and 162 deletions.
38 changes: 19 additions & 19 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.46.0.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.46.1.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,12 +74,12 @@ 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.46.0.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.46.1.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.46.0.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.46.1.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`
Expand All @@ -88,7 +88,7 @@ The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 6.3 MB | 2.9 MB | 879.6 kB | 6.6 MB |
| 6.3 MB | 2.9 MB | 879.7 kB | 6.6 MB |

## Partial bundles

Expand Down Expand Up @@ -119,8 +119,8 @@ The `basic` partial bundle contains trace modules `scatter`, `bar` and `pie`.
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-basic-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-basic-1.46.1.min.js |

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

Expand Down Expand Up @@ -165,8 +165,8 @@ The `cartesian` partial bundle contains trace modules `scatter`, `bar`, `box`, `
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-cartesian-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-cartesian-1.46.1.min.js |

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

Expand Down Expand Up @@ -211,8 +211,8 @@ The `geo` partial bundle contains trace modules `scatter`, `scattergeo` and `cho
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-geo-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-geo-1.46.1.min.js |

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

Expand Down Expand Up @@ -257,8 +257,8 @@ The `gl3d` partial bundle contains trace modules `scatter`, `scatter3d`, `surfac
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl3d-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl3d-1.46.1.min.js |

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

Expand Down Expand Up @@ -303,8 +303,8 @@ The `gl2d` partial bundle contains trace modules `scatter`, `scattergl`, `splom`
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-gl2d-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-gl2d-1.46.1.min.js |

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

Expand Down Expand Up @@ -349,8 +349,8 @@ The `mapbox` partial bundle contains trace modules `scatter` and `scattermapbox`
| ------ | --- |
| 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-mapbox-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-mapbox-1.46.1.min.js |

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

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

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 862.1 kB | 280.6 kB |
| 2.4 MB | 862.3 kB | 280.7 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.46.0.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.46.0.min.js |
| Tagged | https://cdn.plot.ly/plotly-finance-1.46.1.js |
| Tagged minified | https://cdn.plot.ly/plotly-finance-1.46.1.min.js |

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

Expand Down
24 changes: 12 additions & 12 deletions dist/plotly-basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (basic) v1.46.0
* plotly.js (basic) v1.46.1
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -18812,7 +18812,7 @@ var scales = {
],

// modified RdBu based on
// www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf
// http://www.kennethmoreland.com/color-maps/
'RdBu': [
[0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'],
[0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'],
Expand Down Expand Up @@ -33922,7 +33922,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.46.0';
exports.version = '1.46.1';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -67510,11 +67510,6 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var text = getText(trace, i);
textPosition = getTextPosition(trace, i);

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// compute text position
var prefix = trace.type === 'waterfall' ? 'waterfall' : 'bar';
var barmode = fullLayout[prefix + 'mode'];
Expand All @@ -67523,16 +67518,21 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var calcBar = calcTrace[i];
var isOutmostBar = !inStackOrRelativeMode || calcBar._outmost;

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

if(!text || textPosition === 'none' ||
(calcBar.isBlank && (textPosition === 'auto' || textPosition === 'inside'))) {
bar.select('text').remove();
return;
}

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

var textSelection;
var textBB;
var textWidth;
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-basic.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/plotly-cartesian.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (cartesian) v1.46.0
* plotly.js (cartesian) v1.46.1
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -18924,7 +18924,7 @@ var scales = {
],

// modified RdBu based on
// www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf
// http://www.kennethmoreland.com/color-maps/
'RdBu': [
[0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'],
[0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'],
Expand Down Expand Up @@ -34072,7 +34072,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.46.0';
exports.version = '1.46.1';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -68822,11 +68822,6 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var text = getText(trace, i);
textPosition = getTextPosition(trace, i);

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// compute text position
var prefix = trace.type === 'waterfall' ? 'waterfall' : 'bar';
var barmode = fullLayout[prefix + 'mode'];
Expand All @@ -68835,16 +68830,21 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var calcBar = calcTrace[i];
var isOutmostBar = !inStackOrRelativeMode || calcBar._outmost;

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

if(!text || textPosition === 'none' ||
(calcBar.isBlank && (textPosition === 'auto' || textPosition === 'inside'))) {
bar.select('text').remove();
return;
}

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

var textSelection;
var textBB;
var textWidth;
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-cartesian.min.js

Large diffs are not rendered by default.

50 changes: 29 additions & 21 deletions dist/plotly-finance.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* plotly.js (finance) v1.46.0
* plotly.js (finance) v1.46.1
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
Expand Down Expand Up @@ -18868,7 +18868,7 @@ var scales = {
],

// modified RdBu based on
// www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf
// http://www.kennethmoreland.com/color-maps/
'RdBu': [
[0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'],
[0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'],
Expand Down Expand Up @@ -33978,7 +33978,7 @@ exports.svgAttrs = {
'use strict';

// package version injected by `npm run preprocess`
exports.version = '1.46.0';
exports.version = '1.46.1';

// inject promise polyfill
_dereq_('es6-promise').polyfill();
Expand Down Expand Up @@ -67566,11 +67566,6 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var text = getText(trace, i);
textPosition = getTextPosition(trace, i);

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// compute text position
var prefix = trace.type === 'waterfall' ? 'waterfall' : 'bar';
var barmode = fullLayout[prefix + 'mode'];
Expand All @@ -67579,16 +67574,21 @@ function appendBarText(gd, bar, calcTrace, i, x0, x1, y0, y1) {
var calcBar = calcTrace[i];
var isOutmostBar = !inStackOrRelativeMode || calcBar._outmost;

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

if(!text || textPosition === 'none' ||
(calcBar.isBlank && (textPosition === 'auto' || textPosition === 'inside'))) {
bar.select('text').remove();
return;
}

var layoutFont = fullLayout.font;
var barColor = style.getBarColor(calcTrace[i], trace);
var insideTextFont = style.getInsideTextFont(trace, i, layoutFont, barColor);
var outsideTextFont = style.getOutsideTextFont(trace, i, layoutFont);

// padding excluded
var barWidth = Math.abs(x1 - x0) - 2 * TEXTPAD;
var barHeight = Math.abs(y1 - y0) - 2 * TEXTPAD;

var textSelection;
var textBB;
var textWidth;
Expand Down Expand Up @@ -76713,7 +76713,8 @@ module.exports = {

'use strict';

var Color = _dereq_('../../components/color');
var hoverLabelText = _dereq_('../../plots/cartesian/axes').hoverLabelText;
var opacity = _dereq_('../../components/color').opacity;
var hoverOnBars = _dereq_('../bar/hover').hoverOnBars;

var DIRSYMBOL = {
Expand All @@ -76727,28 +76728,35 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) {

var cd = point.cd;
var trace = cd[0].trace;
var isHorizontal = (trace.orientation === 'h');

var vAxis = isHorizontal ? pointData.xa : pointData.ya;

function formatNumber(a) {
return hoverLabelText(vAxis, a);
}

// the closest data point
var index = point.index;
var di = cd[index];

var sizeLetter = (trace.orientation === 'h') ? 'x' : 'y';
var sizeLetter = isHorizontal ? 'x' : 'y';

var size = (di.isSum) ? di.b + di.s : di.rawS;

if(!di.isSum) {
// format delta numbers:
if(size > 0) {
point.extraText = size + ' ' + DIRSYMBOL.increasing;
point.extraText = formatNumber(size) + ' ' + DIRSYMBOL.increasing;
} else if(size < 0) {
point.extraText = '(' + (-size) + ') ' + DIRSYMBOL.decreasing;
point.extraText = '(' + (formatNumber(-size)) + ') ' + DIRSYMBOL.decreasing;
} else {
return;
}
// display initial value
point.extraText += '<br>Initial: ' + (di.b + di.s - size);
point.extraText += '<br>Initial: ' + formatNumber(di.b + di.s - size);
} else {
point[sizeLetter + 'LabelVal'] = size;
point[sizeLetter + 'LabelVal'] = formatNumber(size);
}

point.color = getTraceColor(trace, di);
Expand All @@ -76761,11 +76769,11 @@ function getTraceColor(trace, di) {
var mc = cont.color;
var mlc = cont.line.color;
var mlw = cont.line.width;
if(Color.opacity(mc)) return mc;
else if(Color.opacity(mlc) && mlw) return mlc;
if(opacity(mc)) return mc;
else if(opacity(mlc) && mlw) return mlc;
}

},{"../../components/color":47,"../bar/hover":262}],348:[function(_dereq_,module,exports){
},{"../../components/color":47,"../../plots/cartesian/axes":207,"../bar/hover":262}],348:[function(_dereq_,module,exports){
/**
* Copyright 2012-2019, Plotly, Inc.
* All rights reserved.
Expand Down
4 changes: 2 additions & 2 deletions dist/plotly-finance.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/plotly-geo-assets.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5abfe58

Please sign in to comment.