Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 257edf7

Browse files
committed
Merge branch 'master' into tabs
2 parents 9683135 + 9478e4f commit 257edf7

37 files changed

+9571
-382
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*]
4+
insert_final_newline = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ venv/
1111
*.pyc
1212
*.egg-info
1313
*.log
14+
.idea/
1415
.DS_Store
1516

1617
bundle.js

CHANGELOG.md

Lines changed: 182 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,188 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.19.0] - 2018-02-11
6+
### Changed
7+
- `PropTypes` now uses `prop-types` package instead of `React` to support move to React 16+
8+
9+
## [0.18.1] - 2017-01-25
10+
### Fixed
11+
- Upgraded Plotly.js, the underlying library behind the
12+
`dash_core_components.Graph` component, to [version 1.33.1](https://github.com/plotly/plotly.js/releases/tag/v1.33.1). Fixes include
13+
- Fix selection on scattergl plots with >20k points [#2266](https://github.com/plotly/plotly.js/issues/2266)
14+
- Update Spanish localization with new strings [#2268](https://github.com/plotly/plotly.js/issues/2268)
15+
- Fix test_dashboard overly rigid restriction so parcoods works there [#2273](https://github.com/plotly/plotly.js/issues/2273)
16+
- Make layout.colorway compatible with sankey traces [#2277](https://github.com/plotly/plotly.js/issues/2277)
17+
- Fix click events on fixedrange subplots [#2279](https://github.com/plotly/plotly.js/issues/2279)
18+
- Remove ghost fill when trace data is emptied out [#2280](https://github.com/plotly/plotly.js/issues/2280)
19+
- Fix resizing of new scattergl plots [#2283](https://github.com/plotly/plotly.js/issues/2283)
20+
- Fix positioning of carpet axis titles for cheaterslope edge cases [#2285](https://github.com/plotly/plotly.js/issues/2285)
21+
- Fix coloring and hover info for heatmaps and contour maps with nonuniform bins [#2288](https://github.com/plotly/plotly.js/issues/2288)
22+
23+
24+
## [0.18.0] - 2017-01-19
25+
### Added
26+
- Upgraded Plotly.js, the underlying library behind the
27+
`dash_core_components.Graph` component, to [version 1.33.0](https://github.com/plotly/plotly.js/releases/tag/v1.33.0).
28+
This was a huge release! Here are some of the new features that
29+
are available. See https://github.com/plotly/plotly.js/releases/tag/v1.33.0 for the official notes.
30+
31+
Many of these features were funded directly by companies that rely on this library.
32+
If your organization or company would like to sponsor particular features or
33+
bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
34+
35+
- Completely rewritten `scattergl` trace type using `regl` [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
36+
- Completely rewritten polar chart renderer accompanied by new
37+
`scatterpolar` and `scatterpolargl` trace types [plotly.js/pull/2200](https://github.com/plotly/plotly.js/pull/2200)
38+
- Add the ability to draw layout images and layout shapes on subplot
39+
with `scattergl` traces [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
40+
- Add `fill` capabilities to `scattergl` traces [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
41+
- Add `spikedistance`, `hoverdistance` and `skipsnap` for more customizable
42+
spikes and hover behavior on cartesian subplots [plotly.js/pull/2247](https://github.com/plotly/plotly.js/pull/2247)
43+
- Add official Spanish translation (locale `es`) [plotly.js/pull/2249](https://github.com/plotly/plotly.js/pull/2249)
44+
- Add official French translation (locale `fr`) [plotly.js/pull/2252](https://github.com/plotly/plotly.js/pull/2252)
45+
46+
47+
### Changed
48+
- With the plotly.js upgrade, the old polar trace types
49+
(`scatter` with `(r, t)` coordinates, bar with (`(r, t)` coordinates and
50+
`area`) are now deprecated).
51+
52+
### Fixed
53+
- Several bugs with the `dcc.Graph` component were fixed with the plotly.js upgrade.
54+
These include:
55+
- Fix `gl2d` tick label on pan interaction regression [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
56+
- Fix `candlestick` hover label regression (bug introduced in v1.32.0) [plotly.js/pull/2264](https://github.com/plotly/plotly.js/pull/2264)
57+
- Fix several `gl2d` axis related bugs with new regl-based `scattergl` [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
58+
See full list under the On-par gl2d milestone https://github.com/plotly/plotly.js/milestone/3
59+
- Fix several polar bugs with `scatterpolar` [plotly.js/pull/2200].(https://github.com/plotly/plotly.js/pull/2200)
60+
See full list under the On-par polar milestone https://github.com/plotly/plotly.js/milestone/2
61+
- Fix `scattergl` marker.colorscale handling [plotly.js/pull/2258](https://github.com/plotly/plotly.js/pull/2258)
62+
- Fix decimal and thousands settings in `de` locale [plotly.js/pull/2246](https://github.com/plotly/plotly.js/pull/2246)
63+
- Make scroll handler _passive_, removing those annoying console warnings [plotly.js/pull/2251](https://github.com/plotly/plotly.js/pull/2251)
64+
65+
## [0.17.1] - 2017-01-18
66+
### Fixed
67+
- Previously, if `None` is supplied to `SyntaxHighlighter` or `Markdown`, the
68+
component would not render and the app would break. This is problematic because
69+
if `children` isn't supplied (as done in the case for when you are updating that
70+
property from a callback), `None` is the default property. Fixes https://github.com/plotly/dash-core-components/issues/147. This bug was introduced in
71+
v0.15.4.
72+
73+
## [0.17.0] - 2017-01-11
74+
### Added
75+
- The `dcc.Graph` component now includes `pointNumbers` inside `selectedData`
76+
and `hoverData` if the chart type is a `histogram`, `histogram2d`, or `histogram2dcontour`.
77+
78+
## [0.16.0] - 2017-01-11
79+
### Added
80+
- Upgraded Plotly.js, the underlying library behind the
81+
`dash_core_components.Graph` component, to [version 1.32.0](https://github.com/plotly/plotly.js/releases/tag/v1.32.0).
82+
This was a huge release! Here are some of the new features that
83+
are available. See https://github.com/plotly/plotly.js/releases/tag/v1.32.0 for the official notes.
84+
- Add localization machinery [https://github.com/plotly/plotly.js/pull/2195, https://github.com/plotly/plotly.js/pull/2207, https://github.com/plotly/plotly.js/pull/2210, https://github.com/plotly/plotly.js/pull/2232],
85+
including an official German translation (locale `de`) [https://github.com/plotly/plotly.js/pull/2217]
86+
- Add `violin` trace type [https://github.com/plotly/plotly.js/pull/2116]
87+
- Add `selected` and `unselected` attribute containers to customize selection states [https://github.com/plotly/plotly.js/pull/2135]
88+
- Add support for multi-selections [https://github.com/plotly/plotly.js/pull/2140]
89+
- Add layout `colorway` to custom the trace-to-trace color sequence [https://github.com/plotly/plotly.js/pull/2156]
90+
- Add `tickformatstops` to set tick format per cartesian axis range [https://github.com/plotly/plotly.js/pull/1965]
91+
- Add hover labels and selections to box points [https://github.com/plotly/plotly.js/pull/2094]
92+
- Histogram events & bin hover label improvements [https://github.com/plotly/plotly.js/pull/2113]
93+
- Add support for aggregation in `pie` traces [https://github.com/plotly/plotly.js/pull/2117]
94+
- Add annotations `startarrowhead`, `arrowside`, `startarrowsize` and `startstandoff` attributes [https://github.com/plotly/plotly.js/pull/2164]
95+
- Add `zhoverformat` to format `z` values in `heatmap`, `contour` and 2d histogram traces [https://github.com/plotly/plotly.js/pull/2106, https://github.com/plotly/plotly.js/pull/2127]
96+
- Add `marker.opacity` to bar traces [https://github.com/plotly/plotly.js/pull/2163]
97+
- Add `Cividis` colorscale [https://github.com/plotly/plotly.js/pull/2178]
98+
- Implement transform inverse mapping [https://github.com/plotly/plotly.js/pull/2126, https://github.com/plotly/plotly.js/pull/2162]
99+
- Selections are now persistent [https://github.com/plotly/plotly.js/pull/2135]
100+
- Rename _Save and edit plot in cloud_ mode bar button _Edit in Chart Studio_ [https://github.com/plotly/plotly.js/pull/2183]
101+
102+
### Fixed
103+
Here the bug fixes in the `Graph` component brought to you by the plotly.js release.
104+
See https://github.com/plotly/plotly.js/releases/tag/v1.32.0 for the official notes.
105+
106+
- Fix right-click handling [https://github.com/plotly/plotly.js/pull/2241]
107+
- Miscellaneous fixes for `table` traces [https://github.com/plotly/plotly.js/pull/2107, https://github.com/plotly/plotly.js/pull/2182]
108+
- Fix horizontal legend items alignment edge case [https://github.com/plotly/plotly.js/pull/2149]
109+
- Fix shape and updatemenu layering [https://github.com/plotly/plotly.js/pull/2121]
110+
- Fix bar with error bar with set `ids` edge case [https://github.com/plotly/plotly.js/pull/2169]
111+
- Fix `cliponaxis: false` for non linear cartesian axes [https://github.com/plotly/plotly.js/pull/2177]
112+
- Fix heatmap non-uniform brick gaps problem [https://github.com/plotly/plotly.js/pull/2213]
113+
- Fix choropleth selection when `visible: false` trace are present on graph [https://github.com/plotly/plotly.js/pull/2099, https://github.com/plotly/plotly.js/pull/2109]
114+
- Fix yet another contour drawing bug [https://github.com/plotly/plotly.js/pull/2091]
115+
- Clean up pie event data [https://github.com/plotly/plotly.js/pull/2117]
116+
- Fix scatter + bar hover edge cases [https://github.com/plotly/plotly.js/pull/2218]
117+
- Allow hover labels to extend to edges of graph area [https://github.com/plotly/plotly.js/pull/2215]
118+
- Harden location-to-feature against non-string country names for geo subplot [https://github.com/plotly/plotly.js/pull/2122]
119+
- Remove obsolete `smith` attribute from plot schema [https://github.com/plotly/plotly.js/pull/2093]
120+
- Fix colorbar class name [https://github.com/plotly/plotly.js/pull/2139]
121+
122+
123+
124+
## [0.15.5] - 2017-01-08
125+
### Fixed
126+
- The `dash_core_components.Location` and `dash_core_components.Link` properties
127+
should now work on Internet Explorer.
128+
Thanks to @nedned for suggesting a solution.
129+
Fixes https://github.com/plotly/dash-core-components/pull/113
130+
131+
## [0.15.4] - 2017-12-21
132+
### Changed
133+
- The `dash_core_components.Location` component now supports `hash`,
134+
`href`, and `search` in addition to the already supported `pathname`
135+
(mimicking the `window.location` API). `href` can be used to handle
136+
`pathname`, `hash`, and `search` in aggregate, or each can be manipulated
137+
independently.
138+
- The `children` property of `dash_core_components.Markdown` and
139+
`dash_core_components.SyntaxHighlighter` now accepts an
140+
array of strings (previously it *had* to be a string). Now,
141+
if an array is provided, it is collapsed into a string with line
142+
breaks (see #134).
143+
144+
## [0.15.3] - 2017-12-11
145+
### Fixed
146+
- Upgrade the version of [plotly.js](https://github.com/plotly/plotly.js) from 1.31.0 to 1.31.2. See the list of fixes here: https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md
147+
148+
149+
## [0.15.2] - 2017-11-24
150+
### :sweat_smile: Added
151+
- The `Interval` component has a new property: `n_intervals`. This is an
152+
integer that increases every time that the interval passes. This allows you
153+
to use the `Interval` component without using the `events=[Event(...)]` pattern
154+
inside the callback.
155+
156+
This is similar to the `n_clicks` property of the `dash_html_components`
157+
components.
158+
This was the last use case for `events=[Event(...)]` inside the
159+
`dash_core_components` library. Ultimately, we may be able to deprecate this
160+
pattern.
161+
162+
### Changed
163+
- The `dash_core_components.Input(type='number')` component actually converts
164+
the values to floats or integers, instead of passing the numbers back as strings.
165+
https://github.com/plotly/dash-core-components/pull/100
166+
Big thanks to community contributor @Madhu94!
167+
168+
### Fixed
169+
- The `disable_click` property in the `dcc.Upload` component now works.
170+
https://github.com/plotly/dash-core-components/pull/106.
171+
Big thanks to community contributor @Akronix!
172+
- Several properties in several components had the wrong `propTypes`.
173+
This has been fixed, improving the documentation for the Dash python classes
174+
(and removing warnings in JS development).
175+
Big thanks to community contributor @Akronix!
176+
177+
## [0.15.1] - 2017-11-23
178+
### Fixed
179+
- Attempt to fix the JS builds from 0.15.0 but actually nothing changed.
180+
181+
## [0.15.0] - 2017-11-19
182+
- Bad build. See 0.15.2 for the correct build
183+
5184
## [0.14.0] - 2017-10-17
6185
### :sparkles: Added
7-
- An `Upload` component! :tada:
186+
- An `Upload` component! :tada: See [https://plot.ly/dash/dash-core-components/upload](https://plot.ly/dash/dash-core-components/upload) for docs.
8187

9188
## [0.13.0] - 2017-10-05
10189
### Added
@@ -46,7 +225,7 @@ The following improvements from this version update apply to dash:
46225

47226
## [0.12.7] - 2017-09-26
48227
### :bug: Fixed
49-
- Fixed issues related to updating the `max_date_allowed` property of `DatePickerSingle` and `DatePickerRange` programatically through callbacks
228+
- Fixed issues related to updating the `max_date_allowed` property of `DatePickerSingle` and `DatePickerRange` programmatically through callbacks
50229
- Clicking on the end date in the `DatePickerRange` will now open up the calendar to the end date (https://github.com/plotly/dash-core-components/issues/80)
51230

52231
### Maintenance
@@ -61,7 +240,7 @@ The following improvements from this version update apply to dash:
61240
### :bug: Fixed
62241
- The `Interval` component was constantly resetting its interval on every update. Initially reported in https://community.plot.ly/t/multiple-interval-object-in-a-single-page/5699/3
63242
- Removed the used `label` property from the `Slider` component
64-
- Provide a more descriptive documention for the `marks` property of the `Slider` component
243+
- Provide a more descriptive documentation for the `marks` property of the `Slider` component
65244

66245
### :stars: Added
67246
- A `disabled` property on the `Interval` component will disable the interval component from firing its updates.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include dash_core_components/bundle.js.map
33
include dash_core_components/metadata.json
44
include dash_core_components/[email protected]
55
include dash_core_components/[email protected]
6-
include dash_core_components/plotly-1.31.0.min.js
6+
include dash_core_components/plotly-1.33.1.min.js
77
include dash_core_components/[email protected]
88
include dash_core_components/[email protected]
99
include dash_core_components/[email protected]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ In your test, append `.only` to a `describe` or `it` statement:
9494
```javascript
9595
describe.only('Foo component', () => {
9696
// ...
97-
})l
97+
});
9898
```
9999

100100
### Testing your components in Dash
@@ -140,7 +140,7 @@ respectively. TODO:
140140
[#5](https://github.com/plotly/dash-components-archetype/issues/5) will roll up
141141
publishing steps into one workflow.
142142

143-
Ask @chriddyp to get NPM / PyPi package publishing accesss.
143+
Ask @chriddyp to get NPM / PyPi package publishing access.
144144

145145
1. Preparing to publish to NPM
146146

circle.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies:
1010
pre:
1111
- npm install -g eslint
1212
- pip install tox
13-
- pip install -r dev-requirements.txt
1413
- npm install
1514
- node_modules/.bin/builder run build-dist
1615
- node_modules/.bin/builder run copy-lib

dash_core_components/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os as _os
2-
import dash as _dash
32
import sys as _sys
3+
import dash as _dash
44
from .version import __version__
55

6-
npm_package_version = '0.13.0-rc8'
6+
npm_package_version = '0.21.0-rc1'
77

88
_current_path = _os.path.dirname(_os.path.abspath(__file__))
99

@@ -16,8 +16,8 @@
1616

1717
_js_dist = [
1818
{
19-
'external_url': 'https://cdn.plot.ly/plotly-1.31.0.min.js',
20-
'relative_package_path': 'plotly-1.31.0.min.js',
19+
'external_url': 'https://cdn.plot.ly/plotly-1.33.1.min.js',
20+
'relative_package_path': 'plotly-1.33.1.min.js',
2121
'namespace': 'dash_core_components'
2222
},
2323
{
@@ -32,12 +32,12 @@
3232

3333
_css_dist = [
3434
{
35-
"relative_package_path": [
36-
37-
38-
39-
40-
35+
'relative_package_path': [
36+
37+
38+
39+
40+
4141
],
4242
"external_url": [
4343
"https://unpkg.com/[email protected]/dist/react-select.min.css",
@@ -46,7 +46,7 @@
4646
"https://unpkg.com/[email protected]/assets/index.css",
4747
"https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]".format(npm_package_version)
4848
],
49-
"namespace": "dash_core_components"
49+
'namespace': 'dash_core_components'
5050
}
5151
]
5252

0 commit comments

Comments
 (0)