Skip to content

Commit 9837d8b

Browse files
committed
Merge branch 'master' into has-plot-type
2 parents 9f94494 + 67c7e73 commit 9837d8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1272
-426
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,34 @@ https://github.com/plotly/plotly.js/compare/vX.Y.Z...master
1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

1212

13+
## [1.10.2] -- 2016-05-05
14+
15+
### Fixed
16+
- Subplot and range slider clip paths are now functional in AngularJS [#509]
17+
- `relayout` call involving axis `categoryorder` and `categoryarray` are now
18+
working [#510]
19+
- Annotation drag interactions in `editable: true` mode are now functional (bug
20+
introduced in 1.10.0)[#505]
21+
- Improved attribute description for shape `xref` and `yref` [#506]
22+
23+
24+
## [1.10.1] -- 2016-05-02
25+
26+
### Fixed
27+
- Resizing a graph (e.g. via `Plotly.relayout` or Plotly.Plots.resize)
28+
properly updates the plot area clip paths (bug introduced in 1.10.0) [#490]
29+
- `Plotly.Snapshot.toSVG` is now functional again in IE11 and old version of
30+
Chrome and FF (bug introduced in 1.10.0) [#489]
31+
- Hover labels of superimposed traces when 'hovermode' is set to 'closest' are
32+
properly displayed (bug introduced in 1.10.0) [#495]
33+
- Surface contour highlights are toggleable [#459]
34+
- Surface contour highlights style attributes are lower cased [#459]
35+
- Zoom overlay are drawn over shapes [#448]
36+
- Legend are draggable in `editable: true` contexts (bug introduced in 1.6.0)
37+
[#487]
38+
- Legend scroll box are drawn outside the legend [#478]
39+
40+
1341
## [1.10.0] -- 2016-04-12
1442

1543
### Added

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ chart types, including 3D charts, statistical graphs, and SVG maps.
2828
#### Download the latest release
2929
[Latest Release on Github](https://github.com/plotly/plotly.js/releases/)
3030

31+
and use the plotly.js `dist` file(s). More info [here](https://github.com/plotly/plotly.js/blob/master/dist/README.md).
32+
3133
#### Clone the repo
3234
```bash
3335
git clone https://github.com/plotly/plotly.js.git
3436
```
3537

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

3840
#### Install with `npm`
3941
```bash
@@ -53,7 +55,7 @@ and use the plotly.js `dist` file(s) or require plotly.js using CommonJS as `var
5355

5456
and use the `Plotly` object in the window scope.
5557

56-
Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
58+
##### Read the [Getting started page](https://plot.ly/javascript/getting-started/) for more examples.
5759

5860
## Modules
5961

@@ -82,7 +84,7 @@ To learn more about the plotly.js module architecture, refer to our [modularizin
8284

8385
#### Non-ascii characters
8486

85-
Important: the plotly.js code base contains some non-ascii characters. Therefore, please make sure to set the `chartset` attribute to `"utf-8"` in the script tag that imports your plotly.js bundle. For example:
87+
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:
8688

8789
```html
8890
<script type="text/javascript" src="my-plotly-bundle.js" charset="utf-8"></script>

devtools/test_dashboard/devtools.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ var d3 = window.d3 = Plotly.d3;
1111
// Our gracious testing object
1212
var Tabs = {
1313

14+
// Set plot config options
15+
setPlotConfig: function() {
16+
17+
// use local topojson files
18+
Plotly.setPlotConfig({ topojsonURL: '../../dist/topojson/' });
19+
},
20+
1421
// Return the specified plot container (or default one)
1522
getGraph: function(id) {
1623
id = id || 'graph';
@@ -24,7 +31,7 @@ var Tabs = {
2431
var graphDiv = Tabs.getGraph(id);
2532

2633
if(graphDiv) {
27-
graphDiv.remove();
34+
graphDiv.parentNode.removeChild(graphDiv);
2835
}
2936

3037
graphDiv = document.createElement('div');
@@ -110,6 +117,7 @@ var Tabs = {
110117
var interval = setInterval(function() {
111118
if(window.Plotly) {
112119
clearInterval(interval);
120+
Tabs.setPlotConfig();
113121
Tabs.onReload();
114122
}
115123
}, 100);
@@ -125,6 +133,8 @@ setInterval(function() {
125133
window.fullData = window.gd._fullData;
126134
}, 1000);
127135

136+
// Set plot config on first load
137+
Tabs.setPlotConfig();
128138

129139
// Mocks search and plotting
130140
var f = new Fuse(mocks, {

devtools/test_dashboard/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Plotly.js Devtools</title>
5+
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:600,400,300,200|Droid+Sans|PT+Sans+Narrow|Gravitas+One|Droid+Sans+Mono|Droid+Serif|Raleway|Old+Standard+TT"/>
56
<link rel="stylesheet" type="text/css" href="./style.css">
67
</head>
78
<body>
@@ -18,8 +19,8 @@
1819
</div>
1920
<div id="snapshot"></div>
2021

22+
<script type="text/javascript" src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>
2123
<script id="source" type="text/javascript" src="../../build/plotly.js"></script>
2224
<script type="text/javascript" src="../../build/test_dashboard-bundle.js"></script>
2325
</body>
2426
</html>
25-

dist/plotly-geo-assets.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)