Skip to content

use UTC milliseconds for internal representation of dates #1172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 64 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
e5916c4
update changelog for 1.20.0
etpinard Nov 15, 2016
d48c310
1.20.0
etpinard Nov 15, 2016
fcd9547
remove commented out code about 3d pie chart attributes
alexcjohnson Nov 15, 2016
e94b1d1
Merge pull request #1152 from plotly/no-3d-pies
alexcjohnson Nov 16, 2016
9583cfa
annotation: assign dflt pos if category IS NOT present
etpinard Nov 16, 2016
6e7d5d6
test: add annotations to mock 16
etpinard Nov 16, 2016
58b91e7
test: add annotation with category positions case
etpinard Nov 16, 2016
ca2e112
Merge pull request #1155 from plotly/annotation-category-fix
etpinard Nov 16, 2016
2204914
update changelog for 1.20.1
etpinard Nov 16, 2016
564f661
1.20.1
etpinard Nov 16, 2016
d7de2ae
issue #1160 fix
adamborowski Nov 17, 2016
665e56c
modebar: use axis r21 and l2r to compute zoom +/- ranges
etpinard Nov 17, 2016
8e9d458
test: test all cartesian axis types in modebar click cases
etpinard Nov 17, 2016
c45338d
test: use ax.r2l to assert range
etpinard Nov 17, 2016
8472254
bar: fix wrong bar size in hover labels
n-riesco Nov 17, 2016
1c32bc5
Merge pull request #1163 from n-riesco/pr-20161117-fix-issue-1157
etpinard Nov 17, 2016
f1b686f
test: assert up to yyyy-mm-dd for date ranges
etpinard Nov 17, 2016
4d9b02d
Merge pull request #1162 from plotly/modebar-date-zoom-fix
etpinard Nov 17, 2016
9e71209
update changelog for 1.20.2
etpinard Nov 17, 2016
775682f
1.20.2
etpinard Nov 17, 2016
6cf4283
tasks: fixup main bundle URLs
etpinard Nov 18, 2016
5971c16
Merge pull request #1166 from plotly/stats-fixup
etpinard Nov 18, 2016
fb44aee
fixing the non-fancy scattergl 'single data point' infinite loop
monfera Nov 18, 2016
bd34ec2
use UTC milliseconds for internal representation of dates
alexcjohnson Nov 19, 2016
9c645e7
if it works in Alaska it'll work anywhere.
alexcjohnson Nov 19, 2016
6d83c7b
verify our test environment has DST
alexcjohnson Nov 19, 2016
02e98a9
fix range selectors for UTC, and tests to run in arbitrary timezone
alexcjohnson Nov 19, 2016
c41a0b4
lint
alexcjohnson Nov 19, 2016
94f4d5f
test case for scattergl single data point
monfera Nov 19, 2016
fb0ff70
Merge pull request #1168 from monfera/scattergl-with-one-datapoint
etpinard Nov 21, 2016
1058366
Clone input trace
dy Nov 11, 2016
ea8ce86
Ignore line ending style
dy Nov 11, 2016
fa18648
Fix typo
dy Nov 11, 2016
ecd795a
test: add case for addTraces with exising data/traces
etpinard Nov 21, 2016
7e4c5c1
lint
etpinard Nov 21, 2016
6d2f655
Add check for failed binding comparison
rreusser Nov 21, 2016
6dc01d6
Make 'is simple binding' false for non-length-one arrays
rreusser Nov 21, 2016
125770b
Merge pull request #1175 from plotly/pr1136-clone-trace
etpinard Nov 21, 2016
242f3b4
Add test for non-present command arg value
rreusser Nov 21, 2016
218744d
Fix command api test that doesn't actually test anything
rreusser Nov 21, 2016
62c95f8
test: add jasmine test for #1169
etpinard Nov 21, 2016
63f455d
Merge pull request #1176 from plotly/fix-command-api-bug
etpinard Nov 21, 2016
a23a460
update changelog for 1.20.3
etpinard Nov 21, 2016
d9caee9
1.20.3
etpinard Nov 21, 2016
744041b
schema: fix defs.metaKeys field
etpinard Nov 21, 2016
bfba27d
Merge pull request #1182 from plotly/schema-metakey-fix
etpinard Nov 21, 2016
318fc48
update changelog for 1.20.4
etpinard Nov 21, 2016
48b0358
1.20.4
etpinard Nov 21, 2016
5f98edd
fix regression in lib/clean_number (alternate)
etpinard Nov 21, 2016
79fe7d5
turn front/end/global regex's into 1
etpinard Nov 21, 2016
b4da924
fix for date histograms with uniform bins
alexcjohnson Nov 22, 2016
2a57525
temp fix for histogram2d test in UTC environment
alexcjohnson Nov 22, 2016
846f2c7
Merge pull request #1185 from plotly/clean-datum-regression-alt
etpinard Nov 22, 2016
c130932
Merge pull request #1186 from plotly/fix-date-histograms
alexcjohnson Nov 22, 2016
426077a
handle and test a bunch of tickvals / ticktext edge cases
alexcjohnson Nov 22, 2016
27fb4b1
tighter test for when to remove seconds from date tick text
alexcjohnson Nov 22, 2016
74da7a4
include test that we didn't add any categories to category tickvals test
alexcjohnson Nov 22, 2016
77f745e
fix log axes tickvals default text formatting bug
alexcjohnson Nov 22, 2016
6762130
remove old (buggy) hovertext cruft, clean up and test edge cases
alexcjohnson Nov 23, 2016
c70f04a
suffix -> dateHead / headPart
alexcjohnson Nov 23, 2016
bd24421
Merge pull request #1191 from plotly/tickvals-edge-cases
alexcjohnson Nov 23, 2016
f35313a
update changelog for 1.20.5
etpinard Nov 23, 2016
0fc37d6
1.20.5
etpinard Nov 23, 2016
cd73020
Merge branch 'master' into dates-utc-backend
alexcjohnson Nov 23, 2016
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
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"no-trailing-spaces": [2],
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 0}],
"eol-last": [2],
"linebreak-style": [2, "unix"],
"indent": [2, 4, {"SwitchCase": 1}],
"max-len": [0, 80],
"brace-style": [0, "stroustrup", {"allowSingleLine": true}],
Expand Down
73 changes: 73 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,79 @@ 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.20.5] -- 2016-11-23

### Fixed
- Fix 1.20.0 regression in handling numerical strings including commas and spaces
[#1185]
- Fix 1.20.0 regression involving date histograms [#1186]
- Fix numerous tickvals` and `ticktext` edge cases [#1191]


## [1.20.4] -- 2016-11-21

### Fixed
- Fix metaKeys field `PlotSchema.get()` output

## [1.20.3] -- 2016-11-21

### Fixed
- Remove infinite loop when plotting 1-pt `scattergl` traces [#1168]
- Fix updatemenu bug where the wrong button was set to active [#1176]
- Fix `addTraces` when called with existing traces as input [#1175]


## [1.20.2] -- 2016-11-17

### Fixed
- Fix hover labels in stacked bar charts [#1163]
- Fix mode bar zoom buttons on date axes [#1162]


## [1.20.1] -- 2016-11-16

### Fixed
- Fix annotation positioning on categorical axes [#1155]


## [1.20.0] -- 2016-11-15

### Added
- Allow date string inputs for axis ranges, `tick0`, `dtick`, annotation / image
positions, histogram bins [#1078, #1150]
- Add special `dtick` values for log axes [#1078]
- Add `visible` attribute to annotations, shapes and images items [#1110]
- Expose events on slider start/change/end [#1126]
- Expose event on updatemenu button click [#1128]
- Allow custom transform module to have supply layout default handler [#1122]

### Changed
- Increase `scattergl` precision [#1114]
- Use `topojson-client` to convert topojson to geojson [#1147]

### Fixed
- Fix hover labels for multi-trace `scattergl` graphs (bug introduced in
`1.18.0`) [#1148]
- Fix date format on hover on full hour [#1078]
- Fix bar labels for non-zero `base` values [#1142]
- Scatter colorscale now yield correct colors when cmin and cmax ashow re equal
[#1112]
- Fix `filter` transform for categorical `target` arrays with range operations
[#1120]
- Make sure frames with `null` values clear array containers [#1118]
- Fix animations involving trace `opacity` [#1146]
- Fix fallback for non-animatable trace modules (bug introduced in `1.18.1`)
[#1141]
- Fix race condition in animation resolution when coupled with `relayout`
[#1108]
- Enforce casting requested frame names to strings [#1124]
- `Plotly.animte` no longer breaks when passing `null` frames [#1121]
- `Plotly.PlotSchema.get` now correctly list rangeslider and rangeselector under
`xaxis` only [#1144]
- `Plotly.relayout` correctly updates arbitrary layout attributes [#1133]


## [1.19.2] -- 2016-11-02

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ general:
machine:
node:
version: 6.1.0
timezone:
America/Anchorage
services:
- docker

Expand Down
48 changes: 24 additions & 24 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ 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-plotly-latest.min.js OR https://cdn.plot.ly/plotly-plotly-1.19.2.min.js
- using CDN URL https://cdn.plot.ly/plotly-latest.min.js OR https://cdn.plot.ly/plotly-1.20.5.min.js

or as raw javascript:
- using dist file `dist/plotly.js`
- using CDN URL https://cdn.plot.ly/plotly-plotly-latest.js OR https://cdn.plot.ly/plotly-plotly-1.19.2.js
- using CDN URL https://cdn.plot.ly/plotly-latest.js OR https://cdn.plot.ly/plotly-1.20.5.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 @@ -50,7 +50,7 @@ The main plotly.js bundle weights in at:

| plotly.js | plotly.min.js | plotly.min.js + gzip | plotly-with-meta.js |
|-----------|---------------|----------------------|---------------------|
| 4.2 MB | 1.7 MB | 525.1 kB | 4.3 MB |
| 4.2 MB | 1.7 MB | 526.5 kB | 4.3 MB |

## Partial bundles

Expand All @@ -74,13 +74,13 @@ The `basic` partial bundle contains the `scatter`, `bar` and `pie` trace modules
| dist bundle (minified) | `dist/plotly-basic.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-basic-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-basic-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-basic-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-basic-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-basic')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.6 MB | 605.4 kB | 196.1 kB |
| 1.6 MB | 607 kB | 196.7 kB |

### plotly.js cartesian

Expand All @@ -92,13 +92,13 @@ The `cartesian` partial bundle contains the `scatter`, `bar`, `box`, `heatmap`,
| dist bundle (minified) | `dist/plotly-cartesian.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-cartesian-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-cartesian-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-cartesian-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-cartesian-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-cartesian')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.7 MB | 674.9 kB | 216.9 kB |
| 1.8 MB | 677.8 kB | 218 kB |

### plotly.js geo

Expand All @@ -110,13 +110,13 @@ The `geo` partial bundle contains the `scatter`, `scattergeo` and `choropleth` t
| dist bundle (minified) | `dist/plotly-geo.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-geo-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-geo-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-geo-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-geo-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-geo')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.6 MB | 633.4 kB | 206.7 kB |
| 1.6 MB | 635.5 kB | 207.3 kB |

### plotly.js gl3d

Expand All @@ -128,13 +128,13 @@ The `gl3d` partial bundle contains the `scatter`, `scatter3d`, `surface` and `me
| dist bundle (minified) | `dist/plotly-gl3d.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl3d-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl3d-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl3d-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl3d-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-gl3d')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.4 MB | 1 MB | 327.4 kB |
| 2.5 MB | 1 MB | 328.1 kB |

### plotly.js gl2d

Expand All @@ -146,13 +146,13 @@ The `gl2d` partial bundle contains the `scatter`, `scattergl`, `pointcloud`, `he
| dist bundle (minified) | `dist/plotly-gl2d.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-gl2d-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-gl2d-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-gl2d-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-gl2d-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-gl2d')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.2 MB | 926.3 kB | 289.8 kB |
| 2.2 MB | 929.5 kB | 290.9 kB |

### plotly.js mapbox

Expand All @@ -164,13 +164,13 @@ The `mapbox` partial bundle contains the `scatter` and `scattermapbox` trace mod
| dist bundle (minified) | `dist/plotly-mapbox.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-mapbox-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-mapbox-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-mapbox-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-mapbox-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-mapbox')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 2.6 MB | 1 MB | 310.1 kB |
| 2.6 MB | 1 MB | 310.8 kB |

### plotly.js finance

Expand All @@ -182,13 +182,13 @@ The `finance` partial bundle contains the `scatter`, `bar`, `histogram`, `pie`,
| dist bundle (minified) | `dist/plotly-finance.min.js` |
| CDN URL (latest) | https://cdn.plot.ly/plotly-finance-latest.js |
| CDN URL (latest minified) | https://cdn.plot.ly/plotly-finance-latest.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.19.2.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.19.2.min.js |
| CDN URL (tagged) | https://cdn.plot.ly/plotly-finance-1.20.5.js |
| CDN URL (tagged minified) | https://cdn.plot.ly/plotly-finance-1.20.5.min.js |
| CommonJS | `require('plotly.js/lib/index-finance')` |

| Raw size | Minified size | Minified + gzip size |
|------|-----------------|------------------------|
| 1.6 MB | 629.9 kB | 202.7 kB |
| 1.6 MB | 632.3 kB | 203.6 kB |

----------------

Expand Down
Loading