forked from predixdesignsystem/px-vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
376 lines (332 loc) · 21.3 KB
/
index.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>px-vis</title>
<link rel="stylesheet" type="text/css" href="css/px-vis-demo.css"/>
<!-- Import custom element. Note: see comment about relative paths to dependencies in the *.html file referenced below -->
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../px-theme/px-theme-styles.html">
<style include="px-theme-styles" is="custom-style"></style>
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<link rel="import" href="../px-demo-snippet/px-demo-snippet.html"/>
<link rel="import" href="../px-polymer-font-awesome/polymer-font-awesome.html" />
<link rel="import" href="../px-datetime-common/px-datetime-imports.html">
<link rel="import" href="../px-api-viewer/px-api-viewer.html" />
<link rel="import" href="demos/px-vis-svg-demo.html">
<link rel="import" href="demos/px-vis-scale-demo.html">
<link rel="import" href="demos/px-vis-line-svg-demo.html">
<link rel="import" href="demos/px-vis-scatter-demo.html">
<link rel="import" href="demos/px-vis-axis-x-demo.html">
<link rel="import" href="demos/px-vis-axis-y-demo.html">
<link rel="import" href="demos/px-vis-gridlines-x-demo.html">
<link rel="import" href="demos/px-vis-gridlines-y-demo.html">
<link rel="import" href="demos/px-vis-event-demo.html">
<link rel="import" href="demos/px-vis-threshold-demo.html">
<link rel="import" href="demos/px-vis-interaction-space-demo.html">
<link rel="import" href="demos/px-vis-cursor-demo.html">
<link rel="import" href="demos/px-vis-register-horizontal-demo.html">
<link rel="import" href="demos/px-vis-register-vertical-demo.html">
<link rel="import" href="demos/px-vis-register-dynamic-demo.html">
<link rel="import" href="demos/px-vis-tooltip-demo.html">
<link rel="import" href="demos/px-vis-zoom-demo.html">
<link rel="import" href="demos/px-vis-chart-navigator-demo.html">
<link rel="import" href="demos/px-vis-data-converter-demo.html">
</head>
<body>
<!-- Wrap elements with auto-binding template to -->
<!-- allow use of Polymer bindings in main document -->
<!-- discription -->
<div class="hero u-p++ text--shadow" id="px-vis-anchor">
<a class="actionable flex flex--right flex--middle" href="https://github.com/PredixDev/px-vis" target="_blank"><iron-icon class="menu__open" icon="fa:fa-github"></iron-icon>View on Github</a>
<h1 class="delta">px-vis</h1>
<div class="description-text">
<p>
px-vis is a visualzation framework.
</p>
<p>It is a set of base components to provide the ability to create charts. These components come "wrapped" into charts in px-vis-[[chartType]] repos. These base components can be used to create custom chart types and/or mixed with standard d3 methods.</p>
<p>At a very least, all charts need an svg component, an interpretor component, such as scale, and a drawing component.</p>
<p>All components are built to support the Precipitation Pattern. Declarative bindings also work.</p>
</div>
<div class="flex">
<img class="u-mr--" src="https://img.shields.io/travis/PredixDev/px-vis/master.svg?style=flat-square" alt="Travis" onerror="this.style.display='none'"/>
<img class="u-mr--" src="https://img.shields.io/bower/v/px-vis.svg?style=flat-square" alt="Bower" onerror="this.style.display='none'"/>
<img class="u-mr--" src="https://img.shields.io/github/issues-raw/PredixDev/px-vis.svg?style=flat-square" alt="Issues" onerror="this.style.display='none'"/>
</div>
<div class="u-mt jump-nav">
<a href="#px-vis-svg-anchor" class="actionable">px-vis-svg</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-scale-anchor" class="actionable">px-vis-scale</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-line-svg-anchor" class="actionable">px-vis-line-svg</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-scatter-anchor" class="actionable">px-vis-scatter</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-axis-x-anchor" class="actionable">px-vis-axis: x-axis</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-axis-y-anchor" class="actionable">px-vis-axis: y-axis</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-gridlines-y-anchor" class="actionable">px-vis-gridlines: x-axis</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-gridlines-x-anchor" class="actionable">px-vis-gridlines: y-axis</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-event-anchor" class="actionable">px-vis-event</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-threshold-anchor" class="actionable">px-vis-threshold</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-interaction-space-anchor" class="actionable">px-vis-interaction-space</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-cursor-anchor" class="actionable">px-vis-cursor</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-register-horizontal-anchor" class="actionable">px-vis-register: horizontal</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-register-vertical-anchor" class="actionable">px-vis-register: vertical</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-register-dynamic-anchor" class="actionable">px-vis-register: dynamic</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-tooltip-anchor" class="actionable">px-vis-tooltip</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-zoom-anchor" class="actionable">px-vis-zoom</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-chart-navigator-anchor" class="actionable">px-vis-chart-navigator</a> <br/>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a><br/>-->
<a href="#px-vis-data-converter-anchor" class="actionable">px-vis-data-converter</a>
<!--<a href="px-vis-api-svg.html" class="actionable" target="_blank"> (API Documentation)</a>-->
</div>
</div>
<!-- mega demo -->
<div class="mega-demo u-p++">
<!--px-vis-svg-->
<p id="px-vis-svg-anchor" class="epsilon demo__title">px-vis-svg</p>
<div class="demo u-p+">
<px-vis-svg-demo></px-vis-svg-demo>
<div class="demo__discription">
<p class="u-mt0"><strong>All charts need a drawing space SVG component.</strong> These <strong>cannot be seen</strong> but provide the basic framework for drawing objects to be displayed.</p>
<p>The svg component provides the drawing space and d3 instantiated drawing object.</p>
<p>The svg component returns an 'svg' variable to be passed into drawing components.</p>
<p style="oblique">Note: All the subsequent charts will have this component, but they will not be shown in the code snippet.</p>
<a href="px-vis-api-svg.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-scale-->
<p id="px-vis-scale-anchor" class="epsilon demo__title">px-vis-scale</p>
<div class="demo u-p+">
<px-vis-scale-demo></px-vis-scale-demo>
<div class="demo__discription">
<p class="u-mt0"><strong>All charts need an interpretor component.</strong> These <strong>cannot be seen</strong> but provide the basic framework for drawing objects to be displayed.</p>
<p>Interpretor components convert data into drawing space coordinates.</p>
<p>The scale component creates 'x' & 'y' and 'currentDomainX' & 'currentDomainY' variables which can be passed into drawing components.</p>
<p style="oblique">Note: All the subsequent charts will have this component, but they will not be shown in the code snippet.</p>
<a href="px-vis-api-scale.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-line-svg-->
<p id="px-vis-line-svg-anchor" class="epsilon demo__title">px-vis-line-svg</p>
<div class="demo u-p+">
<px-vis-line-svg-demo></px-vis-line-svg-demo>
<div class="demo__discription">
<p class="u-mt0">Example of a line drawing object. Bound elements are set from other components, such as px-vis-svg and px-vis-scale, and passed into px-vis-line-svg.</p>
<a href="px-vis-api-line-svg.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-scatter-->
<p id="px-vis-scatter-anchor" class="epsilon demo__title">px-vis-scatter</p>
<div class="demo u-p+">
<px-vis-scatter-demo></px-vis-scatter-demo>
<div class="demo__discription">
<p class="u-mt0">Example of a scatter drawing object. Very similar configuration to px-vis-line-svg.</p>
<a href="px-vis-api-scatter.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-axis-x-->
<p id="px-vis-axis-x-anchor" class="epsilon demo__title">px-vis-axis: x-axis</p>
<div class="demo u-p+">
<px-vis-axis-x-demo></px-vis-axis-x-demo>
<div class="demo__discription">
<p class="u-mt0">Example of an axis drawing object. </p>
<p>The axis drawing object can draw both x and y axis. This example draws an x-axis.</p>
<a href="px-vis-api-axis-x.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-axis-y-->
<p id="px-vis-axis-y-anchor" class="epsilon demo__title">px-vis-axis: y-axis</p>
<div class="demo u-p+">
<px-vis-axis-y-demo></px-vis-axis-y-demo>
<div class="demo__discription">
<p class="u-mt0">Example of an axis drawing object. </p>
<p>The axis drawing object can draw both x and y axis. This example draws an y-axis.</p>
<a href="px-vis-api-axis-y.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-gridlines-x-->
<p id="px-vis-gridlines-x-anchor" class="epsilon demo__title">px-vis-gridlines: x-axis</p>
<div class="demo u-p+">
<px-vis-gridlines-x-demo></px-vis-gridlines-x-demo>
<div class="demo__discription">
<p class="u-mt0">Chart gridlines can be added to either the x or the y axis.</p>
<a href="px-vis-api-gridlines-x.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-gridlines-y-->
<p id="px-vis-gridlines-y-anchor" class="epsilon demo__title">px-vis-gridlines: y-axis</p>
<div class="demo u-p+">
<px-vis-gridlines-y-demo></px-vis-gridlines-y-demo>
<div class="demo__discription">
<p class="u-mt0">Chart gridlines can be added to either the x or the y axis.</p>
<a href="px-vis-api-gridlines-y.html" class="actionable" target="_blank">API Documentation</a>
</div>
</div>
<br/>
<!--px-vis-event-->
<p id="px-vis-event-anchor" class="epsilon demo__title">px-vis-event</p>
<div class="demo u-p+">
<px-vis-event-demo></px-vis-event-demo>
<div class="demo__discription">
<p class="u-mt0">Chart events use their own dataset. A vertical line is drawn at the x-coordinate and an icon above.</p>
<p>A configuration object can be applied to associate the event label with a desired icon, color, and position. If no configuration is set for a label, a default icon and color are applied.</p>
<p class="u-mb0">The icons can either be a: </p>
<ul class="list-bare u-ml">
<li>Font Awesome class name, e.g. 'fa-camera'</li>
<li>Font Awesome unicode, e.g. '\uf015' </li>
<li>url to an image file; png, jpg, gif all work</li>
</ul>
<p>The colors are px-colors-design colors. </p>
<p class="u-mb0">Since each icon / image have a different center point, you may need to specify an offset to center the icon above the line. The offset is a two element array consisiting of an x and y value, '[x,y]'. For images, you'll also have to specify a size </p>
<p><a href="px-vis-api-event.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-threshold-->
<p id="px-vis-threshold-anchor" class="epsilon demo__title">px-vis-threshold</p>
<div class="demo u-p+">
<px-vis-threshold-demo></px-vis-threshold-demo>
<div class="demo__discription">
<p class="u-mt0">Chart threshold provide horizonal lines across the chart.</p>
<p>A default color is used if no 'color' is specified (or if the color does not match a series name). When a valid 'color' is given the threshold color will match that of the series.</p>
<p>The demo chart shows both, one threshold with a valid 'color' and one with no 'color'.</p>
<p><a href="px-vis-api-threshold.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-interaction-space-->
<p id="px-vis-interaction-space-anchor" class="epsilon demo__title">px-vis-interaction-space</p>
<div class="demo u-p+">
<px-vis-interaction-space-demo></px-vis-interaction-space-demo>
<div class="demo__discription">
<p class="u-mt0">The interaction-space provides the basis for all on-chart interaction. It detects mouseovers on the chart and builds the data objects which other components then consume.</p>
<p><a href="px-vis-api-interaction-space.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-cursor-->
<p id="px-vis-cursor-anchor" class="epsilon demo__title">px-vis-cursor</p>
<div class="demo u-p+">
<px-vis-cursor-demo></px-vis-cursor-demo>
<div class="demo__discription">
<p class="u-mt0">The cursor provides an on-chart reticule on-hover. Hover your mouse over the chart to see it in action. Cursor requires a <strong>px-vis-interaction-space</strong> which provides the mouseover data.</p>
<p><a href="px-vis-api-cursor.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-register-horizontal-->
<p id="px-vis-register-horizontal-anchor" class="epsilon demo__title">px-vis-register: horizontal</p>
<div class="demo u-p+">
<px-vis-register-horizontal-demo></px-vis-register-horizontal-demo>
<div class="demo__discription">
<p class="u-mt0">The register displays data from the chart on mouseover. There are two options, a horizontal version for placement above or below the chart, or a vertical version for placement to the right or left of the chart. It must be paired with <strong>px-vis-interaction-space</strong> which provides the mouseover capabilities. Clicking on a series name on the register adds that series to the mutedSeries property. Series on the chart can listen to this property to toggle series on and off.</p>
<p><a href="px-vis-api-register-horizontal.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-register-vertical-->
<p id="px-vis-register-vertical-anchor" class="epsilon demo__title">px-vis-register: vertical</p>
<div class="demo u-p+">
<px-vis-register-vertical-demo></px-vis-register-vertical-demo>
<div class="demo__discription">
<p class="u-mt0">The register displays data from the chart on mouseover. There are two options, a horizonal version for placement above or below the chart, or a vertical version for placement to the right or left of the chart. It must be paired with <strong>px-vis-interaction-space</strong> which provides the mouseover capabilities. Clicking on a series name on the register adds that series to the mutedSeries property. Series on the chart can listen to this property to toggle series on and off.</p>
<p><a href="px-vis-api-register-vertical.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-register-dynamic-->
<p id="px-vis-register-dynamic-anchor" class="epsilon demo__title">px-vis-register: dynamic</p>
<div class="demo u-p+">
<px-vis-register-dynamic-demo></px-vis-register-dynamic-demo>
<div class="demo__discription">
<p class="u-mt0">Example of a live register tied to an interaction-space. Hover over the chart to see values update.</p>
<p>Click the series name to see the line mute. There are two options, a horizontal version for placement above or below the chart, or a vertical version for placement to the right or left of the chart. Series on the chart can listen to this property to toggle series on and off.</p>
<p><a href="px-vis-api-register-dynamic.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-tooltip-->
<p id="px-vis-tooltip-anchor" class="epsilon demo__title">px-vis-tooltip</p>
<div class="demo u-p+">
<px-vis-tooltip-demo></px-vis-tooltip-demo>
<div class="demo__discription">
<p class="u-mt0">The tooltip provides similar data display functionality to the register, but on chart and without the user interaction.</p>
<p><a href="px-vis-api-tooltip.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-zoom-->
<p id="px-vis-zoom-anchor" class="epsilon demo__title">px-vis-zoom</p>
<div class="demo u-p+">
<px-vis-zoom-demo></px-vis-zoom-demo>
<div class="demo__discription">
<p class="u-mt0">The on-chart zoom action. It requires the px-vis-interaction-space. Click and drag on the chart to see.</p>
<p><a href="px-vis-api-zoom.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-chart-navigator-->
<p id="px-vis-chart-navigator-anchor" class="epsilon demo__title">px-vis-chart-navigator</p>
<div class="demo u-p+">
<px-vis-chart-navigator-demo></px-vis-chart-navigator-demo>
<div class="demo__discription">
<p class="u-mt0">Example of a chart-navigator drawing object. Very similar configuration to px-vis-line-svg.</p>
<p><a href="px-vis-api-chart-navigator.html" class="actionable" target="_blank">API Documentation</a></p>
</div>
</div>
<br/>
<!--px-vis-data-converter-->
<p id="px-vis-data-converter-anchor" class="epsilon demo__title">px-vis-data-converter</p>
<div class="demo u-p+">
<div>
<p class="u-mt0"> px-vis-data-converter converts data from the timeseries service to the schema required by the vis framework.</p>
<p class="u-pb++"><a href="px-vis-api-data-converter.html" class="actionable" target="_blank">API Documentation</a></p>
<px-vis-data-converter-demo></px-vis-data-converter-demo>
</div>
</div>
<br/>
</div>
<footer class="footer flex flex--center">
<div class="footer__container u-pv++">
<div>
<a href="https://ge.com/digital" >
<img src="monogram-wdmk.png" alt="GE Monogram" class="footer__img">
</a>
</div>
<div class="footer__list">
<ul class="list-inline list-inline--delimited">
<li>
<a href="http://predix.io/legal" class="footer__list--lnk">Legal</a>
</li>
<li>
<a href="mailto:[email protected]" class="footer__list--lnk">Contact Us</a>
</li>
<li>Copyright © 2016 General Electric Company. All rights reserved.</li>
</ul>
</div>
</div>
</footer>
</body>
</html>