├── nvd3-elements.png
├── .gitignore
├── nvd3-import.html
├── .travis.yml
├── nvd3-elements.html
├── test
├── simple-chart.html
├── basic-nvd3-behavior.html
├── index.html
├── basic-nvd3-bullet.html
├── basic-nvd3-sunburst.html
├── basic-nvd3-discrete-bar.html
├── basic-nvd3-scatter.html
├── basic-nvd3-multi-bar.html
├── basic-nvd3-multi-bar-horizontal.html
├── basic-nvd3-line-with-focus.html
├── basic-nvd3-line.html
├── basic-nvd3-stacked-area.html
├── basic-nvd3-cumulative-line.html
├── basic-nvd3-donut.html
└── basic-nvd3-pie.html
├── demo
├── nvd3-bullet.html
├── nvd3-discrete-bar.html
├── nvd3-pie.html
├── nvd3-donut.html
├── nvd3-multi-bar-horizontal.html
├── nvd3-cumulative-line.html
├── nvd3-multi-bar.html
├── nvd3-stacked-area.html
├── nvd3-line-with-focus.html
├── nvd3-scatter.html
└── nvd3-sunburst.html
├── LICENSE
├── README.md
├── index.html
├── nvd3-bullet.html
├── bower.json
├── nvd3-scatter.html
├── nvd3-multi-bar.html
├── nvd3-multi-bar-horizontal.html
├── nvd3-discrete-bar.html
├── nvd3-tooltip-styles.html
├── nvd3-stacked-area.html
├── nvd3-cumulative-line.html
├── nvd3-sunburst.html
├── nvd3-line-with-focus.html
├── nvd3-line.html
├── nvd3-pie.html
├── nvd3-donut.html
├── nvd3-behavior.html
└── nvd3-shared-styles.html
/nvd3-elements.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/saeidzebardast/nvd3-elements/HEAD/nvd3-elements.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | bower_components/
2 | bower_components-1.x/
3 | bower-1.x.json
4 | .idea/
5 | node_modules/
--------------------------------------------------------------------------------
/nvd3-import.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | sudo: required
3 | dist: trusty
4 | node_js: stable
5 | addons:
6 | firefox: latest
7 | apt:
8 | sources:
9 | - google-chrome
10 | packages:
11 | - google-chrome-stable
12 | before_script:
13 | - npm install polymer-cli
14 | - export PATH=$PWD/node_modules/.bin:$PATH
15 | - polymer install --variants
16 | script:
17 | - xvfb-run polymer test
18 |
--------------------------------------------------------------------------------
/nvd3-elements.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/test/simple-chart.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
36 |
--------------------------------------------------------------------------------
/demo/nvd3-bullet.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-bullet Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | An example of
16 | <nvd3-bullet>:
17 |
18 |
19 |
20 |
21 |
22 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Saeid Zebardast
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 all
13 | 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 THE
21 | SOFTWARE.
22 |
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # nvd3-elements [](https://travis-ci.org/saeidzebardast/nvd3-elements) [](https://www.webcomponents.org/element/saeidzebardast/nvd3-elements)
2 |
3 | NVD3 charts as web components for Polymer.
4 |
5 | [](http://saeidzebardast.github.io/nvd3-elements)
6 |
7 | ## Install
8 | ```
9 | bower install nvd3-elements
10 | ```
11 |
12 |
13 | ## Available charts elements
14 | * <nvd3-line>
15 | * <nvd3-line-with-focus>
16 | * <nvd3-pie>
17 | * <nvd3-donut>
18 | * <nvd3-scatter>
19 | * <nvd3-bullet>
20 | * <nvd3-discrete-bar>
21 | * <nvd3-stacked-area>
22 | * <nvd3-multi-bar>
23 | * <nvd3-multi-bar-horizontal>
24 | * <nvd3-cumulative-line>
25 | * <nvd3-sunburst>
26 |
27 | ## Demo and Options
28 | See the [component page](http://saeidzebardast.github.io/nvd3-elements) for demo and options.
29 |
30 | ## Events
31 | You could create listeners for all NVD3 events. Please check [NVD3 documentation](http://nvd3-community.github.io/nvd3/examples/documentation.html) for events list of each chart.
32 |
33 | ## License
34 |
35 | MIT © [Saeid Zebardast](http://zebardast.com)
36 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/demo/nvd3-discrete-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-discrete-bar Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | An example of
16 | <nvd3-discrete-bar>:
17 |
18 |
19 |
20 |
21 |
22 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/nvd3-bullet.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
64 |
65 |
--------------------------------------------------------------------------------
/test/basic-nvd3-behavior.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
51 |
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/test/index.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/demo/nvd3-pie.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-pie Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | An example of
16 | <nvd3-pie>:
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/demo/nvd3-donut.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-donut Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | An example of
19 | <nvd3-donut>:
20 |
21 |
22 |
23 |
24 |
30 |
31 |
65 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nvd3-elements",
3 | "version": "0.21.0",
4 | "homepage": "https://github.com/saeidzebardast/nvd3-elements",
5 | "authors": [
6 | "Saeid Zebardast "
7 | ],
8 | "description": "NVD3 charts elements for Polymer.",
9 | "main": "nvd3-elements.html",
10 | "moduleType": [],
11 | "keywords": [
12 | "web-component",
13 | "web-components",
14 | "polymer",
15 | "nvd3",
16 | "d3",
17 | "chart",
18 | "graph"
19 | ],
20 | "license": "MIT",
21 | "ignore": [
22 | "**/.*",
23 | "node_modules",
24 | "bower_components",
25 | "test",
26 | "tests"
27 | ],
28 | "dependencies": {
29 | "polymer": "Polymer/polymer#1.9 - 2",
30 | "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#1 - 2",
31 | "nvd3": "~1.8.1"
32 | },
33 | "devDependencies": {
34 | "iron-component-page": "PolymerElements/iron-component-page#1 - 3",
35 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#1 - 2",
36 | "iron-test-helpers": "PolymerElements/iron-test-helpers#1 - 2",
37 | "web-component-tester": "^6.0.0",
38 | "webcomponentsjs": "webcomponents/webcomponentsjs#^1.0.0"
39 | },
40 | "variants": {
41 | "1.x": {
42 | "dependencies":{
43 | "polymer": "Polymer/polymer#^1.9",
44 | "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.6",
45 | "nvd3": "~1.8.1"
46 | },
47 | "devDependencies": {
48 | "github-fork-ribbon": "^0.2.3",
49 | "iron-component-page": "PolymerElements/iron-component-page#^1.1.9",
50 | "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.2.5",
51 | "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
52 | "web-component-tester": "^4.0.0",
53 | "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
54 | },
55 | "resolutions":{
56 | "webcomponentsjs": "^0.7"
57 | }
58 | }
59 | },
60 | "resolutions": {
61 | "webcomponentsjs": "^1.0.0"
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/nvd3-scatter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
50 |
51 |
52 |
53 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
95 |
96 |
--------------------------------------------------------------------------------
/test/basic-nvd3-bullet.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/test/basic-nvd3-sunburst.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/test/basic-nvd3-discrete-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
70 |
71 |
72 |
73 |
74 |
--------------------------------------------------------------------------------
/demo/nvd3-multi-bar-horizontal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-multi-bar-horizontal Demo
9 |
10 |
11 |
17 |
18 |
19 |
20 |
21 | An example of
22 | <nvd3-multi-bar-horizontal>:
23 |
24 |
25 |
26 |
27 |
28 |
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/nvd3-multi-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
115 |
116 |
--------------------------------------------------------------------------------
/test/basic-nvd3-scatter.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/test/basic-nvd3-multi-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/test/basic-nvd3-multi-bar-horizontal.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
80 |
81 |
82 |
83 |
84 |
--------------------------------------------------------------------------------
/test/basic-nvd3-line-with-focus.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
86 |
87 |
88 |
89 |
90 |
--------------------------------------------------------------------------------
/nvd3-multi-bar-horizontal.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
119 |
120 |
--------------------------------------------------------------------------------
/test/basic-nvd3-line.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/test/basic-nvd3-stacked-area.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/test/basic-nvd3-cumulative-line.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/test/basic-nvd3-donut.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
95 |
96 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/nvd3-discrete-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
143 |
--------------------------------------------------------------------------------
/nvd3-tooltip-styles.html:
--------------------------------------------------------------------------------
1 |
138 |
--------------------------------------------------------------------------------
/nvd3-stacked-area.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
57 |
58 |
59 |
60 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
150 |
151 |
--------------------------------------------------------------------------------
/demo/nvd3-cumulative-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-cumulative-line Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | Examples of
16 | <nvd3-cumulative-line>:
17 |
18 | Simple chart
19 |
20 |
21 |
22 | Chart with custom X Axis labels
23 |
24 |
25 |
26 |
148 |
149 |
150 |
151 |
--------------------------------------------------------------------------------
/test/basic-nvd3-pie.html:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
108 |
109 |
110 |
111 |
112 |
--------------------------------------------------------------------------------
/demo/nvd3-multi-bar.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-multi-bar Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | An example of
16 | <nvd3-multi-bar>:
17 |
18 |
19 |
20 |
159 |
160 |
161 |
162 |
--------------------------------------------------------------------------------
/nvd3-cumulative-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
159 |
160 |
--------------------------------------------------------------------------------
/nvd3-sunburst.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
136 |
137 |
--------------------------------------------------------------------------------
/nvd3-line-with-focus.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
181 |
182 |
--------------------------------------------------------------------------------
/demo/nvd3-stacked-area.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-stacked-area Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | Examples of
16 | <nvd3-stacked-area>:
17 |
18 | Simple chart
19 |
20 |
21 |
22 | Chart with custom X Axis labels
23 |
24 |
25 |
26 |
178 |
179 |
180 |
181 |
--------------------------------------------------------------------------------
/nvd3-line.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
211 |
--------------------------------------------------------------------------------
/nvd3-pie.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
35 |
36 |
37 |
38 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
226 |
227 |
--------------------------------------------------------------------------------
/nvd3-donut.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
36 |
37 |
38 |
39 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
263 |
264 |
--------------------------------------------------------------------------------
/nvd3-behavior.html:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
386 |
--------------------------------------------------------------------------------
/nvd3-shared-styles.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
551 |
552 |
553 |
--------------------------------------------------------------------------------
/demo/nvd3-line-with-focus.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-line-with-focus Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 | Examples of
16 | <nvd3-line-with-focus>:
17 |
18 | Simple chart
19 |
20 |
21 |
22 | Chart with custom X Axis labels
23 |
24 |
25 |
687 |
688 |
689 |
690 |
--------------------------------------------------------------------------------
/demo/nvd3-scatter.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | nvd3-scatter Demo
8 |
9 |
10 |
16 |
17 |
18 |
19 | An example of <nvd3-scatter>:
20 |
21 |
22 |
23 |
365 |
366 |
367 |
368 |
--------------------------------------------------------------------------------
/demo/nvd3-sunburst.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | nvd3-sunburst Demo
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | An example of
19 | <nvd3-sunburst>:
20 |
21 |
22 |
23 |
29 |
30 |
415 |
416 |
417 |
418 |
419 |
--------------------------------------------------------------------------------