Skip to content

Commit 8cf43fd

Browse files
committed
Merge branch 'reorg-src' into fix-d3-geo-dblclick
2 parents cebfb46 + a2c72ed commit 8cf43fd

Some content is hidden

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

84 files changed

+1300
-1132
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ node_modules
33
build/*
44
!build/README.md
55

6+
dist/*
7+
!dist/README.md
8+
69
npm-debug.log

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yolos!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Plotly, Inc
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,92 @@
1-
# plotly.js
1+
# [plotly.js](https://plot.ly/javascript/getting-started/)
22

3-
The premier high-level javascript graphing library
3+
[![npm version](https://img.shields.io/npm/v/plotly.svg)](https://www.npmjs.com/package/plotly)
4+
5+
To get started, check out <https://plot.ly/javascript/getting-started/>!
6+
7+
## Table of contents
8+
9+
* [Quick start](#quick-start)
10+
* [Bugs and feature requests](#bugs-and-feature-requests)
11+
* [Documentation](#documentation)
12+
* [Contributing](#contributing)
13+
* [Community](#community)
14+
* [Clients for R, Python, and MATLAB](#clients-for-r-python-and-matlab)
15+
* [Creators](#creators)
16+
* [Copyright and license](#copyright-and-license)
17+
18+
19+
## Quick start
20+
21+
Several quick start options are available:
22+
23+
* [Download the latest release](https://github.com/plotly/plotly.js/releases/v1.0.0/plotly.js.zip).
24+
* Clone the repo: `git clone https://github.com/plotly/plotly.js.git`.
25+
* Install with [npm](https://www.npmjs.com): `npm install plotly`.
26+
* Use the plotly.js CDN hosted by Fastly:
27+
28+
```html
29+
<!-- Latest compiled and minified plotly.js JavaScript -->
30+
<script type="text/javascript" src="https://cdn.plot.ly/plotly-latest.min.js">
31+
```
32+
33+
Read the [Getting started page](https://plot.ly/javascript/getting-started/) for examples.
34+
35+
## Bugs and feature requests
36+
37+
Have a bug or a feature request? Please first read the [issue guidelines](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md) and search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/plotly/plotly.js/issues/new).
38+
39+
## Documentation
40+
41+
Plotly.js documentation, in the repo documentation, is built with [Jekyll](http://jekyllrb.com) and publicly hosted on GitHub Pages at <https://plot.ly/javascript/getting-started/>. The docs may also be run locally.
42+
43+
You can also suggest new documentation examples by submitting a [Codepen](http://codepen.io/tag/plotly/) on community.plot.ly (tagged [`plotly-js`](community.plot.ly/c/plotly-js).
44+
45+
## Contributing
46+
47+
Please read through our [contributing guidelines](https://github.com/plotly/plotly.js/blob/master/CONTRIBUTING.md). Included are directions for opening issues, coding standards, and notes on development.
48+
49+
## Community
50+
51+
Get updates on plotly.js's development and chat with the project maintainers and community members.
52+
53+
* Follow [@plotlygraphs on Twitter](https://twitter.com/plotlygraphs).
54+
* Implementation help may be found at Stack Overflow (tagged [`plotly`](https://stackoverflow.com/questions/tagged/plotly)) or community.plot.ly (tagged [`plotly-js`](http://community.plot.ly/c/plotly-js).
55+
* 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) or similar delivery mechanisms for maximum discoverability.
56+
* Direct developer email support can be purchased through a [Plotly Pro](https://plot.ly/products/cloud/) plan.
57+
58+
## Versioning
59+
60+
For transparency into our release cycle and in striving to maintain backward compatibility, plotly.js is maintained under [the Semantic Versioning guidelines](http://semver.org/).
61+
62+
See [the Releases section of our GitHub project](https://github.com/plotly/plotly.js/releases) for changelogs for each release version of plotly.js.
63+
64+
## Clients for R, Python, and MATLAB
65+
66+
Open-source clients to the plotly.js APIs are available at these links:
67+
68+
| | GitHub repo | Getting started |
69+
|---|--------|---------|
70+
|**R / RStudio**| [ropensci/plotly](https://github.com/ropensci/plotly) | [plot.ly/r/getting-started](https://plot.ly/r/getting-started) |
71+
|**Python / Pandas / IPython notebook**| [plotly/plotly.py](https://github.com/plotly/plotly.py) | [plot.ly/python/getting-started](https://plot.ly/python/getting-started) |
72+
|**MATLAB**| [plotly/matlab-api](https://github.com/plotly/matlab-api) | [plot.ly/matlab/getting-started](https://plot.ly/matlab/getting-started) |
73+
|**node.js**| [plotly/plotly-nodejs](https://github.com/plotly/plotly-nodejs) | [plot.ly/nodejs/getting-started/](https://plot.ly/nodejs/getting-started/) |
74+
|**Julia**| [plotly/Plotly.jl](https://github.com/plotly/Plotly.jl) | [plot.ly/julia/getting-started/](https://plot.ly/julia/getting-started/) |
75+
76+
plotly.js charts can also be created and saved online for free at [plot.ly/plot](https://plot.ly/plot).
77+
78+
## Creators
79+
80+
| | Github | Twitter |
81+
|---|--------|---------|
82+
|**Alex C. Johnson**| [@alexcjohnson](https://github.com/alexcjohnson) | |
83+
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) |
84+
|**Mikola Lysenko**| [@mikolalysenko](https://github.com/mikolalysenko) | [@MikolaLysenko](https://twitter.com/MikolaLysenko) |
85+
|**Ben Postlethwaite**| [@bpostlethwaite](https://github.com/bpostlethwaite) | |
86+
|**Chris Parmer**| [@chriddyp](https://github.com/chriddyp) | |
87+
88+
## Copyright and license
89+
90+
Code and documentation copyright 2015 Plotly, Inc.
91+
Code released under [the MIT license](https://github.com/plotly/plotly.js/blob/master/LICENSE).
92+
Docs released under [Creative Commons](https://github.com/plotly/documentation/blob/source/LICENSE).

devtools/test_dashboard/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var browserify = require('browserify');
66
var ecstatic = require('ecstatic');
77
var _open = require('open');
88

9-
var makeWatchifiedBundle = require('../../tasks/watch_plotly');
9+
var makeWatchifiedBundle = require('../../tasks/util/make_watchified_bundle');
1010
var shortcutPaths = require('../../tasks/util/shortcut_paths');
1111
var constants = require('../../tasks/util/constants');
1212

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"description": "The premier javascript graphing library",
55
"license": "MIT",
6-
"main": "./src/plotly.js",
6+
"main": "./src/index.js",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/plotly/plotly.js.git"
@@ -43,6 +43,7 @@
4343
],
4444
"scripts": {
4545
"preprocess": "node tasks/preprocess.js",
46+
"postinstall": "npm run preprocess",
4647
"bundle": "node tasks/bundle.js",
4748
"build": "npm run preprocess && npm run bundle",
4849
"watch": "node tasks/watch_plotly.js",

src/components/annotations/attributes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var Plotly = require('../../plotly');
22
var ARROWPATHS = require('./arrow_paths');
3-
var fontAttrs = require('../../plots/plots/font_attributes');
3+
var fontAttrs = require('../../plots/font_attributes');
44
var extendFlat = require('../../lib/extend').extendFlat;
55

66
module.exports = {
File renamed without changes.

src/components/colorbar/attributes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
var axesAttrs = require('../../plots/cartesian/attributes');
2-
var fontAttrs = require('../../plots/plots/font_attributes');
1+
var axesAttrs = require('../../plots/cartesian/layout_attributes');
2+
var fontAttrs = require('../../plots/font_attributes');
33
var extendFlat = require('../../lib/extend').extendFlat;
44

55
module.exports = {

0 commit comments

Comments
 (0)