├── README.md ├── bower.json ├── bower_components ├── d3 │ ├── .bower.json │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── d3.js │ └── d3.min.js ├── dagre-d3 │ ├── .bower.json │ ├── LICENSE │ ├── bower.json │ ├── demo │ │ ├── arrows.html │ │ ├── clusters.html │ │ ├── demo.css │ │ ├── demo.js │ │ ├── dom.html │ │ ├── etl-status.html │ │ ├── graph-story-board.html │ │ ├── hover.html │ │ ├── interactive-demo.html │ │ ├── sentence-tokenization.html │ │ ├── shapes.html │ │ ├── style-attrs.html │ │ ├── svg-labels.html │ │ ├── tcp-state-diagram.html │ │ ├── tipsy.css │ │ ├── tipsy.js │ │ └── user-defined.html │ ├── dist │ │ ├── dagre-d3.core.js │ │ ├── dagre-d3.core.min.js │ │ └── dagre-d3.core.min.js.map │ └── gulpfile.js ├── dagre │ ├── .bower.json │ ├── LICENSE │ ├── bower.json │ └── dist │ │ ├── dagre.core.js │ │ └── dagre.core.min.js ├── graphlib │ ├── .bower.json │ ├── LICENSE │ ├── bower.json │ └── dist │ │ ├── graphlib.core.js │ │ └── graphlib.core.min.js ├── lodash │ ├── .bower.json │ ├── LICENSE │ ├── bower.json │ ├── lodash.js │ └── lodash.min.js ├── vega-editor │ ├── .bower.json │ ├── .gitignore │ ├── app │ │ ├── annotation.js │ │ ├── data │ │ │ ├── 7zip.png │ │ │ ├── airports.csv │ │ │ ├── anscombe.json │ │ │ ├── barley.json │ │ │ ├── birdstrikes.json │ │ │ ├── budget.json │ │ │ ├── budgets.json │ │ │ ├── burtin.json │ │ │ ├── cars.json │ │ │ ├── climate.json │ │ │ ├── countries.json │ │ │ ├── crimea.json │ │ │ ├── driving.json │ │ │ ├── ffox.png │ │ │ ├── flare.json │ │ │ ├── flights-10k.json │ │ │ ├── flights-20k.json │ │ │ ├── flights-2k.json │ │ │ ├── flights-3m.csv │ │ │ ├── flights-5k.json │ │ │ ├── flights-airport.csv │ │ │ ├── gapminder.json │ │ │ ├── gimp.png │ │ │ ├── iris.json │ │ │ ├── jobs.json │ │ │ ├── miserables.json │ │ │ ├── monarchs.json │ │ │ ├── movies.json │ │ │ ├── points.json │ │ │ ├── population.json │ │ │ ├── seattle-temps.csv │ │ │ ├── seattle-weather.csv │ │ │ ├── sf-temps.csv │ │ │ ├── sp500.csv │ │ │ ├── stocks.csv │ │ │ ├── unemployment-across-industries.json │ │ │ ├── unemployment.tsv │ │ │ ├── us-10m.json │ │ │ ├── weather.json │ │ │ ├── weball26.json │ │ │ ├── wheat.json │ │ │ └── world-110m.json │ │ ├── datasets.js │ │ ├── debugger.css │ │ ├── debugger.js │ │ ├── editor.css │ │ ├── editor.js │ │ ├── model.js │ │ ├── overview.js │ │ ├── spec │ │ │ ├── vega-lite │ │ │ │ ├── 1d_bar.json │ │ │ │ ├── agg_bar.json │ │ │ │ ├── area.json │ │ │ │ ├── area_vertical.json │ │ │ │ ├── bar.json │ │ │ │ ├── bar_1d.json │ │ │ │ ├── bar_aggregate.json │ │ │ │ ├── bar_aggregate_size.json │ │ │ │ ├── bar_aggregate_vertical.json │ │ │ │ ├── bar_filter_calc.json │ │ │ │ ├── bar_grouped.json │ │ │ │ ├── bar_grouped_horizontal.json │ │ │ │ ├── bar_layered_transparent.json │ │ │ │ ├── bar_log.json │ │ │ │ ├── bar_yearmonth.json │ │ │ │ ├── barley.json │ │ │ │ ├── binned_scatter.json │ │ │ │ ├── circle.json │ │ │ │ ├── filtered_bar.json │ │ │ │ ├── grouped_bar.json │ │ │ │ ├── heatmap.json │ │ │ │ ├── histogram.json │ │ │ │ ├── horsepower.json │ │ │ │ ├── line.json │ │ │ │ ├── line_color.json │ │ │ │ ├── line_detail.json │ │ │ │ ├── line_monotone.json │ │ │ │ ├── line_month.json │ │ │ │ ├── line_slope.json │ │ │ │ ├── line_step.json │ │ │ │ ├── movie_ratings.json │ │ │ │ ├── point_1d.json │ │ │ │ ├── point_color.json │ │ │ │ ├── point_dot_timeunit_color.json │ │ │ │ ├── point_filled.json │ │ │ │ ├── point_ordinal_color.json │ │ │ │ ├── scatter.json │ │ │ │ ├── scatter_aggregate_detail.json │ │ │ │ ├── scatter_binned.json │ │ │ │ ├── scatter_binned_axes.json │ │ │ │ ├── scatter_binned_color.json │ │ │ │ ├── scatter_binned_size.json │ │ │ │ ├── scatter_bubble.json │ │ │ │ ├── scatter_color.json │ │ │ │ ├── scatter_color_custom.json │ │ │ │ ├── scatter_color_order.json │ │ │ │ ├── scatter_color_ordinal.json │ │ │ │ ├── scatter_color_ordinal_custom.json │ │ │ │ ├── scatter_color_quantitative.json │ │ │ │ ├── scatter_color_shape_constant.json │ │ │ │ ├── scatter_colored_with_shape.json │ │ │ │ ├── scatter_connected.json │ │ │ │ ├── scatter_log.json │ │ │ │ ├── square.json │ │ │ │ ├── stacked_area.json │ │ │ │ ├── stacked_area_normalize.json │ │ │ │ ├── stacked_area_ordinal.json │ │ │ │ ├── stacked_area_stream.json │ │ │ │ ├── stacked_bar.json │ │ │ │ ├── stacked_bar_1d.json │ │ │ │ ├── stacked_bar_h.json │ │ │ │ ├── stacked_bar_h_order.json │ │ │ │ ├── stacked_bar_normalize.json │ │ │ │ ├── stacked_bar_population.json │ │ │ │ ├── stacked_bar_v.json │ │ │ │ ├── stacked_bar_weather.json │ │ │ │ ├── stacked_histogram.json │ │ │ │ ├── tableheatmap.json │ │ │ │ ├── text_scatter_colored.json │ │ │ │ ├── text_table_heatmap.json │ │ │ │ ├── tick.json │ │ │ │ ├── tick_dot.json │ │ │ │ ├── tick_dot_thickness.json │ │ │ │ ├── tick_strip.json │ │ │ │ ├── trellis_area.json │ │ │ │ ├── trellis_bar.json │ │ │ │ ├── trellis_bar_histogram.json │ │ │ │ ├── trellis_barley.json │ │ │ │ ├── trellis_row_column.json │ │ │ │ ├── trellis_scatter.json │ │ │ │ ├── trellis_scatter_binned_row.json │ │ │ │ └── trellis_stacked_bar.json │ │ │ └── vega │ │ │ │ ├── airports-params.json │ │ │ │ ├── airports.json │ │ │ │ ├── arc.json │ │ │ │ ├── area.json │ │ │ │ ├── bar.json │ │ │ │ ├── barley.json │ │ │ │ ├── brush.json │ │ │ │ ├── budget_forecasts.json │ │ │ │ ├── choropleth.json │ │ │ │ ├── crossfilter.json │ │ │ │ ├── dimpvis.json │ │ │ │ ├── driving.json │ │ │ │ ├── error.json │ │ │ │ ├── falkensee.json │ │ │ │ ├── force-params.json │ │ │ │ ├── force.json │ │ │ │ ├── force_drag.json │ │ │ │ ├── grouped_bar.json │ │ │ │ ├── heatmap.json │ │ │ │ ├── horizon.json │ │ │ │ ├── image.json │ │ │ │ ├── index_chart.json │ │ │ │ ├── jobs-params.json │ │ │ │ ├── jobs.json │ │ │ │ ├── lifelines.json │ │ │ │ ├── linking.json │ │ │ │ ├── map-params.json │ │ │ │ ├── map.json │ │ │ │ ├── overview+detail.json │ │ │ │ ├── panzoom_points.json │ │ │ │ ├── parallel_coords.json │ │ │ │ ├── playfair.json │ │ │ │ ├── population.json │ │ │ │ ├── reorder_matrix.json │ │ │ │ ├── scatter_matrix.json │ │ │ │ ├── shiftclick_select.json │ │ │ │ ├── stacked_area.json │ │ │ │ ├── stacked_bar.json │ │ │ │ ├── stocks.json │ │ │ │ ├── tooltip.json │ │ │ │ ├── treemap.json │ │ │ │ ├── weather.json │ │ │ │ └── wordcloud.json │ │ ├── specs.js │ │ ├── template.html │ │ ├── timeline.js │ │ ├── vega-specs.js │ │ └── vl-specs.js │ ├── images │ │ ├── chevron_down.png │ │ └── chevron_up.png │ ├── index.html │ └── vendor │ │ ├── ace │ │ ├── ace.js │ │ ├── ext-searchbox.js │ │ ├── mode-json.js │ │ └── worker-json.js │ │ ├── d3.geo.projection.min.js │ │ ├── d3.layout.cloud.js │ │ ├── d3.min.js │ │ ├── json3-compactstringify.js │ │ ├── topojson.js │ │ ├── vega-embed-schema.json │ │ ├── vega-embed.js │ │ ├── vega-embed.min.js │ │ ├── vega-lite-schema.json │ │ ├── vega-lite.js │ │ ├── vega-lite.js.map │ │ ├── vega-lite.min.js │ │ ├── vega-lite.min.js.map │ │ ├── vega-schema.json │ │ ├── vega.js │ │ ├── vega.js.map │ │ └── vega.min.js └── vega │ ├── .bower.json │ ├── .jshintignore │ ├── LICENSE │ ├── README.md │ ├── bower.json │ ├── package.json │ ├── vega-schema.json │ ├── vega.js │ ├── vega.js.map │ └── vega.min.js ├── data ├── 7zip.png ├── airports.csv ├── anscombe.json ├── barley.json ├── birdstrikes.json ├── budget.json ├── budgets.json ├── burtin.json ├── cars.json ├── climate.json ├── countries.json ├── crimea.json ├── driving.json ├── ffox.png ├── flare.json ├── flights-10k.json ├── flights-20k.json ├── flights-2k.json ├── flights-3m.csv ├── flights-5k.json ├── flights-airport.csv ├── gapminder.json ├── gimp.png ├── iris.json ├── jobs.json ├── miserables.json ├── monarchs.json ├── movies.json ├── points.json ├── population.json ├── seattle-temps.csv ├── seattle-weather.csv ├── sf-temps.csv ├── sp500.csv ├── stocks.csv ├── unemployment-across-industries.json ├── unemployment.tsv ├── us-10m.json ├── weather.json ├── weball26.json ├── wheat.json └── world-110m.json ├── index.html ├── main.js ├── screenshot.png ├── style.css └── vendor.sh /README.md: -------------------------------------------------------------------------------- 1 | # Vega Dataflow Visualizations 2 | 3 | **Experimental. Proceed with caution.** 4 | 5 | [Open application](https://vega.github.io/dataflow-vis/) and explore Vega dataflow graphs. 6 | 7 | This visualizations shows the Vega dataflow graph after parsing. You can click on a node to see the node object in the developer console. 8 | 9 | ![screenshot](https://raw.githubusercontent.com/vega/dataflow-vis/gh-pages/screenshot.png "Screenshot") 10 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vg-graph", 3 | "main": "index.js", 4 | "authors": [ 5 | "Dominik Moritz " 6 | ], 7 | "description": "", 8 | "moduleType": [], 9 | "license": "MIT", 10 | "homepage": "", 11 | "private": true, 12 | "ignore": [ 13 | "**/.*", 14 | "node_modules", 15 | "bower_components", 16 | "test", 17 | "tests" 18 | ], 19 | "dependencies": { 20 | "dagre-d3": "^0.4.17", 21 | "vega": "^2.5.2", 22 | "vega-editor": "https://github.com/vega/vega-editor/tarball/gh-pages" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /bower_components/d3/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "d3", 3 | "description": "A JavaScript visualization library for HTML and SVG.", 4 | "main": "d3.js", 5 | "license": "BSD-3-Clause", 6 | "ignore": [], 7 | "homepage": "https://github.com/mbostock-bower/d3-bower", 8 | "version": "3.5.17", 9 | "_release": "3.5.17", 10 | "_resolution": { 11 | "type": "version", 12 | "tag": "v3.5.17", 13 | "commit": "abe0262a205c9f3755c3a757de4dfd1d49f34b24" 14 | }, 15 | "_source": "https://github.com/mbostock-bower/d3-bower.git", 16 | "_target": "^3.3.8", 17 | "_originalSource": "d3" 18 | } -------------------------------------------------------------------------------- /bower_components/d3/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010-2016, Michael Bostock 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * The name Michael Bostock may not be used to endorse or promote products 15 | derived from this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 18 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT, 21 | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 24 | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /bower_components/d3/README.md: -------------------------------------------------------------------------------- 1 | # Data-Driven Documents 2 | 3 | 4 | 5 | **D3.js** is a JavaScript library for manipulating documents based on data. **D3** helps you bring data to life using HTML, SVG, and CSS. **D3** emphasizes web standards and combines powerful visualization components with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers without tying yourself to a proprietary framework. 6 | 7 | Want to learn more? [See the wiki.](https://github.com/mbostock/d3/wiki) 8 | 9 | For examples, [see the gallery](https://github.com/mbostock/d3/wiki/Gallery) and [mbostock’s bl.ocks](http://bl.ocks.org/mbostock). 10 | 11 | ## Good News, Everyone! 12 | 13 | The next major release of D3, 4.0, is coming! See the [4.0 development branch](https://github.com/mbostock/d3/tree/4) and read the [new API reference](https://github.com/mbostock/d3/blob/4/README.md) to get ready. 14 | -------------------------------------------------------------------------------- /bower_components/d3/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "d3", 3 | "description": "A JavaScript visualization library for HTML and SVG.", 4 | "main": "d3.js", 5 | "license": "BSD-3-Clause", 6 | "ignore": [] 7 | } 8 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dagre-d3", 3 | "version": "0.4.17", 4 | "main": [ 5 | "dist/dagre-d3.core.js" 6 | ], 7 | "ignore": [ 8 | ".*", 9 | "README.md", 10 | "CHANGELOG.md", 11 | "Makefile", 12 | "browser.js", 13 | "build/**", 14 | "dist/dagre-d3.js", 15 | "dist/dagre-d3.min.js", 16 | "dist/dagre-d3.min.js.map", 17 | "dist/demo/**", 18 | "index.js", 19 | "karma*", 20 | "lib/**", 21 | "package.json", 22 | "src/**", 23 | "test/**" 24 | ], 25 | "dependencies": { 26 | "d3": "^3.3.8", 27 | "dagre": "^0.7.3", 28 | "graphlib": "^1.0.5", 29 | "lodash": "^3.10.0" 30 | }, 31 | "homepage": "https://github.com/cpettitt/dagre-d3", 32 | "_release": "0.4.17", 33 | "_resolution": { 34 | "type": "version", 35 | "tag": "v0.4.17", 36 | "commit": "88bea485d5556382c1c50f7012d9ebd2ec5c270f" 37 | }, 38 | "_source": "https://github.com/cpettitt/dagre-d3.git", 39 | "_target": "^0.4.17", 40 | "_originalSource": "dagre-d3" 41 | } -------------------------------------------------------------------------------- /bower_components/dagre-d3/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Chris Pettitt 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dagre-d3", 3 | "version": "0.4.17", 4 | "main": [ 5 | "dist/dagre-d3.core.js" 6 | ], 7 | "ignore": [ 8 | ".*", 9 | "README.md", 10 | "CHANGELOG.md", 11 | "Makefile", 12 | "browser.js", 13 | "build/**", 14 | "dist/dagre-d3.js", 15 | "dist/dagre-d3.min.js", 16 | "dist/dagre-d3.min.js.map", 17 | "dist/demo/**", 18 | "index.js", 19 | "karma*", 20 | "lib/**", 21 | "package.json", 22 | "src/**", 23 | "test/**" 24 | ], 25 | "dependencies": { 26 | "d3": "^3.3.8", 27 | "dagre": "^0.7.3", 28 | "graphlib": "^1.0.5", 29 | "lodash": "^3.10.0" 30 | } 31 | } -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/arrows.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: Arrows 5 | 6 | 7 | 8 | 9 | 10 | 29 | 30 |

Dagre D3 Demo: Arrows

31 | 32 | 33 | 34 |
35 |

A sample that shows the different arrows available in dagre-d3. 36 |

37 | 38 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/clusters.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: Clusters 5 | 6 | 7 | 8 | 9 | 10 |

Dagre D3 Demo: Clusters

11 | 12 | 36 | 37 | 38 | 39 |
40 |

An example of visualizing clusters. This example shows 41 | how clusters can be applied to a rendered graph. 42 |

43 | 44 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/demo.css: -------------------------------------------------------------------------------- 1 | body { 2 | width: 960px; 3 | margin: 0 auto; 4 | color: #333; 5 | font-weight: 300; 6 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serf; 7 | } 8 | 9 | h1 { 10 | font-size: 3em; 11 | font-weight: 300; 12 | } 13 | 14 | h2 { 15 | font-size: 1.5em; 16 | font-weight: 300; 17 | } 18 | 19 | section { 20 | margin-bottom: 3em; 21 | } 22 | 23 | section p { 24 | text-align: justify; 25 | } 26 | 27 | svg { 28 | border: 1px solid #ccc; 29 | overflow: hidden; 30 | margin: 0 auto; 31 | } 32 | 33 | pre { 34 | border: 1px solid #ccc; 35 | } 36 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/demo.js: -------------------------------------------------------------------------------- 1 | var bodyElem = d3.select('body'), 2 | jsElem = d3.select('#js'), 3 | jsPanel = bodyElem.append('div').attr('id', 'jsPanel'); 4 | cssElem = d3.select('#css'), 5 | cssPanel = bodyElem.append('div').attr('id', 'cssPanel'); 6 | 7 | function setupPanel(panel, elem, title) { 8 | panel.append('h2').text(title); 9 | return panel.append('pre').append('code').text(elem.html().trim()); 10 | } 11 | 12 | var jsCode = setupPanel(jsPanel, jsElem, 'JavaScript'); 13 | var cssCode = setupPanel(cssPanel, cssElem, 'CSS'); 14 | 15 | var hljsRoot = 'http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1'; 16 | 17 | bodyElem.append('link') 18 | .attr('rel', 'stylesheet') 19 | .attr('href', hljsRoot + '/styles/xcode.min.css'); 20 | bodyElem.append('script') 21 | .attr('src', hljsRoot + '/highlight.min.js') 22 | .on('load', function() { 23 | hljs.highlightBlock(jsCode.node()); 24 | hljs.highlightBlock(cssCode.node()); 25 | }); 26 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/dom.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: DOM Example 5 | 6 | 7 | 8 | 9 | 10 |

Dagre D3 Demo: DOM Example

11 | 12 | 54 | 55 | 56 | 57 |
58 |

A sample showing how to use DOM nodes in a graph. Note that IE does not 59 | support this technique. 60 |

61 | 62 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/sentence-tokenization.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: Sentence Tokenization 5 | 6 | 7 | 8 | 9 | 10 |

Dagre D3 Demo: Sentence Tokenization

11 | 12 | 35 | 36 | 37 | 38 |
39 |

An example of visualizing the tokenization of a sentence. This example shows 40 | how CSS classes can be applied to a rendered graph. 41 |

42 | 43 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/shapes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: Shapes 5 | 6 | 7 | 8 | 9 | 10 | 30 | 31 |

Dagre D3 Demo: Shapes

32 | 33 | 34 | 35 |
36 |

A sample that shows the different node shapes available in dagre-d3. 37 |

38 | 39 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/style-attrs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: Style Attributes 5 | 6 | 7 | 8 | 9 | 10 |

Dagre D3 Demo: Style Attributes

11 | 12 | 38 | 39 | 40 | 41 |
42 |

An example showing how styles that are set in the input graph can be applied 43 | to nodes, node labels, edges, and edge labels in the rendered graph. 44 |

45 | 46 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/tcp-state-diagram.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: TCP State Diagram 5 | 6 | 7 | 8 | 9 | 10 | 26 | 27 |

Dagre D3 Demo: TCP State Diagram

28 | 29 | 30 | 31 |
32 |

A sample rendering of a TCP state diagram 33 | (RFC 793). This example 34 | shows how to set custom styles in the input graph and how to set a custom 35 | initial zoom. 36 |

37 | 38 | 104 | 105 | 106 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/tipsy.css: -------------------------------------------------------------------------------- 1 | .tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; } 2 | .tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; } 3 | 4 | /* Rounded corners */ 5 | .tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; } 6 | 7 | /* Uncomment for shadow */ 8 | .tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; } 9 | 10 | .tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; } 11 | 12 | /* Rules to colour arrows */ 13 | .tipsy-arrow-n { border-bottom-color: #000; } 14 | .tipsy-arrow-s { border-top-color: #000; } 15 | .tipsy-arrow-e { border-left-color: #000; } 16 | .tipsy-arrow-w { border-right-color: #000; } 17 | 18 | .tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; } 19 | .tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;} 20 | .tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent;} 21 | .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; } 22 | .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; } 23 | .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; } 24 | .tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; } 25 | .tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; } 26 | -------------------------------------------------------------------------------- /bower_components/dagre-d3/demo/user-defined.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Dagre D3 Demo: User-defined Shapes and Arrows 5 | 6 | 7 | 8 | 9 | 10 | 30 | 31 |

Dagre D3 Demo: User-defined Shapes and Arrows

32 | 33 | 34 | 35 |
36 |

An example that shows how to create and use user-defined shapes and arrows. 37 |

38 | 39 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /bower_components/dagre/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dagre", 3 | "version": "0.7.4", 4 | "main": [ 5 | "dist/dagre.core.js", 6 | "dist/dagre.core.min.js" 7 | ], 8 | "ignore": [ 9 | ".*", 10 | "README.md", 11 | "CHANGELOG.md", 12 | "Makefile", 13 | "dist/dagre.js", 14 | "dist/dagre.min.js", 15 | "index.js", 16 | "karma*", 17 | "lib/**", 18 | "package.json", 19 | "src/**", 20 | "test/**" 21 | ], 22 | "dependencies": { 23 | "graphlib": "^1.0.5", 24 | "lodash": "^3.10.0" 25 | }, 26 | "homepage": "https://github.com/cpettitt/dagre", 27 | "_release": "0.7.4", 28 | "_resolution": { 29 | "type": "version", 30 | "tag": "v0.7.4", 31 | "commit": "6c65e75ad68f29c924bd0cd8f2e855bb551c46ee" 32 | }, 33 | "_source": "https://github.com/cpettitt/dagre.git", 34 | "_target": "^0.7.3", 35 | "_originalSource": "dagre" 36 | } -------------------------------------------------------------------------------- /bower_components/dagre/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014 Chris Pettitt 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /bower_components/dagre/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "dagre", 3 | "version": "0.7.4", 4 | "main": [ 5 | "dist/dagre.core.js", 6 | "dist/dagre.core.min.js" 7 | ], 8 | "ignore": [ 9 | ".*", 10 | "README.md", 11 | "CHANGELOG.md", 12 | "Makefile", 13 | "dist/dagre.js", 14 | "dist/dagre.min.js", 15 | "index.js", 16 | "karma*", 17 | "lib/**", 18 | "package.json", 19 | "src/**", 20 | "test/**" 21 | ], 22 | "dependencies": { 23 | "graphlib": "^1.0.5", 24 | "lodash": "^3.10.0" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /bower_components/graphlib/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "graphlib", 3 | "version": "1.0.7", 4 | "main": [ 5 | "dist/graphlib.core.js" 6 | ], 7 | "ignore": [ 8 | ".*", 9 | "README.md", 10 | "CHANGELOG.md", 11 | "Makefile", 12 | "browser.js", 13 | "dist/graphlib.js", 14 | "dist/graphlib.min.js", 15 | "index.js", 16 | "karma*", 17 | "lib/**", 18 | "package.json", 19 | "src/**", 20 | "test/**" 21 | ], 22 | "dependencies": { 23 | "lodash": "^3.10.0" 24 | }, 25 | "homepage": "https://github.com/cpettitt/graphlib", 26 | "_release": "1.0.7", 27 | "_resolution": { 28 | "type": "version", 29 | "tag": "v1.0.7", 30 | "commit": "fbd547f8f19bd743a4344d385ee1ec37eb34279f" 31 | }, 32 | "_source": "https://github.com/cpettitt/graphlib.git", 33 | "_target": "^1.0.5", 34 | "_originalSource": "graphlib" 35 | } -------------------------------------------------------------------------------- /bower_components/graphlib/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2012-2014 Chris Pettitt 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /bower_components/graphlib/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "graphlib", 3 | "version": "1.0.7", 4 | "main": [ 5 | "dist/graphlib.core.js" 6 | ], 7 | "ignore": [ 8 | ".*", 9 | "README.md", 10 | "CHANGELOG.md", 11 | "Makefile", 12 | "browser.js", 13 | "dist/graphlib.js", 14 | "dist/graphlib.min.js", 15 | "index.js", 16 | "karma*", 17 | "lib/**", 18 | "package.json", 19 | "src/**", 20 | "test/**" 21 | ], 22 | "dependencies": { 23 | "lodash": "^3.10.0" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /bower_components/lodash/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash", 3 | "main": "lodash.js", 4 | "ignore": [ 5 | ".*", 6 | "*.custom.*", 7 | "*.log", 8 | "*.map", 9 | "*.md", 10 | "lodash.src.js", 11 | "component.json", 12 | "package.json", 13 | "doc", 14 | "node_modules", 15 | "perf", 16 | "test", 17 | "vendor" 18 | ], 19 | "homepage": "https://github.com/lodash/lodash", 20 | "version": "3.10.1", 21 | "_release": "3.10.1", 22 | "_resolution": { 23 | "type": "version", 24 | "tag": "3.10.1", 25 | "commit": "ef20b4290cc4fe7551c82a552ea7ffa76548eec8" 26 | }, 27 | "_source": "https://github.com/lodash/lodash.git", 28 | "_target": "^3.10.0", 29 | "_originalSource": "lodash" 30 | } -------------------------------------------------------------------------------- /bower_components/lodash/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2012-2015 The Dojo Foundation 2 | Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, 3 | DocumentCloud and Investigative Reporters & Editors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /bower_components/lodash/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lodash", 3 | "main": "lodash.js", 4 | "ignore": [ 5 | ".*", 6 | "*.custom.*", 7 | "*.log", 8 | "*.map", 9 | "*.md", 10 | "lodash.src.js", 11 | "component.json", 12 | "package.json", 13 | "doc", 14 | "node_modules", 15 | "perf", 16 | "test", 17 | "vendor" 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /bower_components/vega-editor/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vega-editor", 3 | "_cacheHeaders": { 4 | "ETag": "\"b7a2759f609d2d0b307199785d5ddf64f760e2bd\"", 5 | "Content-Type": "application/x-gzip", 6 | "Content-Disposition": "attachment; filename=vega-vega-editor-b7a2759.tar.gz" 7 | }, 8 | "_release": "e-tag:b7a2759f6", 9 | "_source": "https://github.com/vega/vega-editor/tarball/gh-pages", 10 | "_target": "*", 11 | "_originalSource": "https://github.com/vega/vega-editor/tarball/gh-pages" 12 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | _site 4 | coverage 5 | LICENSE 6 | node_modules 7 | package.json 8 | temp 9 | README.md 10 | scripts -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/7zip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/bower_components/vega-editor/app/data/7zip.png -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/anscombe.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"Series":"I", "X":10.0, "Y":8.04}, 3 | {"Series":"I", "X":8.0, "Y":6.95}, 4 | {"Series":"I", "X":13.0, "Y":7.58}, 5 | {"Series":"I", "X":9.0, "Y":8.81}, 6 | {"Series":"I", "X":11.0, "Y":8.33}, 7 | {"Series":"I", "X":14.0, "Y":9.96}, 8 | {"Series":"I", "X":6.0, "Y":7.24}, 9 | {"Series":"I", "X":4.0, "Y":4.26}, 10 | {"Series":"I", "X":12.0, "Y":10.84}, 11 | {"Series":"I", "X":7.0, "Y":4.81}, 12 | {"Series":"I", "X":5.0, "Y":5.68}, 13 | 14 | {"Series":"II", "X":10.0, "Y":9.14}, 15 | {"Series":"II", "X":8.0, "Y":8.14}, 16 | {"Series":"II", "X":13.0, "Y":8.74}, 17 | {"Series":"II", "X":9.0, "Y":8.77}, 18 | {"Series":"II", "X":11.0, "Y":9.26}, 19 | {"Series":"II", "X":14.0, "Y":8.10}, 20 | {"Series":"II", "X":6.0, "Y":6.13}, 21 | {"Series":"II", "X":4.0, "Y":3.10}, 22 | {"Series":"II", "X":12.0, "Y":9.13}, 23 | {"Series":"II", "X":7.0, "Y":7.26}, 24 | {"Series":"II", "X":5.0, "Y":4.74}, 25 | 26 | {"Series":"III", "X":10.0, "Y":7.46}, 27 | {"Series":"III", "X":8.0, "Y":6.77}, 28 | {"Series":"III", "X":13.0, "Y":12.74}, 29 | {"Series":"III", "X":9.0, "Y":7.11}, 30 | {"Series":"III", "X":11.0, "Y":7.81}, 31 | {"Series":"III", "X":14.0, "Y":8.84}, 32 | {"Series":"III", "X":6.0, "Y":6.08}, 33 | {"Series":"III", "X":4.0, "Y":5.39}, 34 | {"Series":"III", "X":12.0, "Y":8.15}, 35 | {"Series":"III", "X":7.0, "Y":6.42}, 36 | {"Series":"III", "X":5.0, "Y":5.73}, 37 | 38 | {"Series":"IV", "X":8.0, "Y":6.58}, 39 | {"Series":"IV", "X":8.0, "Y":5.76}, 40 | {"Series":"IV", "X":8.0, "Y":7.71}, 41 | {"Series":"IV", "X":8.0, "Y":8.84}, 42 | {"Series":"IV", "X":8.0, "Y":8.47}, 43 | {"Series":"IV", "X":8.0, "Y":7.04}, 44 | {"Series":"IV", "X":8.0, "Y":5.25}, 45 | {"Series":"IV", "X":19.0, "Y":12.50}, 46 | {"Series":"IV", "X":8.0, "Y":5.56}, 47 | {"Series":"IV", "X":8.0, "Y":7.91}, 48 | {"Series":"IV", "X":8.0, "Y":6.89} 49 | ] 50 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/burtin.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Bacteria":"Aerobacter aerogenes", 4 | "Penicilin":870, 5 | "Streptomycin":1, 6 | "Neomycin":1.6, 7 | "Gram_Staining":"negative", 8 | "Genus": "other" 9 | }, 10 | { 11 | "Bacteria":"Brucella abortus", 12 | "Penicilin":1, 13 | "Streptomycin":2, 14 | "Neomycin":0.02, 15 | "Gram_Staining":"negative", 16 | "Genus": "other" 17 | }, 18 | { 19 | "Bacteria":"Brucella anthracis", 20 | "Penicilin":0.001, 21 | "Streptomycin":0.01, 22 | "Neomycin":0.007, 23 | "Gram_Staining":"positive", 24 | "Genus": "other" 25 | }, 26 | { 27 | "Bacteria":"Diplococcus pneumoniae", 28 | "Penicilin":0.005, 29 | "Streptomycin":11, 30 | "Neomycin":10, 31 | "Gram_Staining":"positive", 32 | "Genus": "other" 33 | }, 34 | { 35 | "Bacteria":"Escherichia coli", 36 | "Penicilin":100, 37 | "Streptomycin":0.4, 38 | "Neomycin":0.1, 39 | "Gram_Staining":"negative", 40 | "Genus": "other" 41 | }, 42 | { 43 | "Bacteria":"Klebsiella pneumoniae", 44 | "Penicilin":850, 45 | "Streptomycin":1.2, 46 | "Neomycin":1, 47 | "Gram_Staining":"negative", 48 | "Genus": "other" 49 | }, 50 | { 51 | "Bacteria":"Mycobacterium tuberculosis", 52 | "Penicilin":800, 53 | "Streptomycin":5, 54 | "Neomycin":2, 55 | "Gram_Staining":"negative", 56 | "Genus": "other" 57 | }, 58 | { 59 | "Bacteria":"Proteus vulgaris", 60 | "Penicilin":3, 61 | "Streptomycin":0.1, 62 | "Neomycin":0.1, 63 | "Gram_Staining":"negative", 64 | "Genus": "other" 65 | }, 66 | { 67 | "Bacteria":"Pseudomonas aeruginosa", 68 | "Penicilin":850, 69 | "Streptomycin":2, 70 | "Neomycin":0.4, 71 | "Gram_Staining":"negative", 72 | "Genus": "other" 73 | }, 74 | { 75 | "Bacteria":"Salmonella (Eberthella) typhosa", 76 | "Penicilin":1, 77 | "Streptomycin":0.4, 78 | "Neomycin":0.008, 79 | "Gram_Staining":"negative", 80 | "Genus": "Salmonella" 81 | }, 82 | { 83 | "Bacteria":"Salmonella schottmuelleri", 84 | "Penicilin":10, 85 | "Streptomycin":0.8, 86 | "Neomycin":0.09, 87 | "Gram_Staining":"negative", 88 | "Genus": "Salmonella" 89 | }, 90 | { 91 | "Bacteria":"Staphylococcus albus", 92 | "Penicilin":0.007, 93 | "Streptomycin":0.1, 94 | "Neomycin":0.001, 95 | "Gram_Staining":"positive", 96 | "Genus": "Staphylococcus" 97 | }, 98 | { 99 | "Bacteria":"Staphylococcus aureus", 100 | "Penicilin":0.03, 101 | "Streptomycin":0.03, 102 | "Neomycin":0.001, 103 | "Gram_Staining":"positive", 104 | "Genus": "Staphylococcus" 105 | }, 106 | { 107 | "Bacteria":"Streptococcus fecalis", 108 | "Penicilin":1, 109 | "Streptomycin":1, 110 | "Neomycin":0.1, 111 | "Gram_Staining":"positive", 112 | "Genus": "Streptococcus" 113 | }, 114 | { 115 | "Bacteria":"Streptococcus hemolyticus", 116 | "Penicilin":0.001, 117 | "Streptomycin":14, 118 | "Neomycin":10, 119 | "Gram_Staining":"positive", 120 | "Genus": "Streptococcus" 121 | }, 122 | { 123 | "Bacteria":"Streptococcus viridans", 124 | "Penicilin":0.005, 125 | "Streptomycin":10, 126 | "Neomycin":40, 127 | "Gram_Staining":"positive", 128 | "Genus": "Streptococcus" 129 | } 130 | ] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/crimea.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "date": "4/1854", "wounds": 0, "other": 110, "disease": 110 }, 3 | { "date": "5/1854", "wounds": 0, "other": 95, "disease": 105 }, 4 | { "date": "6/1854", "wounds": 0, "other": 40, "disease": 95 }, 5 | { "date": "7/1854", "wounds": 0, "other": 140, "disease": 520 }, 6 | { "date": "8/1854", "wounds": 20, "other": 150, "disease": 800 }, 7 | { "date": "9/1854", "wounds": 220, "other": 230, "disease": 740 }, 8 | { "date": "10/1854", "wounds": 305, "other": 310, "disease": 600 }, 9 | { "date": "11/1854", "wounds": 480, "other": 290, "disease": 820 }, 10 | { "date": "12/1854", "wounds": 295, "other": 310, "disease": 1100 }, 11 | { "date": "1/1855", "wounds": 230, "other": 460, "disease": 1440 }, 12 | { "date": "2/1855", "wounds": 180, "other": 520, "disease": 1270 }, 13 | { "date": "3/1855", "wounds": 155, "other": 350, "disease": 935 }, 14 | { "date": "4/1855", "wounds": 195, "other": 195, "disease": 560 }, 15 | { "date": "5/1855", "wounds": 180, "other": 155, "disease": 550 }, 16 | { "date": "6/1855", "wounds": 330, "other": 130, "disease": 650 }, 17 | { "date": "7/1855", "wounds": 260, "other": 130, "disease": 430 }, 18 | { "date": "8/1855", "wounds": 290, "other": 110, "disease": 490 }, 19 | { "date": "9/1855", "wounds": 355, "other": 100, "disease": 290 }, 20 | { "date": "10/1855", "wounds": 135, "other": 95, "disease": 245 }, 21 | { "date": "11/1855", "wounds": 100, "other": 140, "disease": 325 }, 22 | { "date": "12/1855", "wounds": 40, "other": 120, "disease": 215 }, 23 | { "date": "1/1856", "wounds": 0, "other": 160, "disease": 160 }, 24 | { "date": "2/1856", "wounds": 0, "other": 100, "disease": 100 }, 25 | { "date": "3/1856", "wounds": 0, "other": 125, "disease": 90 } 26 | ] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/driving.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"side": "left", "year": 1956, "miles": 3675, "gas": 2.38}, 3 | {"side": "right", "year": 1957, "miles": 3706, "gas": 2.40}, 4 | {"side": "bottom", "year": 1958, "miles": 3766, "gas": 2.26}, 5 | {"side": "top", "year": 1959, "miles": 3905, "gas": 2.31}, 6 | {"side": "right", "year": 1960, "miles": 3935, "gas": 2.27}, 7 | {"side": "bottom", "year": 1961, "miles": 3977, "gas": 2.25}, 8 | {"side": "right", "year": 1962, "miles": 4085, "gas": 2.22}, 9 | {"side": "bottom", "year": 1963, "miles": 4218, "gas": 2.12}, 10 | {"side": "bottom", "year": 1964, "miles": 4369, "gas": 2.11}, 11 | {"side": "bottom", "year": 1965, "miles": 4538, "gas": 2.14}, 12 | {"side": "top", "year": 1966, "miles": 4676, "gas": 2.14}, 13 | {"side": "bottom", "year": 1967, "miles": 4827, "gas": 2.14}, 14 | {"side": "right", "year": 1968, "miles": 5038, "gas": 2.13}, 15 | {"side": "right", "year": 1969, "miles": 5207, "gas": 2.07}, 16 | {"side": "right", "year": 1970, "miles": 5376, "gas": 2.01}, 17 | {"side": "bottom", "year": 1971, "miles": 5617, "gas": 1.93}, 18 | {"side": "bottom", "year": 1972, "miles": 5973, "gas": 1.87}, 19 | {"side": "right", "year": 1973, "miles": 6154, "gas": 1.90}, 20 | {"side": "left", "year": 1974, "miles": 5943, "gas": 2.34}, 21 | {"side": "bottom", "year": 1975, "miles": 6111, "gas": 2.31}, 22 | {"side": "bottom", "year": 1976, "miles": 6389, "gas": 2.32}, 23 | {"side": "top", "year": 1977, "miles": 6630, "gas": 2.36}, 24 | {"side": "bottom", "year": 1978, "miles": 6883, "gas": 2.23}, 25 | {"side": "left", "year": 1979, "miles": 6744, "gas": 2.68}, 26 | {"side": "left", "year": 1980, "miles": 6672, "gas": 3.30}, 27 | {"side": "right", "year": 1981, "miles": 6732, "gas": 3.30}, 28 | {"side": "right", "year": 1982, "miles": 6835, "gas": 2.92}, 29 | {"side": "right", "year": 1983, "miles": 6943, "gas": 2.66}, 30 | {"side": "right", "year": 1984, "miles": 7130, "gas": 2.48}, 31 | {"side": "right", "year": 1985, "miles": 7323, "gas": 2.36}, 32 | {"side": "left", "year": 1986, "miles": 7558, "gas": 1.76}, 33 | {"side": "top", "year": 1987, "miles": 7770, "gas": 1.76}, 34 | {"side": "bottom", "year": 1988, "miles": 8089, "gas": 1.68}, 35 | {"side": "left", "year": 1989, "miles": 8397, "gas": 1.75}, 36 | {"side": "top", "year": 1990, "miles": 8529, "gas": 1.88}, 37 | {"side": "right", "year": 1991, "miles": 8535, "gas": 1.78}, 38 | {"side": "right", "year": 1992, "miles": 8662, "gas": 1.69}, 39 | {"side": "left", "year": 1993, "miles": 8855, "gas": 1.60}, 40 | {"side": "bottom", "year": 1994, "miles": 8909, "gas": 1.59}, 41 | {"side": "bottom", "year": 1995, "miles": 9150, "gas": 1.60}, 42 | {"side": "top", "year": 1996, "miles": 9192, "gas": 1.67}, 43 | {"side": "right", "year": 1997, "miles": 9416, "gas": 1.65}, 44 | {"side": "bottom", "year": 1998, "miles": 9590, "gas": 1.39}, 45 | {"side": "right", "year": 1999, "miles": 9687, "gas": 1.50}, 46 | {"side": "top", "year": 2000, "miles": 9717, "gas": 1.89}, 47 | {"side": "left", "year": 2001, "miles": 9699, "gas": 1.77}, 48 | {"side": "bottom", "year": 2002, "miles": 9814, "gas": 1.64}, 49 | {"side": "right", "year": 2003, "miles": 9868, "gas": 1.86}, 50 | {"side": "left", "year": 2004, "miles": 9994, "gas": 2.14}, 51 | {"side": "left", "year": 2005, "miles": 10067, "gas": 2.53}, 52 | {"side": "right", "year": 2006, "miles": 10037, "gas": 2.79}, 53 | {"side": "right", "year": 2007, "miles": 10025, "gas": 2.95}, 54 | {"side": "left", "year": 2008, "miles": 9880, "gas": 3.31}, 55 | {"side": "bottom", "year": 2009, "miles": 9657, "gas": 2.38}, 56 | {"side": "left", "year": 2010, "miles": 9596, "gas": 2.61} 57 | ] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/ffox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/bower_components/vega-editor/app/data/ffox.png -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/gimp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/bower_components/vega-editor/app/data/gimp.png -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/monarchs.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"name":"Elizabeth","start":1565,"end":1603,"index":0}, 3 | {"name":"James I","start":1603,"end":1625,"index":1}, 4 | {"name":"Charles I","start":1625,"end":1649,"index":2}, 5 | {"name":"Cromwell","start":1649,"end":1660,"commonwealth":true,"index":3}, 6 | {"name":"Charles II","start":1660,"end":1685,"index":4}, 7 | {"name":"James II","start":1685,"end":1689,"index":5}, 8 | {"name":"W&M","start":1689,"end":1702,"index":6}, 9 | {"name":"Anne","start":1702,"end":1714,"index":7}, 10 | {"name":"George I","start":1714,"end":1727,"index":8}, 11 | {"name":"George II","start":1727,"end":1760,"index":9}, 12 | {"name":"George III","start":1760,"end":1820,"index":10}, 13 | {"name":"George IV","start":1820,"end":1820,"index":11} 14 | ] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/sp500.csv: -------------------------------------------------------------------------------- 1 | date,price 2 | Jan 1 2000,1394.46 3 | Feb 1 2000,1366.42 4 | Mar 1 2000,1498.58 5 | Apr 1 2000,1452.43 6 | May 1 2000,1420.6 7 | Jun 1 2000,1454.6 8 | Jul 1 2000,1430.83 9 | Aug 1 2000,1517.68 10 | Sep 1 2000,1436.51 11 | Oct 1 2000,1429.4 12 | Nov 1 2000,1314.95 13 | Dec 1 2000,1320.28 14 | Jan 1 2001,1366.01 15 | Feb 1 2001,1239.94 16 | Mar 1 2001,1160.33 17 | Apr 1 2001,1249.46 18 | May 1 2001,1255.82 19 | Jun 1 2001,1224.38 20 | Jul 1 2001,1211.23 21 | Aug 1 2001,1133.58 22 | Sep 1 2001,1040.94 23 | Oct 1 2001,1059.78 24 | Nov 1 2001,1139.45 25 | Dec 1 2001,1148.08 26 | Jan 1 2002,1130.2 27 | Feb 1 2002,1106.73 28 | Mar 1 2002,1147.39 29 | Apr 1 2002,1076.92 30 | May 1 2002,1067.14 31 | Jun 1 2002,989.82 32 | Jul 1 2002,911.62 33 | Aug 1 2002,916.07 34 | Sep 1 2002,815.28 35 | Oct 1 2002,885.76 36 | Nov 1 2002,936.31 37 | Dec 1 2002,879.82 38 | Jan 1 2003,855.7 39 | Feb 1 2003,841.15 40 | Mar 1 2003,848.18 41 | Apr 1 2003,916.92 42 | May 1 2003,963.59 43 | Jun 1 2003,974.5 44 | Jul 1 2003,990.31 45 | Aug 1 2003,1008.01 46 | Sep 1 2003,995.97 47 | Oct 1 2003,1050.71 48 | Nov 1 2003,1058.2 49 | Dec 1 2003,1111.92 50 | Jan 1 2004,1131.13 51 | Feb 1 2004,1144.94 52 | Mar 1 2004,1126.21 53 | Apr 1 2004,1107.3 54 | May 1 2004,1120.68 55 | Jun 1 2004,1140.84 56 | Jul 1 2004,1101.72 57 | Aug 1 2004,1104.24 58 | Sep 1 2004,1114.58 59 | Oct 1 2004,1130.2 60 | Nov 1 2004,1173.82 61 | Dec 1 2004,1211.92 62 | Jan 1 2005,1181.27 63 | Feb 1 2005,1203.6 64 | Mar 1 2005,1180.59 65 | Apr 1 2005,1156.85 66 | May 1 2005,1191.5 67 | Jun 1 2005,1191.33 68 | Jul 1 2005,1234.18 69 | Aug 1 2005,1220.33 70 | Sep 1 2005,1228.81 71 | Oct 1 2005,1207.01 72 | Nov 1 2005,1249.48 73 | Dec 1 2005,1248.29 74 | Jan 1 2006,1280.08 75 | Feb 1 2006,1280.66 76 | Mar 1 2006,1294.87 77 | Apr 1 2006,1310.61 78 | May 1 2006,1270.09 79 | Jun 1 2006,1270.2 80 | Jul 1 2006,1276.66 81 | Aug 1 2006,1303.82 82 | Sep 1 2006,1335.85 83 | Oct 1 2006,1377.94 84 | Nov 1 2006,1400.63 85 | Dec 1 2006,1418.3 86 | Jan 1 2007,1438.24 87 | Feb 1 2007,1406.82 88 | Mar 1 2007,1420.86 89 | Apr 1 2007,1482.37 90 | May 1 2007,1530.62 91 | Jun 1 2007,1503.35 92 | Jul 1 2007,1455.27 93 | Aug 1 2007,1473.99 94 | Sep 1 2007,1526.75 95 | Oct 1 2007,1549.38 96 | Nov 1 2007,1481.14 97 | Dec 1 2007,1468.36 98 | Jan 1 2008,1378.55 99 | Feb 1 2008,1330.63 100 | Mar 1 2008,1322.7 101 | Apr 1 2008,1385.59 102 | May 1 2008,1400.38 103 | Jun 1 2008,1280 104 | Jul 1 2008,1267.38 105 | Aug 1 2008,1282.83 106 | Sep 1 2008,1166.36 107 | Oct 1 2008,968.75 108 | Nov 1 2008,896.24 109 | Dec 1 2008,903.25 110 | Jan 1 2009,825.88 111 | Feb 1 2009,735.09 112 | Mar 1 2009,797.87 113 | Apr 1 2009,872.81 114 | May 1 2009,919.14 115 | Jun 1 2009,919.32 116 | Jul 1 2009,987.48 117 | Aug 1 2009,1020.62 118 | Sep 1 2009,1057.08 119 | Oct 1 2009,1036.19 120 | Nov 1 2009,1095.63 121 | Dec 1 2009,1115.1 122 | Jan 1 2010,1073.87 123 | Feb 1 2010,1104.49 124 | Mar 1 2010,1140.45 125 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/weather.json: -------------------------------------------------------------------------------- 1 | [{"day":"M","record":{"high":62,"low":15},"normal":{"high":50,"low":38},"actual":{"high":48,"low":36},"id":0},{"day":"T","record":{"high":62,"low":23},"normal":{"high":50,"low":38},"actual":{"high":50,"low":40},"id":1},{"day":"W","record":{"high":61,"low":20},"normal":{"high":50,"low":38},"actual":{"high":55,"low":36},"id":2},{"day":"T","record":{"high":67,"low":21},"normal":{"high":50,"low":38},"actual":{"high":51,"low":33},"id":3},{"day":"F","record":{"high":61,"low":23},"normal":{"high":50,"low":38},"actual":{"high":50,"low":30},"id":4},{"day":"S","record":{"high":67,"low":20},"normal":{"high":50,"low":38},"forecast":{"high":{"high":53,"low":49},"low":{"high":40,"low":35}},"id":5},{"day":"S","record":{"high":63,"low":23},"normal":{"high":50,"low":39},"forecast":{"high":{"high":55,"low":49},"low":{"high":42,"low":37}},"id":6},{"day":"M","record":{"high":61,"low":26},"normal":{"high":51,"low":39},"forecast":{"high":{"high":53,"low":49},"low":{"high":43,"low":40}},"id":7},{"day":"T","record":{"high":61,"low":24},"normal":{"high":51,"low":39},"forecast":{"high":{"high":52,"low":46},"low":{"high":44,"low":40}},"id":8},{"day":"W","record":{"high":63,"low":20},"normal":{"high":51,"low":39},"forecast":{"high":{"high":53,"low":46},"low":{"high":43,"low":38}},"id":9}] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/data/wheat.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"year":"1565","wheat":41,"wages":5}, 3 | {"year":"1570","wheat":45,"wages":5.05}, 4 | {"year":"1575","wheat":42,"wages":5.08}, 5 | {"year":"1580","wheat":49,"wages":5.12}, 6 | {"year":"1585","wheat":41.5,"wages":5.15}, 7 | {"year":"1590","wheat":47,"wages":5.25}, 8 | {"year":"1595","wheat":64,"wages":5.54}, 9 | {"year":"1600","wheat":27,"wages":5.61}, 10 | {"year":"1605","wheat":33,"wages":5.69}, 11 | {"year":"1610","wheat":32,"wages":5.78}, 12 | {"year":"1615","wheat":33,"wages":5.94}, 13 | {"year":"1620","wheat":35,"wages":6.01}, 14 | {"year":"1625","wheat":33,"wages":6.12}, 15 | {"year":"1630","wheat":45,"wages":6.22}, 16 | {"year":"1635","wheat":33,"wages":6.3}, 17 | {"year":"1640","wheat":39,"wages":6.37}, 18 | {"year":"1645","wheat":53,"wages":6.45}, 19 | {"year":"1650","wheat":42,"wages":6.5}, 20 | {"year":"1655","wheat":40.5,"wages":6.6}, 21 | {"year":"1660","wheat":46.5,"wages":6.75}, 22 | {"year":"1665","wheat":32,"wages":6.8}, 23 | {"year":"1670","wheat":37,"wages":6.9}, 24 | {"year":"1675","wheat":43,"wages":7}, 25 | {"year":"1680","wheat":35,"wages":7.3}, 26 | {"year":"1685","wheat":27,"wages":7.6}, 27 | {"year":"1690","wheat":40,"wages":8}, 28 | {"year":"1695","wheat":50,"wages":8.5}, 29 | {"year":"1700","wheat":30,"wages":9}, 30 | {"year":"1705","wheat":32,"wages":10}, 31 | {"year":"1710","wheat":44,"wages":11}, 32 | {"year":"1715","wheat":33,"wages":11.75}, 33 | {"year":"1720","wheat":29,"wages":12.5}, 34 | {"year":"1725","wheat":39,"wages":13}, 35 | {"year":"1730","wheat":26,"wages":13.3}, 36 | {"year":"1735","wheat":32,"wages":13.6}, 37 | {"year":"1740","wheat":27,"wages":14}, 38 | {"year":"1745","wheat":27.5,"wages":14.5}, 39 | {"year":"1750","wheat":31,"wages":15}, 40 | {"year":"1755","wheat":35.5,"wages":15.7}, 41 | {"year":"1760","wheat":31,"wages":16.5}, 42 | {"year":"1765","wheat":43,"wages":17.6}, 43 | {"year":"1770","wheat":47,"wages":18.5}, 44 | {"year":"1775","wheat":44,"wages":19.5}, 45 | {"year":"1780","wheat":46,"wages":21}, 46 | {"year":"1785","wheat":42,"wages":23}, 47 | {"year":"1790","wheat":47.5,"wages":25.5}, 48 | {"year":"1795","wheat":76,"wages":27.5}, 49 | {"year":"1800","wheat":79,"wages":28.5}, 50 | {"year":"1805","wheat":81,"wages":29.5}, 51 | {"year":"1810","wheat":99,"wages":30}, 52 | {"year":"1815","wheat":78}, 53 | {"year":"1820","wheat":54} 54 | ] -------------------------------------------------------------------------------- /bower_components/vega-editor/app/overview.js: -------------------------------------------------------------------------------- 1 | var overview = {}; 2 | 3 | overview.init = function() { 4 | overview.svg = d3.select("#overview").append("svg"); 5 | overview.g = overview.svg.append("g"); 6 | overview.brush = null; 7 | }; 8 | 9 | overview.reset = function() { 10 | overview.init(); 11 | }; 12 | 13 | overview.close = function() { 14 | if(overview.svg) overview.svg.remove(); 15 | }; 16 | 17 | overview.update = function(counts, streams) { 18 | var width = document.getElementById("overview").clientWidth * 0.6; 19 | 20 | if(!overview.brush) initBrush(); 21 | updateBrush(); 22 | 23 | // Convert count object to list. 24 | var data = []; 25 | Object.keys(counts).forEach(function(key) { 26 | data.push({"pulse": key, "count": counts[key]}); 27 | }); 28 | 29 | var pulseIndexToPixel = d3.scale.linear() 30 | .domain([0, data.length]) 31 | .range([0, width]); 32 | 33 | var index = function(value) { 34 | var result = data.filter(function(d) { return d.pulse === value; })[0]; 35 | return data.indexOf(result); 36 | }; 37 | 38 | var height = d3.scale.linear() 39 | .domain([0, Object.keys(streams).length]) 40 | .range([0, 75]); 41 | 42 | // Draw summary rects 43 | var rects = overview.g.selectAll("rect").data(data); 44 | rects.enter().append("rect") 45 | .style("stroke", debug.config.color.lightGray) 46 | .style("stroke-width", "0.5px"); 47 | rects.attr("width", width / data.length) 48 | .attr("height", function(d) { return height(d.count); }) 49 | .attr("x", function(d) { return pulseIndexToPixel(index(d.pulse)); }) 50 | .attr("y", function(d) { return 75 - height(d.count); }) 51 | .style("fill", function(d) { 52 | if(model.current.pulse == d.pulse) return debug.config.color.green; 53 | return debug.config.color.blueGray; 54 | }) 55 | .style("opacity", function(d) { 56 | if(model.current.pulse == d.pulse) return 1; 57 | return 0.5; 58 | }); 59 | }; 60 | 61 | /*************************** Helpers ***************************/ 62 | function initBrush() { 63 | // Create the brush on the overview 64 | var width = document.getElementById("overview").clientWidth * 0.6; 65 | var x = d3.scale.linear().range([0, width]); 66 | overview.brush = d3.svg.brush().x(x).on("brush", brushed); 67 | overview.svg.append("g").attr("class", "brush").call(overview.brush); 68 | 69 | var count = model.pulses.length; 70 | overview.convert = d3.scale.linear().domain([0, 1]).range([0, count]); 71 | }; 72 | 73 | function updateBrush() { 74 | var e = overview.brush.extent(); 75 | var old = [Math.round(overview.convert(e[0])), Math.round(overview.convert(e[1]))]; 76 | 77 | // Update the conversion 78 | var count = model.pulses.length; 79 | overview.convert = d3.scale.linear().domain([0, 1]).range([0, count]); 80 | 81 | // Update the brush 82 | overview.brush.extent([overview.convert.invert(old[0]), overview.convert.invert(old[1])]); 83 | overview.brush(d3.select(".brush")); 84 | }; 85 | 86 | overview.scrollBrush = function(dx) { 87 | var e = overview.brush.extent(); 88 | if((dx > 0 && e[0] === 0) || (dx < 0 && e[1] === 1)) return; 89 | var old = [Math.round(overview.convert(e[0])), Math.round(overview.convert(e[1]))]; 90 | var min = Math.max(overview.convert.invert(old[0] - dx), 0); 91 | var max = Math.min(overview.convert.invert(old[1] - dx), 1); 92 | overview.brush.extent([min, max]); 93 | overview.brush(d3.select(".brush")); 94 | brushed(); 95 | }; 96 | 97 | function brushed() { 98 | var e = overview.brush.extent(); 99 | var old = [Math.round(overview.convert(e[0])), Math.round(overview.convert(e[1]))]; 100 | overview.brush.extent([overview.convert.invert(old[0]), overview.convert.invert(old[1])]); 101 | overview.brush(d3.select(".brush")); 102 | 103 | debug.update(); 104 | }; -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/1d_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "Acceleration","type": "quantitative","aggregate": "sum"}, 6 | "color": {"field": "Origin","type": "nominal"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/agg_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "Cylinders","type": "ordinal"}, 6 | "y": {"field": "Acceleration","type": "quantitative","aggregate": "mean"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/area.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/unemployment-across-industries.json"}, 3 | "mark": "area", 4 | "encoding": { 5 | "x": { 6 | "timeUnit": "yearmonth", "field": "date", "type": "temporal", 7 | "scale": {"nice": "month"}, 8 | "axis": {"axisWidth": 0, "format": "%Y", "labelAngle": 0} 9 | }, 10 | "y": { 11 | "aggregate": "sum", "field": "count","type": "quantitative" 12 | } 13 | }, 14 | "config": {"cell": {"width": 300, "height": 200}} 15 | } 16 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/area_vertical.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Area chart showing weight of cars over time (vertical).", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "area", 5 | "encoding": { 6 | "x": {"aggregate": "sum", "field": "Weight_in_lbs", "type": "quantitative"}, 7 | "y": {"timeUnit": "year", "field": "Year", "type": "temporal"} 8 | }, 9 | "config": {"mark": {"interpolate": "monotone"}} 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A simple bar chart with embedded data.", 3 | "data": { 4 | "values": [ 5 | {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43}, 6 | {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53}, 7 | {"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52} 8 | ] 9 | }, 10 | "mark": "bar", 11 | "encoding": { 12 | "x": {"field": "a", "type": "ordinal"}, 13 | "y": {"field": "b", "type": "quantitative"} 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_1d.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { "url": "data/population.json"}, 3 | "transform": { 4 | "filter": "datum.year == 2000" 5 | }, 6 | "mark": "bar", 7 | "encoding": { 8 | "x": { 9 | "aggregate": "sum", "field": "people", "type": "quantitative", 10 | "axis": {"title": "population"}} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_aggregate.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A bar chart showing the US population distribution of age groups in 2000.", 3 | "data": { "url": "data/population.json"}, 4 | "transform": {"filter": "datum.year == 2000"}, 5 | "mark": "bar", 6 | "encoding": { 7 | "y": { 8 | "field": "age", "type": "ordinal", 9 | "scale": {"bandSize": 17} 10 | }, 11 | "x": { 12 | "aggregate": "sum", "field": "people", "type": "quantitative", 13 | "axis": {"title": "population"} 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_aggregate_size.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A bar chart showing the US population distribution of age groups in 2000.", 3 | "data": { "url": "data/population.json"}, 4 | "transform": { 5 | "filter": "datum.year == 2000" 6 | }, 7 | "mark": "bar", 8 | "encoding": { 9 | "y": { 10 | "aggregate": "sum", "field": "people", "type": "quantitative", 11 | "axis": {"title": "population"} 12 | }, 13 | "x": { 14 | "field": "age", "type": "ordinal", 15 | "scale": {"bandSize": 17} 16 | }, 17 | "size": {"value": 10} 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_aggregate_vertical.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "Cylinders", "type": "ordinal"}, 6 | "y": {"aggregate": "mean", "field": "Acceleration", "type": "quantitative"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_filter_calc.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A simple bar chart with embedded data that uses a filter and calculate.", 3 | "data": { 4 | "values": [ 5 | {"a": "A","b": 28}, 6 | {"a": "B","b": 55}, 7 | {"a": "C","b": 43}, 8 | {"a": "G","b": 19}, 9 | {"a": "H","b": 87}, 10 | {"a": "I","b": 52}, 11 | {"a": "D","b": 91}, 12 | {"a": "E","b": 81}, 13 | {"a": "F","b": 53} 14 | ] 15 | }, 16 | "transform": { 17 | "calculate": [{"field": "b2","expr": "2*datum.b"}], 18 | "filter": "datum.b2 > 60" 19 | }, 20 | "mark": "bar", 21 | "encoding": { 22 | "y": {"field": "b2", "type": "quantitative"}, 23 | "x": {"field": "a", "type": "ordinal"} 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_grouped.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { "url": "data/population.json"}, 3 | "transform": { 4 | "filter": "datum.year == 2000", 5 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 6 | }, 7 | "mark": "bar", 8 | "encoding": { 9 | "column": { 10 | "field": "age", "type": "ordinal", 11 | "scale": {"padding": 4}, 12 | "axis": {"orient": "bottom", "axisWidth": 1, "offset": -8} 13 | }, 14 | "y": { 15 | "aggregate": "sum", "field": "people", "type": "quantitative", 16 | "axis": {"title": "population", "grid": false} 17 | }, 18 | "x": { 19 | "field": "gender", "type": "nominal", 20 | "scale": {"bandSize": 6}, 21 | "axis": false 22 | }, 23 | "color": { 24 | "field": "gender", "type": "nominal", 25 | "scale": {"range": ["#EA98D2", "#659CCA"]} 26 | } 27 | }, 28 | "config": {"facet": {"cell": {"strokeWidth": 0}}} 29 | } 30 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_grouped_horizontal.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { "url": "data/population.json"}, 3 | "transform": { 4 | "filter": "datum.year == 2000", 5 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 6 | }, 7 | "mark": "bar", 8 | "encoding": { 9 | "row": { 10 | "field": "age", "type": "ordinal", 11 | "scale": {"padding": 4}, 12 | "axis": {"orient": "left", "axisWidth": 1, "offset": -8} 13 | }, 14 | "x": { 15 | "aggregate": "sum", "field": "people", "type": "quantitative", 16 | "axis": {"title": "population", "grid": false} 17 | }, 18 | "y": { 19 | "field": "gender", "type": "nominal", 20 | "scale": {"bandSize": 6}, 21 | "axis": false 22 | }, 23 | "color": { 24 | "field": "gender", "type": "nominal", 25 | "scale": {"range": ["#EA98D2", "#659CCA"]} 26 | } 27 | }, 28 | "config": {"facet": {"cell": {"strokeWidth": 0}}} 29 | } 30 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_layered_transparent.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A bar chart showing the US population distribution of age groups and gender in 2000.", 3 | "data": { "url": "data/population.json"}, 4 | "transform": { 5 | "filter": "datum.year == 2000", 6 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 7 | }, 8 | "mark": "bar", 9 | "encoding": { 10 | "x": { 11 | "field": "age", "type": "ordinal", 12 | "scale": {"bandSize": 17} 13 | }, 14 | "y": { 15 | "aggregate": "sum", "field": "people", "type": "quantitative", 16 | "axis": {"title": "population"} 17 | }, 18 | "color": { 19 | "field": "gender", "type": "nominal", 20 | "scale": {"range": ["#e377c2","#1f77b4"]} 21 | } 22 | }, 23 | "config": { 24 | "mark": {"opacity": 0.6, "stacked" : "none"} 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_log.json: -------------------------------------------------------------------------------- 1 | { 2 | "mark": "bar", 3 | "data": { 4 | "values": [ 5 | {"m_teps": 33.5330810546875,"dataset": "ak2010"}, 6 | { 7 | "m_teps": 21.458358764648438, 8 | "dataset": "belgium_osm" 9 | }, 10 | { 11 | "m_teps": 1023.6077880859375, 12 | "dataset": "cit-Patents" 13 | }, 14 | { 15 | "m_teps": 502.16387939453125, 16 | "dataset": "coAuthorsDBLP" 17 | }, 18 | { 19 | "m_teps": 10.410270690917969, 20 | "dataset": "delaunay_n13" 21 | }, 22 | { 23 | "m_teps": 187.35877990722656, 24 | "dataset": "delaunay_n21" 25 | }, 26 | { 27 | "m_teps": 443.1048889160156, 28 | "dataset": "delaunay_n24" 29 | }, 30 | {"m_teps": 55.096927642822266,"dataset": "europe_osm"}, 31 | { 32 | "m_teps": 3530.5595703125, 33 | "dataset": "kron_g500-logn21" 34 | }, 35 | {"m_teps": 79.42512512207031,"dataset": "road_usa"}, 36 | { 37 | "m_teps": 2050.32421875, 38 | "dataset": "soc-LiveJournal1" 39 | } 40 | ] 41 | }, 42 | "encoding": { 43 | "y": { 44 | "scale": {"type": "log"}, 45 | "type": "quantitative", 46 | "field": "m_teps", 47 | "axis": {"title": "MTEPS"} 48 | }, 49 | "x": {"type": "ordinal","field": "dataset"} 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/bar_yearmonth.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Temperature in Seattle as a bar chart with yearmonth time unit.", 3 | "data": {"url": "data/seattle-temps.csv", "format": {"type": "csv"}}, 4 | "mark": "bar", 5 | "encoding": { 6 | "x": { 7 | "timeUnit": "yearmonth", "field": "date", "type": "temporal", 8 | "axis": {"format": "%B of %Y"}, 9 | "scale": {"type": "ordinal"} 10 | }, 11 | "y": {"aggregate": "mean", "field": "temp", "type": "quantitative"} 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/barley.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"type": "quantitative","field": "yield","aggregate": "mean"}, 6 | "y": { 7 | "sort": {"field": "yield","op": "mean"}, 8 | "type": "ordinal", 9 | "field": "variety" 10 | }, 11 | "row": {"type": "ordinal","field": "site"}, 12 | "color": {"type": "nominal","field": "year"} 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/binned_scatter.json: -------------------------------------------------------------------------------- 1 | { 2 | "mark": "point", 3 | "encoding": { 4 | "x": {"bin": true,"field": "Displacement","type": "quantitative"}, 5 | "y": {"bin": true,"field": "Miles_per_Gallon","type": "quantitative"}, 6 | "size": { 7 | "field": "*", 8 | "aggregate": "count", 9 | "type": "quantitative", 10 | "displayName": "Number of Records" 11 | } 12 | }, 13 | "data": {"url": "data/cars.json"} 14 | } 15 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/circle.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "circle", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/filtered_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "values": [ 4 | {"a": "A","b": 28}, 5 | {"a": "B","b": 55}, 6 | {"a": "C","b": 43}, 7 | {"a": "G","b": 19}, 8 | {"a": "H","b": 87}, 9 | {"a": "I","b": 52}, 10 | {"a": "D","b": 91}, 11 | {"a": "E","b": 81}, 12 | {"a": "F","b": 53} 13 | ], 14 | "filter": "datum.b > 60", 15 | "formulas": [{"field": "b","expr": "2*datum.b"}] 16 | }, 17 | "mark": "bar", 18 | "encoding": { 19 | "y": {"type": "quantitative","field": "b"}, 20 | "x": {"type": "ordinal","field": "a"} 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/grouped_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "Origin","type": "nominal"}, 6 | "y": {"field": "Acceleration","type": "quantitative","aggregate": "mean"}, 7 | "column": { 8 | "axis": {"maxLabelLength": 25}, 9 | "field": "Cylinders", 10 | "type": "ordinal" 11 | }, 12 | "color": { 13 | "field": "Origin", 14 | "type": "nominal" 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/heatmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "text", 4 | "encoding": { 5 | "row": {"field": "Origin","type": "ordinal"}, 6 | "column": {"field": "Cylinders","type": "ordinal"}, 7 | "color": {"field": "Horsepower","type": "quantitative","aggregate": "mean"}, 8 | "text": {"field": "*","type": "quantitative","aggregate": "count"} 9 | } 10 | 11 | } 12 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/histogram.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/movies.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": { 6 | "bin": {"maxbins": 10}, 7 | "field": "IMDB_Rating", 8 | "type": "quantitative" 9 | }, 10 | "y": { 11 | "aggregate": "count", 12 | "field": "*", 13 | "type": "quantitative" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/horsepower.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "line", 4 | "encoding": { 5 | "x": {"field": "Year","type": "temporal","timeUnit": "year"}, 6 | "y": {"field": "Horsepower","type": "quantitative","aggregate": "mean"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Google's stock price over time.", 3 | "data": {"url": "data/stocks.csv", "format": {"type": "csv"}}, 4 | "transform": {"filter": "datum.symbol==='GOOG'"}, 5 | "mark": "line", 6 | "encoding": { 7 | "x": {"field": "date", "type": "temporal"}, 8 | "y": {"field": "price", "type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Stock prices of 5 Tech Companies Over Time.", 3 | "data": {"url": "data/stocks.csv", "format": {"type": "csv"}}, 4 | "mark": "line", 5 | "encoding": { 6 | "x": {"field": "date", "type": "temporal"}, 7 | "y": {"field": "price", "type": "quantitative"}, 8 | "color": {"field": "symbol", "type": "nominal"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Stock prices of 5 Tech Companies Over Time.", 3 | "data": {"url": "data/stocks.csv", "format": {"type": "csv"}}, 4 | "mark": "line", 5 | "encoding": { 6 | "x": {"field": "date", "type": "temporal"}, 7 | "y": {"field": "price", "type": "quantitative"}, 8 | "detail": {"field": "symbol", "type": "nominal"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_monotone.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/stocks.csv", "format": {"type": "csv"}}, 3 | "transform": {"filter": "datum.symbol==='GOOG'"}, 4 | "mark": "line", 5 | "encoding": { 6 | "x": {"field": "date", "type": "temporal"}, 7 | "y": {"field": "price", "type": "quantitative"} 8 | }, 9 | "config":{ 10 | "mark": {"interpolate": "monotone"} 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_month.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/seattle-temps.csv","format": {"type": "csv"}}, 3 | "mark": "line", 4 | "encoding": { 5 | "x": { 6 | "timeUnit": "month", "field": "date", "type": "temporal", 7 | "axis": {"shortTimeLabels": true} 8 | }, 9 | "y": {"aggregate": "mean", "field": "temp", "type": "quantitative"} 10 | }, 11 | "config": {"mark": {"interpolate": "monotone"}} 12 | } 13 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_slope.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "description": "Slope graph showing the change in yield for different barley sites. It shows the error in the year labels for the Morris site.", 4 | "mark": "line", 5 | "encoding": { 6 | "x": { 7 | "field": "year", 8 | "type": "ordinal", 9 | "scale": {"bandSize": 50, "padding": 0.5} 10 | }, 11 | "y": { 12 | "aggregate": "median", 13 | "field": "yield", 14 | "type": "quantitative" 15 | }, 16 | "color": {"field": "site", "type": "nominal"} 17 | } 18 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/line_step.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Google's stock price over time.", 3 | "data": {"url": "data/stocks.csv", "format": {"type": "csv"}}, 4 | "transform": {"filter": "datum.symbol==='GOOG'"}, 5 | "mark": "line", 6 | "encoding": { 7 | "x": {"field": "date", "type": "temporal"}, 8 | "y": {"field": "price", "type": "quantitative"} 9 | }, 10 | "config": {"mark": {"interpolate": "step-after"}} 11 | } 12 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/movie_ratings.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/movies.json"}, 3 | "marktype": "point", 4 | "encoding": { 5 | "x": {"name": "MPAA_Rating","type": "N"}, 6 | "y": {"name": "Release_Date","type": "N"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/point_1d.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/point_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"values": [{"a": 2}]}, 3 | "mark": "point", 4 | "encoding": {}, 5 | "config": {"mark": {"color": "purple"}} 6 | } 7 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/point_dot_timeunit_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/seattle-temps.csv","format": {"type": "csv"}}, 3 | "mark": "point", 4 | "encoding": { 5 | "color": { 6 | "timeUnit": "yearmonth", "field": "date", "type": "temporal" 7 | }, 8 | "x": {"aggregate": "mean", "field": "temp", "type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/point_filled.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower","type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon","type": "quantitative"} 7 | }, 8 | "config": { 9 | "mark": {"filled": true} 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/point_ordinal_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { 3 | "values": [ 4 | {"a": "B","x": 2,"y": 2}, 5 | {"a": "A","x": 1,"y": 1}, 6 | {"a": "A","x": 4,"y": 4}, 7 | {"a": "B","x": 5,"y": 5}, 8 | {"a": "C","x": 3,"y": 3}, 9 | {"a": "C","x": 6,"y": 6} 10 | ] 11 | }, 12 | "mark": "point", 13 | "encoding": { 14 | "x": {"field": "x","type": "quantitative"}, 15 | "y": {"field": "y","type": "quantitative"}, 16 | "color": {"field": "a", "type": "ordinal"} 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A scatterplot showing horsepower and miles per gallons for various cars.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"field": "Horsepower","type": "quantitative"}, 7 | "y": {"field": "Miles_per_Gallon","type": "quantitative"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_aggregate_detail.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A scatterplot showing average horsepower and displacement for cars from different origins.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"aggregate": "mean", "field": "Horsepower","type": "quantitative"}, 7 | "y": {"aggregate": "mean", "field": "Displacement","type": "quantitative"}, 8 | "detail": {"field": "Origin","type": "nominal"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_binned.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/movies.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": { 6 | "bin": {"maxbins": 10}, 7 | "field": "IMDB_Rating", 8 | "type": "quantitative" 9 | }, 10 | "y": { 11 | "bin": {"maxbins": 10}, 12 | "field": "Rotten_Tomatoes_Rating", 13 | "type": "quantitative" 14 | }, 15 | "size": { 16 | "aggregate": "count", 17 | "field": "*", "type": 18 | "quantitative" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_binned_axes.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"bin": true, "field": "Displacement", "type": "quantitative"}, 6 | "y": {"bin": true, "field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "size": {"aggregate": "count", "field": "*", "type": "quantitative"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_binned_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A scatterplot showing horsepower and miles per gallons with binned acceleration on color.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"field": "Horsepower","type": "quantitative"}, 7 | "y": {"field": "Miles_per_Gallon","type": "quantitative"}, 8 | "color": {"bin": {"maxbins": 5}, "field": "Acceleration","type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_binned_size.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A scatterplot showing horsepower and miles per gallons with binned acceleration on size.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"field": "Horsepower","type": "quantitative"}, 7 | "y": {"field": "Miles_per_Gallon","type": "quantitative"}, 8 | "size": {"bin": true, "field": "Acceleration","type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_bubble.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A bubbleplot showing horsepower on x, miles per gallons on y, and binned acceleration on size.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"field": "Horsepower", "type": "quantitative"}, 7 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 8 | "size": {"field": "Acceleration", "type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": {"field": "Origin", "type": "nominal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": { 8 | "field": "Origin", "type": "nominal", 9 | "scale": {"range": ["purple", "#ff0000", "teal"]} 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_order.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": {"field": "Origin", "type": "nominal"}, 8 | "order": {"field": "Origin", "type": "ordinal", "sort": "descending"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_ordinal.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": {"field": "Cylinders", "type": "ordinal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_ordinal_custom.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": { 8 | "field": "Cylinders", "type": "ordinal", 9 | "scale": {"range": ["pink", "red"]} 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_quantitative.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 7 | "color": {"field": "Displacement", "type": "quantitative"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_color_shape_constant.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "x": {"field": "Horsepower","type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon","type": "quantitative"}, 7 | "color": {"value": "#ff9900"}, 8 | "shape": {"value": "square"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_colored_with_shape.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A scatterplot showing horsepower and miles per gallons.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "x": {"field": "Horsepower", "type": "quantitative"}, 7 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 8 | "color": {"field": "Origin", "type": "nominal"}, 9 | "shape": {"field": "Origin", "type": "nominal"} 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_connected.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/driving.json"}, 3 | "mark": "line", 4 | "encoding": { 5 | "x": {"field": "miles","type": "quantitative", "scale": {"zero": false}}, 6 | "y": {"field": "gas","type": "quantitative", "scale": {"zero": false}}, 7 | "path": {"field": "year","type": "temporal"} 8 | }, 9 | "config": {"overlay": {"line": true}} 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/scatter_log.json: -------------------------------------------------------------------------------- 1 | { 2 | "mark": "point", 3 | "data": { 4 | "values": [ 5 | {"x": 0, "y": 1}, {"x": 1, "y": 10}, 6 | {"x": 2, "y": 100}, {"x": 3, "y": 1000}, 7 | {"x": 4, "y": 10000}, {"x": 5, "y": 100000}, 8 | {"x": 6, "y": 1000000}, {"x": 7, "y": 10000000} 9 | ] 10 | }, 11 | "encoding": { 12 | "x": {"field": "x", "type": "quantitative"}, 13 | "y": { 14 | "field": "y", "type": "quantitative", 15 | "scale": {"type": "log"} 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/square.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "square", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"}, 6 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_area.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Area chart showing weight of cars over time.", 3 | "data": {"url": "data/unemployment-across-industries.json"}, 4 | "mark": "area", 5 | "encoding": { 6 | "x": { 7 | "timeUnit": "yearmonth", "field": "date", "type": "temporal", 8 | "scale": {"nice": "month"}, 9 | "axis": {"axisWidth": 0, "format": "%Y", "labelAngle": 0} 10 | }, 11 | "y": { 12 | "aggregate": "sum", "field": "count","type": "quantitative" 13 | }, 14 | "color": {"field":"series", "type":"nominal", "scale":{"range": "category20b"}} 15 | }, 16 | "config": {"cell": {"width": 300, "height": 200}} 17 | } 18 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_area_normalize.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/unemployment-across-industries.json"}, 3 | "mark": "area", 4 | "encoding": { 5 | "x": { 6 | "timeUnit": "yearmonth", "field": "date", "type": "temporal", 7 | "scale": {"nice": "month"}, 8 | "axis": {"axisWidth": 0, "format": "%Y", "labelAngle": 0} 9 | }, 10 | "y": { 11 | "aggregate": "sum", "field": "count","type": "quantitative", 12 | "axis": false 13 | }, 14 | "color": {"field":"series", "type":"nominal", "scale":{"range": "category20b"}} 15 | }, 16 | "config": {"cell": {"width": 300, "height": 200}, "mark": {"stacked": "normalize"}} 17 | } 18 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_area_ordinal.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "area", 4 | "encoding": { 5 | "x": {"timeUnit": "year", "field": "Year", "type": "temporal"}, 6 | "y": {"aggregate": "sum", "field": "Weight_in_lbs", "type": "quantitative"}, 7 | "color": {"field": "Cylinders", "type": "ordinal"} 8 | }, 9 | "config": {"mark": {"interpolate": "monotone"}} 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_area_stream.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/unemployment-across-industries.json"}, 3 | "mark": "area", 4 | "encoding": { 5 | "x": { 6 | "timeUnit": "yearmonth", "field": "date", "type": "temporal", 7 | "scale": {"nice": "month"}, 8 | "axis": {"axisWidth": 0, "format": "%Y", "labelAngle": 0, "tickSize": 0} 9 | }, 10 | "y": { 11 | "aggregate": "sum", "field": "count","type": "quantitative", 12 | "axis": false 13 | }, 14 | "color": {"field":"series", "type":"nominal", "scale":{"range": "category20b"}} 15 | }, 16 | "config": {"cell": {"width": 300, "height": 200}, "mark": {"stacked": "center"}} 17 | } 18 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "yield","type": "quantitative","aggregate": "sum"}, 6 | "y": {"field": "variety","type": "nominal"}, 7 | "color": {"field": "site","type": "nominal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_1d.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"aggregate": "sum", "field": "Acceleration","type": "quantitative"}, 6 | "color": {"field": "Origin","type": "nominal"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_h.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, 6 | "y": {"field": "variety", "type": "nominal"}, 7 | "color": {"field": "site", "type": "nominal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_h_order.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, 6 | "y": {"field": "variety", "type": "nominal"}, 7 | "color": {"field": "site", "type": "nominal"}, 8 | "order": {"aggregate": "sum", "field": "yield", "type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_normalize.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": { "url": "data/population.json"}, 3 | "transform": { 4 | "filter": "datum.year == 2000", 5 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 6 | }, 7 | "mark": "bar", 8 | "encoding": { 9 | "y": { 10 | "aggregate": "sum", "field": "people", "type": "quantitative", 11 | "axis": {"title": "population"} 12 | }, 13 | "x": { 14 | "field": "age", "type": "ordinal", 15 | "scale": {"bandSize": 17} 16 | }, 17 | "color": { 18 | "field": "gender", "type": "nominal", 19 | "scale": {"range": ["#EA98D2", "#659CCA"]} 20 | } 21 | }, 22 | "config": {"mark": {"stacked": "normalize"}} 23 | } 24 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_population.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A bar chart showing the US population distribution of age groups and gender in 2000.", 3 | "data": { "url": "data/population.json"}, 4 | "transform": { 5 | "filter": "datum.year == 2000", 6 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 7 | }, 8 | "mark": "bar", 9 | "encoding": { 10 | "y": { 11 | "aggregate": "sum", "field": "people", "type": "quantitative", 12 | "axis": {"title": "population"} 13 | }, 14 | "x": { 15 | "field": "age", "type": "ordinal", 16 | "scale": {"bandSize": 17} 17 | }, 18 | "color": { 19 | "field": "gender", "type": "nominal", 20 | "scale": {"range": ["#EA98D2", "#659CCA"]} 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_v.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": {"field": "variety", "type": "nominal"}, 6 | "y": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, 7 | "color": {"field": "site", "type": "nominal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_bar_weather.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/seattle-weather.csv","format": {"type": "csv"}}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": { 6 | "field": "date", 7 | "type": "temporal", 8 | "timeUnit": "month", 9 | "axis": {"title": "Month of the year"} 10 | }, 11 | "y": { 12 | "field": "*", 13 | "type": "quantitative", 14 | "aggregate": "count" 15 | }, 16 | "color": { 17 | "field": "weather", 18 | "type": "nominal", 19 | "scale": { 20 | "domain": ["sun","fog","drizzle","rain","snow"], 21 | "range": ["#e7ba52","#c7c7c7","#aec7e8","#1f77b4","#9467bd"] 22 | }, 23 | "legend": { 24 | "title": "Weather type" 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/stacked_histogram.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": { 6 | "bin": {"maxbins": 15}, 7 | "field": "Horsepower", 8 | "type": "quantitative" 9 | }, 10 | "y": {"field": "*","type": "quantitative","aggregate": "count"}, 11 | "color": {"field": "Cylinders","type": "nominal"} 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/tableheatmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "text", 4 | "encoding": { 5 | "row": {"field": "Origin","type": "ordinal"}, 6 | "column": {"field": "Cylinders","type": "ordinal"}, 7 | "color": {"field": "Horsepower","type": "quantitative","aggregate": "mean"}, 8 | "text": {"field": "*","type": "quantitative","aggregate": "count"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/text_scatter_colored.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "transform": { 4 | "calculate": [{ 5 | "field": "OriginInitial", 6 | "expr": "datum.Origin[0]" 7 | }] 8 | }, 9 | "mark": "text", 10 | "encoding": { 11 | "x": {"field": "Horsepower", "type": "quantitative"}, 12 | "y": {"field": "Miles_per_Gallon", "type": "quantitative"}, 13 | "color": {"field": "Origin", "type": "nominal"}, 14 | "text": {"field": "OriginInitial", "type": "nominal"} 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/text_table_heatmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "text", 4 | "encoding": { 5 | "row": {"field": "Origin", "type": "ordinal"}, 6 | "column": {"field": "Cylinders", "type": "ordinal"}, 7 | "color": {"aggregate": "mean", "field": "Horsepower", "type": "quantitative"}, 8 | "text": {"aggregate": "count", "field": "*", "type": "quantitative"} 9 | }, 10 | "config": {"mark": {"applyColorToBackground": true}} 11 | } 12 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/tick.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Shows the relationship between horsepower and the numbver of cylinders using tick marks.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "tick", 5 | "encoding": { 6 | "x": {"field": "Horsepower", "type": "quantitative"}, 7 | "y": {"field": "Cylinders", "type": "ordinal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/tick_dot.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "tick", 4 | "encoding": { 5 | "x": {"field": "Horsepower", "type": "quantitative"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/tick_dot_thickness.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "tick", 4 | "encoding": { 5 | "x": {"field": "Horsepower","type": "quantitative"} 6 | }, 7 | "config": { 8 | "mark": { 9 | "tickThickness": 2, 10 | "tickSize": 10 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/tick_strip.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "Shows the relationship between horsepower and the numbver of cylinders using tick marks.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "tick", 5 | "encoding": { 6 | "x": {"field": "Horsepower", "type": "quantitative"}, 7 | "y": {"field": "Cylinders", "type": "ordinal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_area.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "area", 4 | "encoding": { 5 | "x": {"field": "Year","type": "temporal","timeUnit": "year"}, 6 | "y": {"field": "Weight_in_lbs","type": "quantitative","aggregate": "sum"}, 7 | "column": {"field": "Cylinders","type": "ordinal"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A trellis bar chart showing the US population distribution of age groups and gender in 2000.", 3 | "data": { "url": "data/population.json"}, 4 | "transform": { 5 | "filter": "datum.year == 2000", 6 | "calculate": [{"field": "gender", "expr": "datum.sex == 2 ? \"Female\" : \"Male\""}] 7 | }, 8 | "mark": "bar", 9 | "encoding": { 10 | "row": {"field": "gender", "type": "nominal"}, 11 | "y": { 12 | "aggregate": "sum", "field": "people", "type": "quantitative", 13 | "axis": {"title": "population"} 14 | }, 15 | "x": { 16 | "field": "age", "type": "ordinal", 17 | "scale": {"bandSize": 17} 18 | }, 19 | "color": { 20 | "field": "gender", "type": "nominal", 21 | "scale": {"range": ["#EA98D2","#659CCA"]} 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_bar_histogram.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "x": { 6 | "bin": {"maxbins": 15}, 7 | "field": "Horsepower", 8 | "type": "quantitative" 9 | }, 10 | "y": { 11 | "aggregate": "count", 12 | "field": "*", 13 | "type": "quantitative" 14 | }, 15 | "row": {"field": "Origin","type": "nominal"} 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_barley.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "The Trellis display by Becker et al. helped establish small multiples as a “powerful mechanism for understanding interactions in studies of how a response depends on explanatory variables”. Here we reproduce a trellis of Barley yields from the 1930s, complete with main-effects ordering to facilitate comparison.", 3 | "data": {"url": "data/barley.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "row": {"field": "site", "type": "ordinal"}, 7 | "x": {"aggregate": "mean", "field": "yield", "type": "quantitative"}, 8 | "y": { 9 | "field": "variety", "type": "ordinal", 10 | "sort": {"field": "yield","op": "mean"}, 11 | "scale": {"bandSize": 12} 12 | }, 13 | "color": {"field": "year", "type": "nominal"} 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_row_column.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/cars.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "row": {"field": "Cylinders","type": "ordinal"}, 6 | "column": {"field": "Origin","type": "ordinal"}, 7 | "x": {"field": "Horsepower","type": "quantitative"}, 8 | "y": {"field": "Miles_per_Gallon","type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_scatter.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/movies.json"}, 3 | "mark": "point", 4 | "encoding": { 5 | "column": {"field": "MPAA_Rating","type": "ordinal"}, 6 | "x": {"field": "Worldwide_Gross","type": "quantitative"}, 7 | "y": {"field": "US_DVD_Sales","type": "quantitative"} 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_scatter_binned_row.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A trellis scatterplot showing Horsepower and Miles per gallons, faceted by binned values of Acceleration.", 3 | "data": {"url": "data/cars.json"}, 4 | "mark": "point", 5 | "encoding": { 6 | "row": {"field": "Acceleration","type": "quantitative", "bin": true}, 7 | "x": {"field": "Horsepower","type": "quantitative"}, 8 | "y": {"field": "Miles_per_Gallon","type": "quantitative"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega-lite/trellis_stacked_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": {"url": "data/barley.json"}, 3 | "mark": "bar", 4 | "encoding": { 5 | "column": {"field": "year","type": "ordinal"}, 6 | "x": {"field": "yield","type": "quantitative","aggregate": "sum"}, 7 | "y": {"field": "variety","type": "nominal"}, 8 | "color": {"field": "site","type": "nominal"} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/airports-params.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "app/spec/vega/airports.json", 3 | "parameters": [ 4 | { 5 | "signal": "geoscale", "type": "range", 6 | "value": 1200, "min": 500, "max": 3000, 7 | "rewrite": ["data[0].transform[0].scale", "data[2].transform[2].scale"] 8 | }, 9 | { 10 | "signal": "tx", "type": "range", 11 | "value": 450, "min": -500, "max": 1200, 12 | "rewrite": ["data[0].transform[0].translate[0]", "data[2].transform[2].translate[0]"] 13 | }, 14 | { 15 | "signal": "ty", "type": "range", 16 | "value": 280, "min": -300, "max": 700, 17 | "rewrite": ["data[0].transform[0].translate[1]", "data[2].transform[2].translate[1]"] 18 | }, 19 | { 20 | "signal": "shape", "type": "radio", 21 | "value": "line", "options": ["line", "curve"], 22 | "rewrite": ["data[3].transform[3].shape"] 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/arc.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 400, 3 | "height": 400, 4 | "data": [ 5 | { 6 | "name": "table", 7 | "values": [12, 23, 47, 6, 52, 19], 8 | "transform": [{"type": "pie", "field": "data"}] 9 | } 10 | ], 11 | "scales": [ 12 | { 13 | "name": "r", 14 | "type": "sqrt", 15 | "domain": {"data": "table", "field": "data"}, 16 | "range": [20, 100] 17 | } 18 | ], 19 | "marks": [ 20 | { 21 | "type": "arc", 22 | "from": {"data": "table"}, 23 | "properties": { 24 | "enter": { 25 | "x": {"field": {"group": "width"}, "mult": 0.5}, 26 | "y": {"field": {"group": "height"}, "mult": 0.5}, 27 | "startAngle": {"field": "layout_start"}, 28 | "endAngle": {"field": "layout_end"}, 29 | "innerRadius": {"value": 20}, 30 | "outerRadius": {"scale": "r", "field": "data"}, 31 | "stroke": {"value": "#fff"} 32 | }, 33 | "update": { 34 | "fill": {"value": "#ccc"} 35 | }, 36 | "hover": { 37 | "fill": {"value": "pink"} 38 | } 39 | } 40 | }, 41 | { 42 | "type": "text", 43 | "from": {"data": "table"}, 44 | "properties": { 45 | "enter": { 46 | "x": {"field": {"group": "width"}, "mult": 0.5}, 47 | "y": {"field": {"group": "height"}, "mult": 0.5}, 48 | "radius": {"scale": "r", "field": "data", "offset": 8}, 49 | "theta": {"field": "layout_mid"}, 50 | "fill": {"value": "#000"}, 51 | "align": {"value": "center"}, 52 | "baseline": {"value": "middle"}, 53 | "text": {"field": "data"} 54 | } 55 | } 56 | } 57 | ] 58 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/area.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 200, 4 | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, 5 | "data": [ 6 | { 7 | "name": "table", 8 | "values": [ 9 | {"x": 1, "y": 28}, {"x": 2, "y": 55}, 10 | {"x": 3, "y": 43}, {"x": 4, "y": 91}, 11 | {"x": 5, "y": 81}, {"x": 6, "y": 53}, 12 | {"x": 7, "y": 19}, {"x": 8, "y": 87}, 13 | {"x": 9, "y": 52}, {"x": 10, "y": 48}, 14 | {"x": 11, "y": 24}, {"x": 12, "y": 49}, 15 | {"x": 13, "y": 87}, {"x": 14, "y": 66}, 16 | {"x": 15, "y": 17}, {"x": 16, "y": 27}, 17 | {"x": 17, "y": 68}, {"x": 18, "y": 16}, 18 | {"x": 19, "y": 49}, {"x": 20, "y": 15} 19 | ] 20 | } 21 | ], 22 | "scales": [ 23 | { 24 | "name": "x", 25 | "type": "linear", 26 | "range": "width", 27 | "zero": false, 28 | "domain": {"data": "table", "field": "x"} 29 | }, 30 | { 31 | "name": "y", 32 | "type": "linear", 33 | "range": "height", 34 | "nice": true, 35 | "domain": {"data": "table", "field": "y"} 36 | } 37 | ], 38 | "axes": [ 39 | {"type": "x", "scale": "x", "ticks": 20}, 40 | {"type": "y", "scale": "y"} 41 | ], 42 | "marks": [ 43 | { 44 | "type": "area", 45 | "from": {"data": "table"}, 46 | "properties": { 47 | "enter": { 48 | "interpolate": {"value": "monotone"}, 49 | "x": {"scale": "x", "field": "x"}, 50 | "y": {"scale": "y", "field": "y"}, 51 | "y2": {"scale": "y", "value": 0}, 52 | "fill": {"value": "steelblue"} 53 | }, 54 | "update": { 55 | "fillOpacity": {"value": 1} 56 | }, 57 | "hover": { 58 | "fillOpacity": {"value": 0.5} 59 | } 60 | } 61 | } 62 | ] 63 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 400, 3 | "height": 200, 4 | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, 5 | "data": [ 6 | { 7 | "name": "table", 8 | "values": [ 9 | {"x": 1, "y": 28}, {"x": 2, "y": 55}, 10 | {"x": 3, "y": 43}, {"x": 4, "y": 91}, 11 | {"x": 5, "y": 81}, {"x": 6, "y": 53}, 12 | {"x": 7, "y": 19}, {"x": 8, "y": 87}, 13 | {"x": 9, "y": 52}, {"x": 10, "y": 48}, 14 | {"x": 11, "y": 24}, {"x": 12, "y": 49}, 15 | {"x": 13, "y": 87}, {"x": 14, "y": 66}, 16 | {"x": 15, "y": 17}, {"x": 16, "y": 27}, 17 | {"x": 17, "y": 68}, {"x": 18, "y": 16}, 18 | {"x": 19, "y": 49}, {"x": 20, "y": 15} 19 | ] 20 | } 21 | ], 22 | "scales": [ 23 | { 24 | "name": "x", 25 | "type": "ordinal", 26 | "range": "width", 27 | "domain": {"data": "table", "field": "x"} 28 | }, 29 | { 30 | "name": "y", 31 | "type": "linear", 32 | "range": "height", 33 | "domain": {"data": "table", "field": "y"}, 34 | "nice": true 35 | } 36 | ], 37 | "axes": [ 38 | {"type": "x", "scale": "x"}, 39 | {"type": "y", "scale": "y"} 40 | ], 41 | "marks": [ 42 | { 43 | "type": "rect", 44 | "from": {"data": "table"}, 45 | "properties": { 46 | "enter": { 47 | "x": {"scale": "x", "field": "x"}, 48 | "width": {"scale": "x", "band": true, "offset": -1}, 49 | "y": {"scale": "y", "field": "y"}, 50 | "y2": {"scale": "y", "value": 0} 51 | }, 52 | "update": { 53 | "fill": {"value": "steelblue"} 54 | }, 55 | "hover": { 56 | "fill": {"value": "red"} 57 | } 58 | } 59 | } 60 | ] 61 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/barley.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 200, 3 | "height": 720, 4 | "data": [ 5 | { 6 | "name": "barley", 7 | "url": "data/barley.json" 8 | } 9 | ], 10 | "scales": [ 11 | { 12 | "name": "g", 13 | "type": "ordinal", 14 | "range": "height", 15 | "padding": 0.15, 16 | "domain": { 17 | "data": "barley", "field": "site", 18 | "sort": {"field": "yield", "op": "median"} 19 | }, 20 | "reverse": true 21 | }, 22 | { 23 | "name": "x", 24 | "type": "linear", 25 | "nice": true, 26 | "range": "width", 27 | "domain": {"data": "barley", "field": "yield"} 28 | }, 29 | { 30 | "name": "c", 31 | "type": "ordinal", 32 | "range": "category10", 33 | "domain": {"data": "barley", "field": "year"} 34 | } 35 | ], 36 | "axes": [ 37 | {"type": "x", "scale": "x"} 38 | ], 39 | "legends": [ 40 | {"fill": "c", "title": "year"} 41 | ], 42 | "marks": [ 43 | { 44 | "name": "sites", 45 | "type": "group", 46 | "from": { 47 | "data": "barley", 48 | "transform": [{"type": "facet", "groupby": ["site"]}] 49 | }, 50 | "scales": [ 51 | { 52 | "name": "y", 53 | "type": "ordinal", 54 | "range": "height", 55 | "points": true, 56 | "padding": 1.2, 57 | "domain": { 58 | "data": "barley", "field": "variety", 59 | "sort": {"field": "yield", "op": "median"} 60 | }, 61 | "reverse": true 62 | } 63 | ], 64 | "axes": [ 65 | { 66 | "type": "y", 67 | "scale": "y", 68 | "tickSize": 0, 69 | "properties": {"axis": {"stroke": {"value": "transparent"}}} 70 | } 71 | ], 72 | "properties": { 73 | "enter": { 74 | "x": {"value": 0.5}, 75 | "y": {"scale": "g", "field": "key"}, 76 | "height": {"scale": "g", "band": true}, 77 | "width": {"field": {"group": "width"}}, 78 | "stroke": {"value": "#ccc"} 79 | } 80 | }, 81 | "marks": [ 82 | { 83 | "type": "symbol", 84 | "properties": { 85 | "enter": { 86 | "x": {"scale": "x", "field": "yield"}, 87 | "y": {"scale": "y", "field": "variety"}, 88 | "size": {"value": 50}, 89 | "stroke": {"scale": "c", "field": "year"}, 90 | "strokeWidth": {"value": 2} 91 | } 92 | } 93 | } 94 | ] 95 | }, 96 | { 97 | "type": "text", 98 | "from": {"mark": "sites"}, 99 | "properties": { 100 | "enter": { 101 | "x": {"field": {"group": "width"}, "mult": 0.5}, 102 | "y": {"field": "y", "offset": -2}, 103 | "fontWeight": {"value": "bold"}, 104 | "text": {"field": "datum.site"}, 105 | "align": {"value": "center"}, 106 | "baseline": {"value": "bottom"}, 107 | "fill": {"value": "#000"} 108 | } 109 | } 110 | } 111 | ] 112 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/brush.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 200, 3 | "height": 200, 4 | 5 | "signals": [ 6 | { 7 | "name": "brush_start", 8 | "init": {}, 9 | "streams": [{ 10 | "type": "mousedown", 11 | "expr": "{x: iscale('x', clamp(eventX(), 0, width)), y: iscale('y', clamp(eventY(), 0, height))}" 12 | }] 13 | }, 14 | { 15 | "name": "brush_end", 16 | "init": {}, 17 | "streams": [{ 18 | "type": "mousedown, [mousedown, window:mouseup] > window:mousemove", 19 | "expr": "{x: iscale('x', clamp(eventX(), 0, width)), y: iscale('y', clamp(eventY(), 0, height))}" 20 | }] 21 | } 22 | ], 23 | 24 | "data": [{ 25 | "name": "iris", 26 | "url": "data/iris.json" 27 | }], 28 | 29 | "scales": [ 30 | { 31 | "name": "x", 32 | "type": "linear", 33 | "domain": {"data": "iris", "field": "sepalWidth"}, 34 | "range": "width", 35 | "zero": false 36 | }, 37 | { 38 | "name": "y", 39 | "type": "linear", 40 | "domain": {"data": "iris", "field": "petalLength"}, 41 | "range": "height", 42 | "nice": true, 43 | "zero": false 44 | }, 45 | { 46 | "name": "c", 47 | "type": "ordinal", 48 | "domain": {"data": "iris", "field": "species"}, 49 | "range": "category10" 50 | } 51 | ], 52 | 53 | "axes": [ 54 | {"type": "x", "scale": "x", "offset": 5, "ticks": 5, "title": "Sepal Width"}, 55 | {"type": "y", "scale": "y", "offset": 5, "ticks": 5, "title": "Petal Length"} 56 | ], 57 | 58 | "marks": [ 59 | { 60 | "type": "symbol", 61 | "from": {"data": "iris"}, 62 | "properties": { 63 | "enter": { 64 | "x": {"scale": "x", "field": "sepalWidth"}, 65 | "y": {"scale": "y", "field": "petalLength"}, 66 | "fill": {"scale": "c", "field": "species"}, 67 | "fillOpacity": {"value": 0.5}, 68 | "size": {"value": 100} 69 | }, 70 | "update": { 71 | "fill": [ 72 | { "test": "inrange(datum.sepalWidth, brush_start.x, brush_end.x) && inrange(datum.petalLength, brush_start.y, brush_end.y)", 73 | "scale": "c", 74 | "field": "species" 75 | }, 76 | {"value": "grey"} 77 | ] 78 | } 79 | } 80 | }, 81 | 82 | { 83 | "type": "rect", 84 | "properties": { 85 | "enter": { 86 | "fill": {"value": "grey"}, 87 | "fillOpacity": {"value": 0.2} 88 | }, 89 | "update": { 90 | "x": {"scale": "x", "signal": "brush_start.x"}, 91 | "x2": {"scale": "x", "signal": "brush_end.x"}, 92 | "y": {"scale": "y", "signal": "brush_start.y"}, 93 | "y2": {"scale": "y", "signal": "brush_end.y"} 94 | } 95 | } 96 | } 97 | ] 98 | } 99 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/choropleth.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 960, 3 | "height": 500, 4 | "data": [ 5 | { 6 | "name": "unemp", 7 | "url": "data/unemployment.tsv", 8 | "format": {"type": "tsv", "parse": "auto"} 9 | }, 10 | { 11 | "name": "counties", 12 | "url": "data/us-10m.json", 13 | "format": {"type": "topojson", "feature": "counties"}, 14 | "transform": [ 15 | { "type": "geopath", "projection": "albersUsa" }, 16 | { "type": "lookup", "on": "unemp", "onKey": "id", 17 | "keys": ["id"], "as": ["unemp"] }, 18 | { "type": "filter", 19 | "test": "datum.layout_path!=null && datum.unemp!=null" } 20 | ] 21 | } 22 | ], 23 | "scales": [ 24 | { 25 | "name": "color", 26 | "type": "quantize", 27 | "domain": [0, 0.15], 28 | "range": ["#f7fbff", "#deebf7", "#c6dbef", "#9ecae1", "#6baed6", 29 | "#4292c6", "#2171b5", "#08519c", "#08306b"] 30 | } 31 | ], 32 | "marks": [ 33 | { 34 | "type": "path", 35 | "from": {"data": "counties"}, 36 | "properties": { 37 | "enter": { "path": {"field": "layout_path"} }, 38 | "update": { "fill": {"scale": "color", "field": "unemp.rate"} }, 39 | "hover": { "fill": {"value": "red"} } 40 | } 41 | } 42 | ] 43 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/error.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 400, 3 | "height": 100, 4 | "padding": {"top": 30, "left": 30, "bottom": 30, "right": 10}, 5 | "data": [ 6 | { 7 | "name": "aggregate", 8 | "values": [ 9 | {"label": "Category A", "mean": 1, "lo": 0, "hi": 2}, 10 | {"label": "Category B", "mean": 2, "lo": 1.5, "hi": 2.5}, 11 | {"label": "Category C", "mean": 3, "lo": 1.7, "hi": 4.3}, 12 | {"label": "Category D", "mean": 4, "lo": 3, "hi": 5}, 13 | {"label": "Category E", "mean": 5, "lo": 4.1, "hi": 5.9} 14 | ] 15 | } 16 | ], 17 | "scales": [ 18 | { 19 | "name": "y", 20 | "type": "ordinal", 21 | "range": "height", 22 | "domain": {"data": "aggregate", "field": "label"} 23 | }, 24 | { 25 | "name": "x", 26 | "type": "linear", 27 | "domain": {"data": "aggregate", "field": "hi"}, 28 | "range": [100, 400], 29 | "nice": true, 30 | "zero": true 31 | } 32 | ], 33 | "axes": [ 34 | {"type": "x", "scale": "x", "ticks": 6} 35 | ], 36 | "marks": [ 37 | { 38 | "type": "text", 39 | "from": {"data": "aggregate"}, 40 | "properties": { 41 | "enter": { 42 | "x": {"value": 0}, 43 | "y": {"scale": "y", "field": "label"}, 44 | "baseline": {"value": "middle"}, 45 | "fill": {"value": "#000"}, 46 | "text": {"field": "label"}, 47 | "font": {"value": "Helvetica Neue"}, 48 | "fontSize": {"value": 13} 49 | } 50 | } 51 | }, 52 | { 53 | "type": "rect", 54 | "from": {"data": "aggregate"}, 55 | "properties": { 56 | "enter": { 57 | "x": {"scale": "x", "field": "lo"}, 58 | "x2": {"scale": "x", "field": "hi"}, 59 | "y": {"scale": "y", "field": "label", "offset": -1}, 60 | "height": {"value": 1}, 61 | "fill": {"value": "#888"} 62 | } 63 | } 64 | }, 65 | { 66 | "type": "symbol", 67 | "from": {"data": "aggregate"}, 68 | "properties": { 69 | "enter": { 70 | "x": {"scale": "x", "field": "mean"}, 71 | "y": {"scale": "y", "field": "label"}, 72 | "size": {"value": 40}, 73 | "fill": {"value": "#000"} 74 | } 75 | } 76 | } 77 | ] 78 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/force-params.json: -------------------------------------------------------------------------------- 1 | { 2 | "url": "app/spec/vega/force_drag.json", 3 | "parameters": [ 4 | { 5 | "name": "distance", 6 | "signal": "linkDistance", "type": "range", 7 | "value": 30, "min": 10, "max": 200, 8 | "rewrite": ["data[2].transform[0].linkDistance"] 9 | }, 10 | { 11 | "name": "strength", 12 | "signal": "linkStrength", "type": "range", 13 | "value": 0.5, "min": 0.1, "max": 2, 14 | "rewrite": ["data[2].transform[0].linkStrength"] 15 | }, 16 | { 17 | "signal": "charge", "type": "range", 18 | "value": -80, "min": -200, "max": 100, 19 | "rewrite": ["data[2].transform[0].charge"] 20 | }, 21 | { 22 | "signal": "gravity", "type": "range", 23 | "value": 0.1, "min": 0, "max": 1, 24 | "rewrite": ["data[2].transform[0].gravity"] 25 | }, 26 | { 27 | "signal": "interactive", "type": "checkbox", "value": true, 28 | "rewrite": ["data[2].transform[0].interactive"] 29 | } 30 | ] 31 | } 32 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/force.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 500, 4 | "padding": {"top":0, "bottom":0, "left":0, "right":0}, 5 | 6 | "data": [ 7 | { 8 | "name": "edges", 9 | "url": "data/miserables.json", 10 | "format": {"type": "json", "property": "links"} 11 | }, 12 | { 13 | "name": "nodes", 14 | "url": "data/miserables.json", 15 | "format": {"type": "json", "property": "nodes"}, 16 | "transform": [ 17 | { 18 | "type": "force", 19 | "links": "edges", 20 | "linkDistance": 70, 21 | "charge": -80, 22 | "iterations": 1000 23 | } 24 | ] 25 | } 26 | ], 27 | 28 | "scales": [ 29 | { 30 | "name": "shapes", 31 | "type": "ordinal", 32 | "domain": {"data": "nodes", "field": "group"}, 33 | "range": "shapes" 34 | } 35 | ], 36 | 37 | "marks": [ 38 | { 39 | "type": "path", 40 | "from": { 41 | "data": "edges", 42 | "transform": [ 43 | { "type": "lookup", "on": "nodes", 44 | "keys": ["source", "target"], 45 | "as": ["_source", "_target"] }, 46 | { "type": "linkpath", "shape": "line" } 47 | ] 48 | }, 49 | "properties": { 50 | "update": { 51 | "path": {"field": "layout_path"}, 52 | "stroke": {"value": "#ccc"}, 53 | "strokeWidth": {"value": 0.5} 54 | } 55 | } 56 | }, 57 | { 58 | "type": "symbol", 59 | "from": {"data": "nodes"}, 60 | "properties": { 61 | "enter": { 62 | "shape": {"scale": "shapes", "field": "group"}, 63 | "fillOpacity": {"value": 0.3}, 64 | "stroke": {"value": "steelblue"} 65 | }, 66 | "update": { 67 | "x": {"field": "layout_x"}, 68 | "y": {"field": "layout_y"}, 69 | "fill": {"value": "steelblue"} 70 | }, 71 | "hover": { 72 | "fill": {"value": "#f00"} 73 | } 74 | } 75 | } 76 | ] 77 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/force_drag.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 800, 3 | "height": 500, 4 | "padding": {"top":0, "bottom":0, "left":0, "right":0}, 5 | 6 | "signals": [ 7 | { 8 | "name": "hover", "init": null, 9 | "streams": [ 10 | { "type": "symbol:mouseover", 11 | "expr": "datum._id" }, 12 | { "type": "window:mouseup, symbol:mouseout", "expr": "null" } 13 | ] 14 | }, 15 | { 16 | "name": "grab", "init": null, 17 | "streams": [ 18 | { "type": "symbol:touchstart, symbol:mousedown", 19 | "expr": "datum._id" }, 20 | { "type": "touchend, window:mouseup", "expr": "null" } 21 | ] 22 | }, 23 | { 24 | "name": "active", "init": null, 25 | "streams": [ 26 | { "type": "hover, grab", "expr": "{id: grab || hover}" }, 27 | { 28 | "type": "symbol:touchmove, [symbol:mousedown, window:mouseup] > window:mousemove", 29 | "expr": "{x: eventX(), y: eventY(), id: grab, update: true}" 30 | } 31 | ] 32 | }, 33 | { 34 | "name": "dblclick", "init": null, "verbose": true, 35 | "streams": [ 36 | { "type": "symbol:dblclick", "expr": "datum._id" } 37 | ] 38 | } 39 | ], 40 | 41 | "data": [ 42 | { 43 | "name": "fixed", 44 | "modify": [ 45 | {"type": "toggle", "signal": "dblclick", "field": "id"} 46 | ] 47 | }, 48 | { 49 | "name": "edges", 50 | "url": "data/miserables.json", 51 | "format": {"type": "json", "property": "links"} 52 | }, 53 | { 54 | "name": "nodes", 55 | "url": "data/miserables.json", 56 | "format": {"type": "json", "property": "nodes"}, 57 | "transform": [ 58 | { 59 | "type": "force", 60 | "size": [800, 500], 61 | "links": "edges", 62 | "linkDistance": 30, 63 | "linkStrength": 0.5, 64 | "charge": -80, 65 | "interactive": true, 66 | "fixed": "fixed", 67 | "active": {"signal": "active"} 68 | } 69 | ] 70 | } 71 | ], 72 | 73 | "marks": [ 74 | { 75 | "type": "path", 76 | "from": { 77 | "data": "edges", 78 | "transform": [ 79 | { "type": "lookup", "on": "nodes", 80 | "keys": ["source", "target"], 81 | "as": ["_source", "_target"] }, 82 | { "type": "linkpath", "shape": "line" } 83 | ] 84 | }, 85 | "properties": { 86 | "update": { 87 | "path": {"field": "layout_path"}, 88 | "stroke": {"value": "#ccc"}, 89 | "strokeWidth": {"value": 0.5} 90 | } 91 | } 92 | }, 93 | { 94 | "type": "symbol", 95 | "from": {"data": "nodes"}, 96 | "properties": { 97 | "enter": { 98 | "fillOpacity": {"value": 0.3}, 99 | "fill": {"value": "steelblue"} 100 | }, 101 | "update": { 102 | "x": {"field": "layout_x"}, 103 | "y": {"field": "layout_y"}, 104 | "stroke": [ 105 | { "test": "indata('fixed', datum._id, 'id')", 106 | "value": "firebrick" }, 107 | { "value": "steelblue" } 108 | ] 109 | } 110 | } 111 | } 112 | ] 113 | } 114 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/grouped_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 300, 3 | "height": 240, 4 | "data": [ 5 | { 6 | "name": "table", 7 | "values": [ 8 | {"category":"A", "position":0, "value":0.1}, 9 | {"category":"A", "position":1, "value":0.6}, 10 | {"category":"A", "position":2, "value":0.9}, 11 | {"category":"A", "position":3, "value":0.4}, 12 | {"category":"B", "position":0, "value":0.7}, 13 | {"category":"B", "position":1, "value":0.2}, 14 | {"category":"B", "position":2, "value":1.1}, 15 | {"category":"B", "position":3, "value":0.8}, 16 | {"category":"C", "position":0, "value":0.6}, 17 | {"category":"C", "position":1, "value":0.1}, 18 | {"category":"C", "position":2, "value":0.2}, 19 | {"category":"C", "position":3, "value":0.7} 20 | ] 21 | } 22 | ], 23 | "scales": [ 24 | { 25 | "name": "cat", 26 | "type": "ordinal", 27 | "domain": {"data": "table", "field": "category"}, 28 | "range": "height", 29 | "padding": 0.2 30 | }, 31 | { 32 | "name": "val", 33 | "type": "linear", 34 | "domain": {"data": "table", "field": "value"}, 35 | "range": "width", 36 | "round": true, 37 | "nice": true 38 | }, 39 | { 40 | "name": "color", 41 | "type": "ordinal", 42 | "domain": {"data": "table", "field": "position"}, 43 | "range": "category20" 44 | } 45 | ], 46 | "axes": [ 47 | {"type": "y", "scale": "cat", "tickSize": 0, "tickPadding": 8}, 48 | {"type": "x", "scale": "val"} 49 | ], 50 | "marks": [ 51 | { 52 | "type": "group", 53 | "from": { 54 | "data": "table", 55 | "transform": [{"type":"facet", "groupby": ["category"]}] 56 | }, 57 | "properties": { 58 | "enter": { 59 | "y": {"scale": "cat", "field": "key"}, 60 | "height": {"scale": "cat", "band": true} 61 | } 62 | }, 63 | "scales": [ 64 | { 65 | "name": "pos", 66 | "type": "ordinal", 67 | "range": "height", 68 | "domain": {"field": "position"} 69 | } 70 | ], 71 | "marks": [ 72 | { 73 | "name": "bars", 74 | "type": "rect", 75 | "properties": { 76 | "enter": { 77 | "y": {"scale": "pos", "field": "position"}, 78 | "height": {"scale": "pos", "band": true}, 79 | "x": {"scale": "val", "field": "value"}, 80 | "x2": {"scale": "val", "value": 0}, 81 | "fill": {"scale": "color", "field": "position"} 82 | } 83 | } 84 | }, 85 | { 86 | "type": "text", 87 | "from": {"mark": "bars"}, 88 | "properties": { 89 | "enter": { 90 | "x": {"field": "x2", "offset": -5}, 91 | "y": {"field": "y"}, 92 | "dy": {"field": "height", "mult": 0.5}, 93 | "fill": {"value": "white"}, 94 | "align": {"value": "right"}, 95 | "baseline": {"value": "middle"}, 96 | "text": {"field": "datum.value"} 97 | } 98 | } 99 | } 100 | ] 101 | } 102 | ] 103 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/heatmap.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 800, 3 | "height": 500, 4 | 5 | "data": [ 6 | { 7 | "name": "temperature", 8 | "url": "data/seattle-temps.csv", 9 | "format": {"type": "csv", "parse": {"temp": "number", "date": "date"}}, 10 | "transform": [ 11 | {"type": "formula", "field": "hour", "expr": "hours(datum.date)"}, 12 | { "type": "formula", "field": "date", 13 | "expr": "datetime(year(datum.date), month(datum.date), date(datum.date))"} 14 | ] 15 | } 16 | ], 17 | 18 | "scales": [ 19 | { 20 | "name": "x", 21 | "type": "time", 22 | "domain": {"data": "temperature", "field": "date"}, 23 | "range": "width" 24 | }, { 25 | "name": "y", 26 | "type": "ordinal", 27 | "domain": {"data": "temperature", "field": "hour"}, 28 | "range": "height", 29 | "round": false 30 | }, { 31 | "name": "c", 32 | "type": "linear", 33 | "domain": [37.5, 41.3, 45.1, 48.9, 52.7, 56.5, 60.3, 64.1, 67.9, 71.7, 75.5], 34 | "range": ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"], 35 | "zero": false 36 | } 37 | ], 38 | 39 | "axes": [ 40 | {"type": "x", "scale": "x"}, 41 | {"type": "y", "scale": "y"} 42 | ], 43 | 44 | "legends": [{"fill": "c", "values": [37.5, 56.5, 75.5]}], 45 | 46 | "marks": [ 47 | { 48 | "type": "rect", 49 | "from": {"data": "temperature"}, 50 | "properties": { 51 | "enter": { 52 | "x": {"scale": "x", "field": "date"}, 53 | "width": {"value": 5}, 54 | "y": {"scale": "y", "field": "hour"}, 55 | "height": {"scale": "y", "band": true}, 56 | "fill": {"scale": "c", "field": "temp"} 57 | } 58 | } 59 | } 60 | ] 61 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/horizon.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 50, 4 | 5 | "signals": [ 6 | { "name": "layers", "init": 2, 7 | "streams": [ 8 | {"type": "click", "expr": "1 + (layers % 4)"} 9 | ] 10 | }, 11 | { "name": "vheight", "init": {"expr": "height * layers"}, 12 | "streams": [ 13 | {"type": "layers, height", "expr": "height * layers"} 14 | ] 15 | }, 16 | { "name": "opacity", "init": {"expr": "pow(layers, -2/3)"}, 17 | "streams": [ 18 | {"type": "layers", "expr": "pow(layers, -2/3)"} 19 | ] 20 | } 21 | ], 22 | 23 | "data": [ 24 | { 25 | "name": "layer_indices", 26 | "values": [0, 1, 2, 3], 27 | "transform": [ 28 | {"type": "filter", "test": "datum.data < layers"}, 29 | {"type": "formula", "field": "offset", "expr": "datum.data * -height"} 30 | ] 31 | }, 32 | { 33 | "name": "table", 34 | "values": [ 35 | {"x": 1, "y": 28}, {"x": 2, "y": 55}, 36 | {"x": 3, "y": 43}, {"x": 4, "y": 91}, 37 | {"x": 5, "y": 81}, {"x": 6, "y": 53}, 38 | {"x": 7, "y": 19}, {"x": 8, "y": 87}, 39 | {"x": 9, "y": 52}, {"x": 10, "y": 48}, 40 | {"x": 11, "y": 24}, {"x": 12, "y": 49}, 41 | {"x": 13, "y": 87}, {"x": 14, "y": 66}, 42 | {"x": 15, "y": 17}, {"x": 16, "y": 27}, 43 | {"x": 17, "y": 68}, {"x": 18, "y": 16}, 44 | {"x": 19, "y": 49}, {"x": 20, "y": 15} 45 | ] 46 | } 47 | ], 48 | "scales": [ 49 | { 50 | "name": "x", 51 | "type": "linear", 52 | "range": "width", 53 | "zero": false, "round": true, 54 | "domain": {"data": "table", "field": "x"} 55 | }, 56 | { 57 | "name": "y", 58 | "type": "linear", 59 | "range": [{"signal":"vheight"}, 0], 60 | "nice": true, 61 | "domain": {"data": "table", "field": "y"} 62 | } 63 | ], 64 | "axes": [ 65 | {"type": "x", "scale": "x", "ticks": 20} 66 | ], 67 | "marks": [ 68 | { 69 | "type": "group", 70 | "properties": { 71 | "update": { 72 | "width": {"field": {"group": "width"}}, 73 | "height": {"field": {"group": "height"}}, 74 | "clip": {"value": true} 75 | } 76 | }, 77 | "marks": [ 78 | { 79 | "type": "group", 80 | "from": {"data": "layer_indices"}, 81 | "properties": { 82 | "update": { 83 | "y": {"field": "offset"} 84 | } 85 | }, 86 | "marks": [ 87 | { 88 | "type": "area", 89 | "from": {"data": "table"}, 90 | "properties": { 91 | "enter": { 92 | "interpolate": {"value": "monotone"}, 93 | "x": {"scale": "x", "field": "x"}, 94 | "fill": {"value": "steelblue"} 95 | }, 96 | "update": { 97 | "y": {"scale": "y", "field": "y"}, 98 | "y2": {"scale": "y", "value": 0}, 99 | "fillOpacity": {"signal": "opacity"} 100 | } 101 | } 102 | } 103 | ] 104 | } 105 | ] 106 | } 107 | ] 108 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/image.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 200, 3 | "height": 200, 4 | "padding": {"left":30, "top":10, "bottom":30, "right":10}, 5 | "data": [ 6 | { 7 | "name": "data", 8 | "values": [ 9 | {"x":0.5, "y":0.5, "img":"data/ffox.png"}, 10 | {"x":1.5, "y":1.5, "img":"data/gimp.png"}, 11 | {"x":2.5, "y":2.5, "img":"data/7zip.png"} 12 | ] 13 | } 14 | ], 15 | "scales": [ 16 | {"name": "x", "type": "linear", "domain": [0, 3], "range": "width"}, 17 | {"name": "y", "type": "linear", "domain": [0, 3], "range": "height"} 18 | ], 19 | "axes": [ 20 | {"type": "x", "scale": "x"}, 21 | {"type": "y", "scale": "y"} 22 | ], 23 | "marks": [ 24 | { 25 | "type": "image", 26 | "from": {"data": "data"}, 27 | "properties": { 28 | "enter": { 29 | "url": {"field": "img"}, 30 | "width": {"value": 50}, 31 | "height": {"value": 50}, 32 | "x": {"scale": "x", "field": "x"}, 33 | "y": {"scale": "y", "field": "y"}, 34 | "align": {"value": "center"}, 35 | "baseline": {"value": "middle"} 36 | }, 37 | "update": { 38 | "opacity": {"value": 1.0} 39 | }, 40 | "hover": { 41 | "opacity": {"value": 0.5} 42 | } 43 | } 44 | } 45 | ] 46 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/lifelines.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 400, 3 | "height": 100, 4 | "data": [ 5 | { 6 | "name": "people", 7 | "values": [ 8 | {"label":"Washington", "born":-7506057600000, "died":-5366196000000, 9 | "enter":-5701424400000, "leave":-5453884800000}, 10 | {"label":"Adams", "born":-7389766800000, "died":-4528285200000, 11 | "enter":-5453884800000, "leave":-5327740800000}, 12 | {"label":"Jefferson", "born":-7154586000000, "died":-4528285200000, 13 | "enter":-5327740800000, "leave":-5075280000000}, 14 | {"label":"Madison", "born":-6904544400000, "died":-4213184400000, 15 | "enter":-5075280000000, "leave":-4822819200000}, 16 | {"label":"Monroe", "born":-6679904400000, "died":-4370518800000, 17 | "enter":-4822819200000, "leave":-4570358400000} 18 | ] 19 | }, 20 | { 21 | "name": "events", 22 | "format": {"type":"json", "parse":{"when":"date"}}, 23 | "values": [ 24 | {"name":"Decl. of Independence", "when":"July 4, 1776"}, 25 | {"name":"U.S. Constitution", "when":"3/4/1789"}, 26 | {"name":"Louisiana Purchase", "when":"April 30, 1803"}, 27 | {"name":"Monroe Doctrine", "when":"Dec 2, 1823"} 28 | ] 29 | } 30 | 31 | ], 32 | "scales": [ 33 | { 34 | "name": "y", 35 | "type": "ordinal", 36 | "range": "height", 37 | "domain": {"data": "people", "field": "label"} 38 | }, 39 | { 40 | "name": "x", 41 | "type": "time", 42 | "range": "width", 43 | "round": true, 44 | "nice": "year", 45 | "domain": {"data": "people", "field": ["born", "died"]} 46 | } 47 | ], 48 | "axes": [ 49 | {"type": "x", "scale": "x"} 50 | ], 51 | "marks": [ 52 | { 53 | "type": "text", 54 | "from": {"data": "events"}, 55 | "properties": { 56 | "enter": { 57 | "x": {"scale": "x", "field": "when"}, 58 | "y": {"value": -10}, 59 | "angle": {"value": -25}, 60 | "fill": {"value": "#000"}, 61 | "text": {"field": "name"}, 62 | "font": {"value": "Helvetica Neue"}, 63 | "fontSize": {"value": 10} 64 | } 65 | } 66 | }, 67 | { 68 | "type": "rect", 69 | "from": {"data": "events"}, 70 | "properties": { 71 | "enter": { 72 | "x": {"scale": "x", "field": "when"}, 73 | "y": {"value": -8}, 74 | "width": {"value": 1}, 75 | "height": {"field": {"group": "height"}, "offset": 8}, 76 | "fill": {"value": "#888"} 77 | } 78 | } 79 | }, 80 | { 81 | "type": "text", 82 | "from": {"data": "people"}, 83 | "properties": { 84 | "enter": { 85 | "x": {"scale": "x", "field": "born"}, 86 | "y": {"scale": "y", "field": "label", "offset": -3}, 87 | "fill": {"value": "#000"}, 88 | "text": {"field": "label"}, 89 | "font": {"value": "Helvetica Neue"}, 90 | "fontSize": {"value": 10} 91 | } 92 | } 93 | }, 94 | { 95 | "type": "rect", 96 | "from": {"data": "people"}, 97 | "properties": { 98 | "enter": { 99 | "x": {"scale": "x", "field": "born"}, 100 | "x2": {"scale": "x", "field": "died"}, 101 | "y": {"scale": "y", "field": "label"}, 102 | "height": {"value": 2}, 103 | "fill": {"value": "#557"} 104 | } 105 | } 106 | }, 107 | { 108 | "type": "rect", 109 | "from": {"data": "people"}, 110 | "properties": { 111 | "enter": { 112 | "x": {"scale": "x", "field": "enter"}, 113 | "x2": {"scale": "x", "field": "leave"}, 114 | "y": {"scale": "y", "field": "label", "offset":-1}, 115 | "height": {"value": 4}, 116 | "fill": {"value": "#e44"} 117 | } 118 | } 119 | } 120 | ] 121 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/map-params.json: -------------------------------------------------------------------------------- 1 | { 2 | "parameters": [ 3 | { 4 | "signal": "rotate", "type": "range", 5 | "value": 0, "min": -360, "max": 360 6 | } 7 | ], 8 | "spec": { 9 | "width": 800, 10 | "height": 500, 11 | "padding": 0, 12 | "signals": [ 13 | { 14 | "name": "down", "init": {}, 15 | "streams": [{ 16 | "type": "mousedown", 17 | "expr": "{angle: rotate, x: eventX()}" 18 | }] 19 | }, 20 | { 21 | "name": "rotate", "init": 0, 22 | "streams": [{ 23 | "type": "[mousedown, window:mouseup] > window:mousemove", 24 | "expr": "(down.angle + (eventX() - down.x)) % 360" 25 | }] 26 | } 27 | ], 28 | "data": [ 29 | { 30 | "name": "world", 31 | "url": "data/world-110m.json", 32 | "format": {"type": "topojson", "feature": "countries"}, 33 | "transform": [{ 34 | "type": "geopath", 35 | "projection": "winkel3", 36 | "rotate": {"signal": "rotate"}, 37 | "scale": 170, 38 | "translate": [400, 250] 39 | }] 40 | } 41 | ], 42 | "marks": [ 43 | { 44 | "type": "path", 45 | "from": {"data": "world"}, 46 | "properties": { 47 | "enter": { 48 | "stroke": {"value": "#fff"} 49 | }, 50 | "update": { 51 | "path": {"field": "layout_path"}, 52 | "fill": {"value": "#ccc"} 53 | }, 54 | "hover": { 55 | "fill": {"value": "pink"} 56 | } 57 | } 58 | } 59 | ] 60 | } 61 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/map.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 740, 3 | "height": 500, 4 | "padding": 0, 5 | "data": [ 6 | { 7 | "name": "world", 8 | "url": "data/world-110m.json", 9 | "format": {"type": "topojson", "feature": "countries"}, 10 | "transform": [{ 11 | "type": "geopath", 12 | "projection": "winkel3", 13 | "scale": 170, 14 | "translate": [350, 250] 15 | }] 16 | } 17 | ], 18 | "marks": [ 19 | { 20 | "type": "path", 21 | "from": {"data": "world"}, 22 | "properties": { 23 | "enter": { 24 | "stroke": {"value": "#fff"}, 25 | "path": {"field": "layout_path"} 26 | }, 27 | "update": {"fill": {"value": "#ccc"}}, 28 | "hover": {"fill": {"value": "pink"}} 29 | } 30 | } 31 | ] 32 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/population.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 640, 3 | "height": 400, 4 | "data": [ 5 | { 6 | "name": "pop2000", 7 | "url": "data/population.json", 8 | "transform": [ 9 | {"type": "filter", "test": "datum.year == 2000"} 10 | ] 11 | } 12 | ], 13 | "scales": [ 14 | { 15 | "name": "g", 16 | "type": "ordinal", 17 | "domain": [2, 1], 18 | "range": "width" 19 | }, 20 | { 21 | "name": "y", 22 | "type": "ordinal", 23 | "range": "height", 24 | "reverse": true, 25 | "domain": {"data": "pop2000", "field": "age"} 26 | }, 27 | { 28 | "name": "c", 29 | "type": "ordinal", 30 | "domain": [1, 2], 31 | "range": ["#1f77b4", "#e377c2"] 32 | } 33 | ], 34 | "marks": [ 35 | { 36 | "type": "text", 37 | "interactive": false, 38 | "from": { 39 | "data": "pop2000", 40 | "transform": [{"type":"aggregate", "groupby":["age"]}] 41 | }, 42 | "properties": { 43 | "enter": { 44 | "x": {"field": {"group": "width"}, "mult": 0.5, "offset": -15}, 45 | "y": {"scale": "y", "field": "age", "offset": 11}, 46 | "text": {"field": "age"}, 47 | "baseline": {"value": "middle"}, 48 | "align": {"value": "center"}, 49 | "fill": {"value": "#000"} 50 | } 51 | } 52 | }, 53 | { 54 | "type": "group", 55 | "from": { 56 | "data": "pop2000", 57 | "transform": [ 58 | {"type":"facet", "groupby": ["sex"]}, 59 | {"type":"formula", "field":"reverse", "expr":"datum.key==2"} 60 | ] 61 | }, 62 | "properties": { 63 | "update": { 64 | "x": {"scale": "g", "field": "key"}, 65 | "y": {"value": 0}, 66 | "width": {"scale": "g", "band": true, "offset": -30}, 67 | "height": {"field": {"group": "height"}} 68 | } 69 | }, 70 | "scales": [ 71 | { 72 | "name": "x", 73 | "type": "linear", 74 | "range": "width", 75 | "reverse": {"field": "reverse"}, 76 | "nice": true, 77 | "domain": {"data": "pop2000", "field": "people"} 78 | } 79 | ], 80 | "axes": [ 81 | {"type": "x", "scale": "x", "format": "s"} 82 | ], 83 | "marks": [ 84 | { 85 | "type": "rect", 86 | "properties": { 87 | "enter": { 88 | "x": {"scale": "x", "field": "people"}, 89 | "x2": {"scale": "x", "value": 0}, 90 | "y": {"scale": "y", "field": "age"}, 91 | "height": {"scale": "y", "band": true, "offset": -1}, 92 | "fillOpacity": {"value": 0.6}, 93 | "fill": {"scale": "c", "field": "sex"} 94 | } 95 | } 96 | } 97 | ] 98 | } 99 | ] 100 | } 101 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/scatter_matrix.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 600, 3 | "height": 600, 4 | "data": [ 5 | { 6 | "name": "iris", 7 | "url": "data/iris.json" 8 | }, 9 | { 10 | "name": "fields", 11 | "values": ["petalWidth", "petalLength", "sepalWidth", "sepalLength"] 12 | } 13 | ], 14 | "scales": [ 15 | { 16 | "name": "gx", 17 | "type": "ordinal", 18 | "range": "width", 19 | "round": true, 20 | "domain": {"data": "fields", "field": "data"} 21 | }, 22 | { 23 | "name": "gy", 24 | "type": "ordinal", 25 | "range": "height", 26 | "round": true, 27 | "reverse": true, 28 | "domain": {"data": "fields", "field": "data"} 29 | }, 30 | { 31 | "name": "c", 32 | "type": "ordinal", 33 | "domain": {"data": "iris", "field": "species"}, 34 | "range": "category10" 35 | } 36 | ], 37 | "legends": [ 38 | { 39 | "fill": "c", 40 | "title": "Species", 41 | "offset": 10, 42 | "properties": { 43 | "symbols": { 44 | "fillOpacity": {"value": 0.5}, 45 | "stroke": {"value": "transparent"} 46 | } 47 | } 48 | } 49 | ], 50 | "marks": [ 51 | { 52 | "type": "group", 53 | "from": { 54 | "data": "fields", 55 | "transform": [{"type": "cross"}] 56 | }, 57 | "properties": { 58 | "enter": { 59 | "x": {"scale": "gx", "field": "a.data"}, 60 | "y": {"scale": "gy", "field": "b.data"}, 61 | "width": {"scale": "gx", "band": true, "offset":-35}, 62 | "height": {"scale": "gy", "band": true, "offset":-35}, 63 | "fill": {"value": "#fff"}, 64 | "stroke": {"value": "#ddd"} 65 | } 66 | }, 67 | "scales": [ 68 | { 69 | "name": "x", 70 | "range": "width", 71 | "zero": false, 72 | "round": true, 73 | "domain": {"data": "iris", "field": {"parent": "a.data"}} 74 | }, 75 | { 76 | "name": "y", 77 | "range": "height", 78 | "zero": false, 79 | "round": true, 80 | "domain": {"data": "iris", "field": {"parent": "b.data"}} 81 | } 82 | ], 83 | "axes": [ 84 | {"type": "x", "scale": "x", "ticks": 5}, 85 | {"type": "y", "scale": "y", "ticks": 5} 86 | ], 87 | "marks": [ 88 | { 89 | "type": "symbol", 90 | "from": {"data": "iris"}, 91 | "properties": { 92 | "enter": { 93 | "x": {"scale": "x", "field": {"datum": {"parent": "a.data"}}}, 94 | "y": {"scale": "y", "field": {"datum": {"parent": "b.data"}}}, 95 | "fill": {"scale": "c", "field": "species"}, 96 | "fillOpacity": {"value": 0.5} 97 | }, 98 | "update": { 99 | "size": {"value": 36}, 100 | "stroke": {"value": "transparent"} 101 | }, 102 | "hover": { 103 | "size": {"value": 100}, 104 | "stroke": {"value": "white"} 105 | } 106 | } 107 | } 108 | ] 109 | } 110 | ] 111 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/shiftclick_select.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 200, 3 | "height": 200, 4 | 5 | "signals": [ 6 | { 7 | "name": "clickedPoint", 8 | "init": 0, 9 | "verbose": true, 10 | "streams": [{"type": "click", "expr": "datum._id"}] 11 | }, 12 | { 13 | "name": "shift", 14 | "init": false, 15 | "verbose": true, 16 | "streams": [{"type": "click", "expr": "event.shiftKey"}] 17 | } 18 | ], 19 | 20 | "data": [ 21 | { 22 | "name": "iris", 23 | "url": "data/iris.json" 24 | }, 25 | { 26 | "name": "selectedPoints", 27 | "modify": [ 28 | {"type": "clear", "test": "!shift"}, 29 | {"type": "toggle", "signal": "clickedPoint", "field": "id"} 30 | ] 31 | } 32 | ], 33 | 34 | "scales": [ 35 | { 36 | "name": "x", "type": "linear", 37 | "range": "width", "zero": false, 38 | "domain": {"data": "iris", "field": "sepalWidth"} 39 | }, 40 | { 41 | "name": "y", "type": "linear", 42 | "range": "height", 43 | "nice": true, "zero": false, 44 | "domain": {"data": "iris", "field": "petalLength"} 45 | }, 46 | { 47 | "name": "c", 48 | "type": "ordinal", 49 | "domain": {"data": "iris", "field": "species"}, 50 | "range": "category10" 51 | } 52 | ], 53 | 54 | "axes": [ 55 | {"type": "x", "scale": "x", "offset": 5, "ticks": 5, "title": "Sepal Width"}, 56 | {"type": "y", "scale": "y", "offset": 5, "ticks": 5, "title": "Petal Length"} 57 | ], 58 | 59 | "marks": [ 60 | { 61 | "type": "symbol", 62 | "from": {"data": "iris"}, 63 | "properties": { 64 | "enter": { 65 | "x": {"scale": "x", "field": "sepalWidth"}, 66 | "y": {"scale": "y", "field": "petalLength"}, 67 | "fillOpacity": {"value": 0.5}, 68 | "size": {"value": 100} 69 | }, 70 | "update": { 71 | "fill": [ 72 | { 73 | "test": "indata('selectedPoints', datum._id, 'id')", 74 | "scale": "c", 75 | "field": "species" 76 | }, 77 | {"value": "grey"} 78 | ] 79 | } 80 | } 81 | } 82 | ] 83 | } 84 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/stacked_area.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 200, 4 | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, 5 | "data": [ 6 | { 7 | "name": "table", 8 | "values": [ 9 | {"x": 0, "y": 28, "c":0}, {"x": 0, "y": 55, "c":1}, 10 | {"x": 1, "y": 43, "c":0}, {"x": 1, "y": 91, "c":1}, 11 | {"x": 2, "y": 81, "c":0}, {"x": 2, "y": 53, "c":1}, 12 | {"x": 3, "y": 19, "c":0}, {"x": 3, "y": 87, "c":1}, 13 | {"x": 4, "y": 52, "c":0}, {"x": 4, "y": 48, "c":1}, 14 | {"x": 5, "y": 24, "c":0}, {"x": 5, "y": 49, "c":1}, 15 | {"x": 6, "y": 87, "c":0}, {"x": 6, "y": 66, "c":1}, 16 | {"x": 7, "y": 17, "c":0}, {"x": 7, "y": 27, "c":1}, 17 | {"x": 8, "y": 68, "c":0}, {"x": 8, "y": 16, "c":1}, 18 | {"x": 9, "y": 49, "c":0}, {"x": 9, "y": 15, "c":1} 19 | ] 20 | }, 21 | { 22 | "name": "stats", 23 | "source": "table", 24 | "transform": [ 25 | { 26 | "type": "aggregate", 27 | "groupby": ["x"], 28 | "summarize": [{"field": "y", "ops": ["sum"]}] 29 | } 30 | ] 31 | } 32 | ], 33 | "scales": [ 34 | { 35 | "name": "x", 36 | "type": "ordinal", 37 | "range": "width", 38 | "points": true, 39 | "domain": {"data": "table", "field": "x"} 40 | }, 41 | { 42 | "name": "y", 43 | "type": "linear", 44 | "range": "height", 45 | "nice": true, 46 | "domain": {"data": "stats", "field": "sum_y"} 47 | }, 48 | { 49 | "name": "color", 50 | "type": "ordinal", 51 | "range": "category10", 52 | "domain": {"data": "table", "field": "c"} 53 | } 54 | ], 55 | "axes": [ 56 | {"type": "x", "scale": "x"}, 57 | {"type": "y", "scale": "y"} 58 | ], 59 | "marks": [ 60 | { 61 | "type": "group", 62 | "from": { 63 | "data": "table", 64 | "transform": [ 65 | {"type": "stack", "groupby": ["x"], "sortby": ["c"], "field": "y"}, 66 | {"type": "facet", "groupby": ["c"]} 67 | ] 68 | }, 69 | "marks": [ 70 | { 71 | "type": "area", 72 | "properties": { 73 | "enter": { 74 | "interpolate": {"value": "monotone"}, 75 | "x": {"scale": "x", "field": "x"}, 76 | "y": {"scale": "y", "field": "layout_start"}, 77 | "y2": {"scale": "y", "field": "layout_end"}, 78 | "fill": {"scale": "color", "field": "c"} 79 | }, 80 | "update": { 81 | "fillOpacity": {"value": 1} 82 | }, 83 | "hover": { 84 | "fillOpacity": {"value": 0.5} 85 | } 86 | } 87 | } 88 | ] 89 | } 90 | ] 91 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/stacked_bar.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 200, 4 | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, 5 | "data": [ 6 | { 7 | "name": "table", 8 | "values": [ 9 | {"x": 0, "y": 28, "c":0}, {"x": 0, "y": 55, "c":1}, 10 | {"x": 1, "y": 43, "c":0}, {"x": 1, "y": 91, "c":1}, 11 | {"x": 2, "y": 81, "c":0}, {"x": 2, "y": 53, "c":1}, 12 | {"x": 3, "y": 19, "c":0}, {"x": 3, "y": 87, "c":1}, 13 | {"x": 4, "y": 52, "c":0}, {"x": 4, "y": 48, "c":1}, 14 | {"x": 5, "y": 24, "c":0}, {"x": 5, "y": 49, "c":1}, 15 | {"x": 6, "y": 87, "c":0}, {"x": 6, "y": 66, "c":1}, 16 | {"x": 7, "y": 17, "c":0}, {"x": 7, "y": 27, "c":1}, 17 | {"x": 8, "y": 68, "c":0}, {"x": 8, "y": 16, "c":1}, 18 | {"x": 9, "y": 49, "c":0}, {"x": 9, "y": 15, "c":1} 19 | ] 20 | }, 21 | { 22 | "name": "stats", 23 | "source": "table", 24 | "transform": [ 25 | { 26 | "type": "aggregate", 27 | "groupby": ["x"], 28 | "summarize": [{"field": "y", "ops": ["sum"]}] 29 | } 30 | ] 31 | } 32 | ], 33 | "scales": [ 34 | { 35 | "name": "x", 36 | "type": "ordinal", 37 | "range": "width", 38 | "domain": {"data": "table", "field": "x"} 39 | }, 40 | { 41 | "name": "y", 42 | "type": "linear", 43 | "range": "height", 44 | "nice": true, 45 | "domain": {"data": "stats", "field": "sum_y"} 46 | }, 47 | { 48 | "name": "color", 49 | "type": "ordinal", 50 | "range": "category10", 51 | "domain": {"data": "table", "field": "c"} 52 | } 53 | ], 54 | "axes": [ 55 | {"type": "x", "scale": "x"}, 56 | {"type": "y", "scale": "y"} 57 | ], 58 | "marks": [ 59 | { 60 | "type": "rect", 61 | "from": { 62 | "data": "table", 63 | "transform": [ 64 | {"type": "stack", "groupby": ["x"], "sortby": ["c"], "field": "y"} 65 | ] 66 | }, 67 | "properties": { 68 | "enter": { 69 | "x": {"scale": "x", "field": "x"}, 70 | "width": {"scale": "x", "band": true, "offset": -1}, 71 | "y": {"scale": "y", "field": "layout_start"}, 72 | "y2": {"scale": "y", "field": "layout_end"}, 73 | "fill": {"scale": "color", "field": "c"} 74 | }, 75 | "update": { 76 | "fillOpacity": {"value": 1} 77 | }, 78 | "hover": { 79 | "fillOpacity": {"value": 0.5} 80 | } 81 | } 82 | } 83 | ] 84 | } -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/stocks.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 500, 3 | "height": 200, 4 | "data": [ 5 | { 6 | "name": "stocks", 7 | "url": "data/stocks.csv", 8 | "format": {"type": "csv", "parse": {"price":"number", "date":"date"}} 9 | } 10 | ], 11 | "scales": [ 12 | { 13 | "name": "x", 14 | "type": "time", 15 | "range": "width", 16 | "domain": {"data": "stocks", "field": "date"} 17 | }, 18 | { 19 | "name": "y", 20 | "type": "linear", 21 | "range": "height", 22 | "nice": true, 23 | "domain": {"data": "stocks", "field": "price"} 24 | }, 25 | { 26 | "name": "color", 27 | "type": "ordinal", 28 | "domain": {"data": "stocks", "field": "symbol"}, 29 | "range": "category10" 30 | } 31 | ], 32 | "axes": [ 33 | {"type": "x", "scale": "x", "tickSizeEnd": 0}, 34 | {"type": "y", "scale": "y"} 35 | ], 36 | "marks": [ 37 | { 38 | "type": "group", 39 | "from": { 40 | "data": "stocks", 41 | "transform": [{"type": "facet", "groupby": ["symbol"]}] 42 | }, 43 | "marks": [ 44 | { 45 | "type": "line", 46 | "properties": { 47 | "enter": { 48 | "x": {"scale": "x", "field": "date"}, 49 | "y": {"scale": "y", "field": "price"}, 50 | "stroke": {"scale": "color", "field": "symbol"}, 51 | "strokeWidth": {"value": 2} 52 | } 53 | } 54 | }, 55 | { 56 | "type": "text", 57 | "from": { 58 | "transform": [{"type": "filter", "test": "datum.date == 1267430400000"}] 59 | }, 60 | "properties": { 61 | "enter": { 62 | "x": {"scale": "x", "field": "date", "offset": 2}, 63 | "y": {"scale": "y", "field": "price"}, 64 | "fill": {"scale": "color", "field": "symbol"}, 65 | "text": {"field": "symbol"}, 66 | "baseline": {"value": "middle"} 67 | } 68 | } 69 | } 70 | ] 71 | } 72 | ] 73 | } 74 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/tooltip.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 400, 3 | "height": 200, 4 | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, 5 | 6 | "signals": [ 7 | { 8 | "name": "tooltip", 9 | "init": {}, 10 | "streams": [ 11 | {"type": "rect:mouseover", "expr": "datum"}, 12 | {"type": "rect:mouseout", "expr": "{}"} 13 | ] 14 | } 15 | ], 16 | 17 | "data": [ 18 | { 19 | "name": "table", 20 | "values": [ 21 | {"x": 1, "y": 28}, {"x": 2, "y": 55}, 22 | {"x": 3, "y": 43}, {"x": 4, "y": 91}, 23 | {"x": 5, "y": 81}, {"x": 6, "y": 53}, 24 | {"x": 7, "y": 19}, {"x": 8, "y": 87}, 25 | {"x": 9, "y": 52}, {"x": 10, "y": 48}, 26 | {"x": 11, "y": 24}, {"x": 12, "y": 49}, 27 | {"x": 13, "y": 87}, {"x": 14, "y": 66}, 28 | {"x": 15, "y": 17}, {"x": 16, "y": 27}, 29 | {"x": 17, "y": 68}, {"x": 18, "y": 16}, 30 | {"x": 19, "y": 49}, {"x": 20, "y": 15} 31 | ] 32 | } 33 | ], 34 | 35 | "scales": [ 36 | { 37 | "name": "x", 38 | "type": "ordinal", 39 | "range": "width", 40 | "domain": {"data": "table", "field": "x"} 41 | }, 42 | { 43 | "name": "y", 44 | "type": "linear", 45 | "range": "height", 46 | "domain": {"data": "table", "field": "y"}, 47 | "nice": true 48 | } 49 | ], 50 | 51 | "axes": [{"type": "x", "scale": "x"}], 52 | 53 | "marks": [ 54 | { 55 | "type": "rect", 56 | "from": {"data": "table"}, 57 | "properties": { 58 | "enter": { 59 | "x": {"scale": "x", "field": "x"}, 60 | "width": {"scale": "x", "band": true, "offset": -1}, 61 | "y": {"scale": "y", "field": "y"}, 62 | "y2": {"scale": "y", "value": 0} 63 | }, 64 | "update": { 65 | "fill": [ 66 | { "test": "datum._id == tooltip._id", 67 | "value": "red" 68 | }, 69 | {"value": "steelblue"} 70 | ] 71 | } 72 | } 73 | }, 74 | { 75 | "type": "text", 76 | "properties": { 77 | "enter": { 78 | "align": {"value": "center"}, 79 | "fill": {"value": "#333"} 80 | }, 81 | "update": { 82 | "x": {"scale": "x", "signal": "tooltip.x"}, 83 | "dx": {"scale": "x", "band": true, "mult": 0.5}, 84 | "y": {"scale": "y", "signal": "tooltip.y", "offset": -5}, 85 | "text": {"signal": "tooltip.y"}, 86 | "fillOpacity": [ 87 | { "test": "!tooltip._id", 88 | "value": 0 89 | }, 90 | {"value": 1} 91 | ] 92 | } 93 | } 94 | } 95 | ] 96 | } 97 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/spec/vega/treemap.json: -------------------------------------------------------------------------------- 1 | { 2 | "width": 960, 3 | "height": 500, 4 | "padding": 2.5, 5 | "data": [ 6 | { 7 | "name": "tree", 8 | "url": "data/flare.json", 9 | "format": {"type": "treejson"}, 10 | "transform": [ 11 | {"type": "treemap", "field": "size", "size": [960, 500]} 12 | ] 13 | } 14 | ], 15 | "scales": [ 16 | { 17 | "name": "color", 18 | "type": "ordinal", 19 | "range": [ 20 | "#3182bd", "#6baed6", "#9ecae1", "#c6dbef", "#e6550d", 21 | "#fd8d3c", "#fdae6b", "#fdd0a2", "#31a354", "#74c476", 22 | "#a1d99b", "#c7e9c0", "#756bb1", "#9e9ac8", "#bcbddc", 23 | "#dadaeb", "#636363", "#969696", "#bdbdbd", "#d9d9d9" 24 | ] 25 | }, 26 | { 27 | "name": "size", 28 | "type": "ordinal", 29 | "domain": [0, 1, 2, 3], 30 | "range": [256, 28, 20, 14] 31 | }, 32 | { 33 | "name": "opacity", 34 | "type": "ordinal", 35 | "domain": [0, 1, 2, 3], 36 | "range": [0.15, 0.5, 0.8, 1.0] 37 | } 38 | ], 39 | "marks": [ 40 | { 41 | "type": "rect", 42 | "from": { 43 | "data": "tree", 44 | "transform": [{"type":"filter", "test":"datum.children"}] 45 | }, 46 | "interactive": false, 47 | "properties": { 48 | "enter": { 49 | "x": {"field": "layout_x"}, 50 | "y": {"field": "layout_y"}, 51 | "width": {"field": "layout_width"}, 52 | "height": {"field": "layout_height"}, 53 | "fill": {"scale": "color", "field": "name"} 54 | } 55 | } 56 | }, 57 | { 58 | "type": "rect", 59 | "from": { 60 | "data": "tree", 61 | "transform": [{"type":"filter", "test":"!datum.children"}] 62 | }, 63 | "properties": { 64 | "enter": { 65 | "x": {"field": "layout_x"}, 66 | "y": {"field": "layout_y"}, 67 | "width": {"field": "layout_width"}, 68 | "height": {"field": "layout_height"}, 69 | "stroke": {"value": "#fff"} 70 | }, 71 | "update": { 72 | "fill": {"value": "rgba(0,0,0,0)"} 73 | }, 74 | "hover": { 75 | "fill": {"value": "red"} 76 | } 77 | } 78 | }, 79 | { 80 | "type": "text", 81 | "from": { 82 | "data": "tree", 83 | "transform": [{"type":"filter", "test":"datum.children"}] 84 | }, 85 | "interactive": false, 86 | "properties": { 87 | "enter": { 88 | "x": {"field": "layout_x"}, 89 | "y": {"field": "layout_y"}, 90 | "dx": {"field": "layout_width", "mult": 0.5}, 91 | "dy": {"field": "layout_height", "mult": 0.5}, 92 | "font": {"value": "Helvetica Neue"}, 93 | "fontSize": {"scale": "size", "field": "depth"}, 94 | "align": {"value": "center"}, 95 | "baseline": {"value": "middle"}, 96 | "fill": {"value": "#000"}, 97 | "fillOpacity": {"scale": "opacity", "field": "depth"}, 98 | "text": {"field": "name"} 99 | } 100 | } 101 | } 102 | ] 103 | } 104 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/template.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | 5 | 6 |
7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 |
17 | 21 |
22 |
23 | 24 | 25 |
26 | 27 | 28 |
29 |
30 | 31 |
32 | Vega compiled from Vega-Lite (read-only) 33 | 34 |
35 | 36 | 37 |
38 | 39 | 40 |
41 |
42 | 48 |
49 | 50 | Theme + Configuration 51 |
52 | 53 | 54 |
55 | 56 | 57 |
58 |
59 | 63 | 64 | 65 | 66 |
67 | Debugging Tools (Alpha) 68 | 69 | 70 |
71 |
72 |
73 |
74 | 75 | 76 |
77 | 78 |
79 | 80 | 81 |
82 |
83 |
84 | Renderer 85 | 86 |
87 |
Visualization
88 |
89 |
90 |
91 |

92 |
93 |
94 | -------------------------------------------------------------------------------- /bower_components/vega-editor/app/vega-specs.js: -------------------------------------------------------------------------------- 1 | var VG_SPECS = { 2 | 'Static': [ 3 | { "name": "arc" }, 4 | { "name": "area" }, 5 | { "name": "bar" }, 6 | { 7 | "name": "barley", 8 | "desc": "Based on the Trellis Display by Becker et al." 9 | }, 10 | { "name": "choropleth" }, 11 | { 12 | "name": "driving", 13 | "desc": "Based on Driving Shifts Into Reverse by Hannah Fairfield. The New York Times (May 2, 2010)." 14 | }, 15 | { "name": "error" }, 16 | { "name": "force" }, 17 | { 18 | "name": "falkensee", 19 | "desc": "Based on an image from Wikipedia." 20 | }, 21 | { "name": "grouped_bar" }, 22 | { "name": "heatmap" }, 23 | { "name": "image" }, 24 | { "name": "jobs" }, 25 | { "name": "lifelines" }, 26 | { "name": "map" }, 27 | { "name": "parallel_coords" }, 28 | { "name": "playfair" }, 29 | { "name": "population" }, 30 | { "name": "treemap" }, 31 | { "name": "scatter_matrix" }, 32 | { "name": "stacked_area" }, 33 | { "name": "stacked_bar" }, 34 | { "name": "stocks" }, 35 | { "name": "weather" }, 36 | { "name": "wordcloud" } 37 | ], 38 | 'Interactive': [ 39 | { 40 | "name": "airports", 41 | "desc": "Based on U.S. Airports, 2008 by Mike Bostock." 42 | }, 43 | { "name": "brush" }, 44 | { 45 | "name": "budget_forecasts", 46 | "desc": "Based on Budget Forecasts, Compared With Reality by Amanda Cox. The New York Times (February 2, 2010)." 47 | }, 48 | { 49 | "name": "crossfilter", 50 | "desc": "Based on Crossfilter.js by Mike Bostock. Square Inc." 51 | }, 52 | { 53 | "name": "dimpvis", 54 | "desc": "Based on DimpVis by Brittany Kondo and Christopher Collins. University of Ontario Institute of Technology (2014)." 55 | }, 56 | { "name": "horizon", 57 | "desc": "Horizon graph example. Click to change the number of layers." 58 | }, 59 | { "name": "index_chart" }, 60 | { 61 | "name": "force_drag", 62 | "desc": "Drag nodes to reposition them. Double-click nodes to fix them in place." 63 | }, 64 | { "name": "linking" }, 65 | { 66 | "name": "overview+detail", 67 | "desc": "Based on Focus+Context with Brushing by Mike Bostock." 68 | }, 69 | { "name": "panzoom_points" }, 70 | { "name": "reorder_matrix" }, 71 | { "name": "shiftclick_select" }, 72 | { "name": "tooltip" } 73 | ], 74 | 'Parameterized': [ 75 | { 76 | "name": "airports-params", 77 | "desc": "Uses vega-embed to parameterize the visualization." 78 | }, 79 | { 80 | "name": "force-params", 81 | "desc": "Uses vega-embed to parameterize the visualization." 82 | }, 83 | { 84 | "name": "jobs-params", 85 | "desc": "Uses vega-embed to parameterize the visualization." 86 | }, 87 | { 88 | "name": "map-params", 89 | "desc": "Uses vega-embed to parameterize the visualization." 90 | } 91 | ] 92 | }; 93 | 94 | var VG_CONFIGS = ["excel", "ggplot2", "quartz", "vox"]; -------------------------------------------------------------------------------- /bower_components/vega-editor/app/vl-specs.js: -------------------------------------------------------------------------------- 1 | var VL_SPECS = { "Basic": [ { "name": "bar", "title": "Simple Bar Chart", "galleryParameters": { "backgroundPosition": "25% 50%" } }, { "name": "bar_aggregate", "title": "Aggregate Bar Chart" }, { "name": "bar_grouped", "title": "Grouped Bar Chart", "galleryParameters": { "backgroundSize": "220%", "backgroundPosition": "22% 60%" } }, { "name": "scatter", "title": "Scatterplot" }, { "name": "circle", "title": "Scatterplot with Filled Circles" }, { "name": "scatter_binned", "title": "Binned Scatterplot", "galleryParameters": { "backgroundSize": "150%", "backgroundPosition": "1% 26%" } }, { "name": "scatter_colored_with_shape", "title": "Colored Scatterplot", "galleryParameters": { "backgroundSize": "180%", "backgroundPosition": "50% 30%" } }, { "name": "text_scatter_colored", "title": "Colored Text Scatter Plot", "galleryParameters": { "backgroundSize": "180%", "backgroundPosition": "50% 20%" } }, { "name": "scatter_bubble", "title": "Bubble Plot", "galleryParameters": { "backgroundPosition": "left" } }, { "name": "bubble_health_income", "title": "Gapminder Bubble Plot", "galleryParameters": { "backgroundSize": "230%", "backgroundPosition": "40% 20%" } }, { "name": "tick_strip", "title": "Strip Plot", "galleryParameters": { "backgroundSize": "contains" } }, { "name": "line", "title": "Line Chart", "galleryParameters": { "backgroundSize": "134%", "backgroundPosition": "1% 5%" } }, { "name": "line_color", "title": "Multi Series Line Chart", "galleryParameters": { "backgroundSize": "170%", "backgroundPosition": "40% 15%" } }, { "name": "line_slope", "title": "Slope Graph", "galleryParameters": { "backgroundSize": "170%", "backgroundPosition": "40% 15%" } }, { "name": "histogram", "title": "Histogram", "galleryParameters": { "backgroundSize": "120%", "backgroundPosition": "50% 50%" } }, { "name": "area", "title": "Area Chart", "galleryParameters": { "backgroundSize": "170%", "backgroundPosition": "60% 50%" } }, { "name": "text_table_heatmap", "title": "Text Table Heatmap", "galleryParameters": { "backgroundSize": "250%", "backgroundPosition": "35% 40%" } }, { "name": "github_punchcard", "title": "Github punch card visualization" } ], "Stack": [ { "name": "stacked_bar_weather", "title": "Stacked Bar Chart", "galleryParameters": { "backgroundSize": "150%" } }, { "name": "stacked_bar_h", "title": "Horizontal Stacked Bar Chart", "galleryParameters": { "backgroundSize": "200%", "backgroundPosition": "55% 25%" } }, { "name": "stacked_bar_normalize", "title": "Normalized Stacked Bar Chart" }, { "name": "stacked_area", "title": "Stacked Area Chart" }, { "name": "stacked_area_normalize", "title": "Normalized Stacked Area Chart" }, { "name": "stacked_area_stream", "title": "Streamgraph" }, { "name": "bar_layered_transparent", "title": "Layered Bar Chart", "galleryParameters": { "backgroundSize": "310%", "backgroundPosition": "6% 0%" } } ], "Statistical": [ { "name": "errorbar_aggregate", "title": "Error Bars", "galleryParameters": { "backgroundSize": "150%" } }, { "name": "errorbar_horizontal_aggregate", "title": "Horizontal Error Bars", "galleryParameters": { "backgroundSize": "150%" } } ], "Trellis": [ { "name": "trellis_anscombe", "title": "Anscombe's Quartet", "galleryParameters": { "backgroundSize": "130%" } }, { "name": "trellis_bar", "title": "Trellis Bar Chart", "galleryParameters": { "backgroundSize": "130%", "backgroundPosition": "10% 10%" } }, { "name": "trellis_stacked_bar", "title": "Trellis Stacked Bar Chart", "galleryParameters": { "backgroundSize": "230%" } }, { "name": "trellis_scatter", "title": "Trellis Scatter Plot", "galleryParameters": { "backgroundSize": "450%", "backgroundPosition": "6% 50%" } }, { "name": "trellis_bar_histogram", "title": "Trellis Histograms", "galleryParameters": { "backgroundSize": "104%", "backgroundPosition": "0% 30%" } }, { "name": "trellis_barley", "title": "Becker's Barley Trellis Plot", "galleryParameters": { "backgroundSize": "150%", "backgroundPosition": "30% 0%" } } ] } 2 | -------------------------------------------------------------------------------- /bower_components/vega-editor/images/chevron_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/bower_components/vega-editor/images/chevron_down.png -------------------------------------------------------------------------------- /bower_components/vega-editor/images/chevron_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/bower_components/vega-editor/images/chevron_up.png -------------------------------------------------------------------------------- /bower_components/vega-editor/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Vega Editor 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /bower_components/vega/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vega", 3 | "main": "vega.js", 4 | "homepage": "http://vega.github.io/vega/", 5 | "description": "The Vega visualization grammar.", 6 | "keywords": [ 7 | "vega", 8 | "visualization", 9 | "interaction", 10 | "dataflow", 11 | "grammar", 12 | "data", 13 | "d3" 14 | ], 15 | "authors": [ 16 | "Arvind Satyanarayan (http://arvindsatya.com)", 17 | "Jeffrey Heer (http://idl.cs.washington.edu)" 18 | ], 19 | "license": "BSD-3-Clause", 20 | "dependencies": { 21 | "d3": "^3.5.6" 22 | }, 23 | "ignore": [ 24 | ".DS_Store", 25 | ".git", 26 | ".gitignore", 27 | ".npmignore", 28 | ".jshintrc", 29 | ".travis.yml", 30 | "bin", 31 | "coverage", 32 | "examples", 33 | "index.js", 34 | "node_modules", 35 | "output", 36 | "scripts", 37 | "src", 38 | "test" 39 | ], 40 | "version": "2.6.1", 41 | "_release": "2.6.1", 42 | "_resolution": { 43 | "type": "version", 44 | "tag": "v2.6.1", 45 | "commit": "2b468e8cf7454ccd687c5e6e1017d18e21c48579" 46 | }, 47 | "_source": "https://github.com/vega/vega.git", 48 | "_target": "^2.5.2", 49 | "_originalSource": "vega" 50 | } -------------------------------------------------------------------------------- /bower_components/vega/.jshintignore: -------------------------------------------------------------------------------- 1 | src/parse/events.pegjs 2 | src/parse/events.js -------------------------------------------------------------------------------- /bower_components/vega/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013, Trifacta Inc. 2 | Copyright (c) 2015, University of Washington Interactive Data Lab 3 | All rights reserved. 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | 1. Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | 2. Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | 3. Neither the name of the copyright holder nor the names of its contributors 16 | may be used to endorse or promote products derived from this software 17 | without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /bower_components/vega/README.md: -------------------------------------------------------------------------------- 1 | Vega: A Visualization Grammar 2 | ==== 3 | [![Build Status](https://travis-ci.org/vega/vega.svg?branch=master)](https://travis-ci.org/vega/vega) 4 | 5 | **Vega** is a _visualization grammar_, a declarative format for creating and 6 | saving interactive visualization designs. With Vega you can describe data 7 | visualizations in a JSON format, and generate interactive views using either 8 | HTML5 Canvas or SVG. 9 | 10 | To learn more, [visit the wiki](https://github.com/vega/vega/wiki). 11 | 12 | ## The Vega Runtime 13 | 14 | This repository contains the **vega-runtime** system, which parses Vega 15 | specifications to produce interactive visualizations which run in the 16 | browser using a scenegraph-based rendering system. 17 | 18 | ## Build Process 19 | 20 | To manually build Vega, you must have [npm](https://www.npmjs.com/) installed. 21 | 22 | 1. Run `npm install` in the vega folder to install dependencies. 23 | 2. Run `npm run build`. This will invoke [browserify](http://browserify.org/) to bundle the source files into vega.js, and then [uglify-js](http://lisperator.net/uglifyjs/) to create the minified vega.min.js. 24 | 25 | Vega visualization specifications can be validated against a [JSON Schema](http://json-schema.org/). To generate the vega-schema.json definition file, run `npm run schema`. 26 | 27 | Built files are available on [npm](https://www.npmjs.com/package/vega), and under [tagged releases](https://github.com/vega/vega/releases). The latest built versions can be found at [vega.min.js](http://vega.github.io/vega/vega.min.js) and [vega-schema.json](http://vega.github.io/vega/vega-schema.json). 28 | 29 | ## Vega Server-Side and Command Line Tools 30 | 31 | Vega can also be run server-side using node.js. When running in "headless" 32 | mode, Vega can be used to render specifications directly to PNG or SVG. In 33 | addition to the summary below, [see the Headless Mode wiki 34 | documentation](https://github.com/vega/vega/wiki/Headless-Mode) for more 35 | information. 36 | 37 | ### Command Line Tools 38 | 39 | Vega includes two command line tools for converting Vega JSON specifications 40 | to rendered PNG or SVG: 41 | 42 | * __vg2png__: `vg2png [-b basedir] vega_json_file [output_png_file]` 43 | * __vg2svg__: `vg2svg [-b basedir] [-h] vega_json_file [output_svg_file]` 44 | 45 | Within the Vega project directories, you can invoke these utilities using 46 | `./bin/vg2png` or `./bin/vg2svg`. If you import Vega using npm, these commands 47 | are accessible either locally (`node_modules/.bin/vg2png`) or globally 48 | (`vg2png`) depending on how you install the Vega package. 49 | 50 | ### Using Vega in node.js Projects 51 | 52 | To include Vega in a node project, first install it from the command line 53 | using npm (`npm install vega`) or by including `"vega"` among the dependencies 54 | in your package.json file. 55 | -------------------------------------------------------------------------------- /bower_components/vega/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vega", 3 | "main": "vega.js", 4 | "homepage": "http://vega.github.io/vega/", 5 | "description": "The Vega visualization grammar.", 6 | "keywords": [ 7 | "vega", 8 | "visualization", 9 | "interaction", 10 | "dataflow", 11 | "grammar", 12 | "data", 13 | "d3" 14 | ], 15 | "authors": [ 16 | "Arvind Satyanarayan (http://arvindsatya.com)", 17 | "Jeffrey Heer (http://idl.cs.washington.edu)" 18 | ], 19 | "license": "BSD-3-Clause", 20 | "dependencies": { 21 | "d3": "^3.5.6" 22 | }, 23 | "ignore": [ 24 | ".DS_Store", 25 | ".git", 26 | ".gitignore", 27 | ".npmignore", 28 | ".jshintrc", 29 | ".travis.yml", 30 | "bin", 31 | "coverage", 32 | "examples", 33 | "index.js", 34 | "node_modules", 35 | "output", 36 | "scripts", 37 | "src", 38 | "test" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /bower_components/vega/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vega", 3 | "version": "2.6.1", 4 | "description": "The Vega visualization grammar.", 5 | "keywords": [ 6 | "vega", 7 | "visualization", 8 | "interaction", 9 | "dataflow", 10 | "grammar", 11 | "data", 12 | "d3" 13 | ], 14 | "repository": { 15 | "type": "git", 16 | "url": "http://github.com/vega/vega.git" 17 | }, 18 | "author": { 19 | "name": "Arvind Satyanarayan", 20 | "url": "http://arvindsatya.com" 21 | }, 22 | "contributors": [ 23 | { 24 | "name": "Jeffrey Heer", 25 | "url": "http://idl.cs.washington.edu" 26 | }, 27 | { 28 | "name": "Ryan Russell", 29 | "url": "https://github.com/RussellSprouts" 30 | }, 31 | { 32 | "name": "Emily Gu", 33 | "url": "https://github.com/emilygu" 34 | } 35 | ], 36 | "license": "BSD-3-Clause", 37 | "main": "index.js", 38 | "bin": { 39 | "vg2png": "./bin/vg2png", 40 | "vg2svg": "./bin/vg2svg" 41 | }, 42 | "dependencies": { 43 | "d3": "^3.5.9", 44 | "d3-cloud": "^1.2.1", 45 | "d3-geo-projection": "^0.2.15", 46 | "datalib": "^1.7.1", 47 | "topojson": "^1.6.19", 48 | "vega-dataflow": "^1.4.0", 49 | "vega-event-selector": "^1.0.0", 50 | "vega-expression": "^1.2.0", 51 | "vega-logging": "^1.0.1", 52 | "vega-scenegraph": "^1.0.16", 53 | "yargs": "^3.30.0" 54 | }, 55 | "optionalDependencies": { 56 | "canvas": "^1.3.4" 57 | }, 58 | "devDependencies": { 59 | "browserify": "^10.2.6", 60 | "browserify-shim": "^3.8.9", 61 | "browserify-versionify": "^1.0.4", 62 | "chai": "^3.0.0", 63 | "chai-spies": "^0.6.0", 64 | "exorcist": "^0.4.0", 65 | "istanbul": "latest", 66 | "jsdom": "^3.0.0", 67 | "jshint": "^2.8.0", 68 | "jstransform": "^11.0.2", 69 | "mocha": "^2.2.5", 70 | "through": "^2.3.8", 71 | "tv4": "^1.1.12", 72 | "uglify-js": "^2.4.24", 73 | "vega-datasets": "vega/vega-datasets#gh-pages", 74 | "watchify": "^3.2.3", 75 | "xmldom": "^0.1.19", 76 | "xpath": "^0.0.9" 77 | }, 78 | "scripts": { 79 | "deploy": "npm run lint && npm run test && scripts/deploy.sh", 80 | "lint": "jshint src/", 81 | "test": "mocha --timeout 30000 --recursive test/", 82 | "cover": "istanbul cover _mocha -- --timeout 30000 --recursive test/", 83 | "build": "browserify index.js -d -s vg | exorcist vega.js.map > vega.js", 84 | "postbuild": "uglifyjs vega.js -cm > vega.min.js && npm run schema", 85 | "schema": "node scripts/schema.js > vega-schema.json", 86 | "watch": "watchify index.js -v -d -s vg -o 'exorcist vega.js.map > vega.js'" 87 | }, 88 | "browser": { 89 | "buffer": false, 90 | "canvas": false, 91 | "fs": false, 92 | "http": false, 93 | "request": false, 94 | "sync-request": false, 95 | "url": false 96 | }, 97 | "browserify": { 98 | "transform": [ 99 | "./scripts/strip-schema", 100 | "browserify-shim", 101 | "browserify-versionify" 102 | ] 103 | }, 104 | "browserify-shim": { 105 | "d3": "global:d3", 106 | "d3-cloud": "global:d3.layout.cloud", 107 | "canvas": "global:canvas", 108 | "topojson": "global:topojson" 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /data/7zip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/data/7zip.png -------------------------------------------------------------------------------- /data/anscombe.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"Series":"I", "X":10.0, "Y":8.04}, 3 | {"Series":"I", "X":8.0, "Y":6.95}, 4 | {"Series":"I", "X":13.0, "Y":7.58}, 5 | {"Series":"I", "X":9.0, "Y":8.81}, 6 | {"Series":"I", "X":11.0, "Y":8.33}, 7 | {"Series":"I", "X":14.0, "Y":9.96}, 8 | {"Series":"I", "X":6.0, "Y":7.24}, 9 | {"Series":"I", "X":4.0, "Y":4.26}, 10 | {"Series":"I", "X":12.0, "Y":10.84}, 11 | {"Series":"I", "X":7.0, "Y":4.81}, 12 | {"Series":"I", "X":5.0, "Y":5.68}, 13 | 14 | {"Series":"II", "X":10.0, "Y":9.14}, 15 | {"Series":"II", "X":8.0, "Y":8.14}, 16 | {"Series":"II", "X":13.0, "Y":8.74}, 17 | {"Series":"II", "X":9.0, "Y":8.77}, 18 | {"Series":"II", "X":11.0, "Y":9.26}, 19 | {"Series":"II", "X":14.0, "Y":8.10}, 20 | {"Series":"II", "X":6.0, "Y":6.13}, 21 | {"Series":"II", "X":4.0, "Y":3.10}, 22 | {"Series":"II", "X":12.0, "Y":9.13}, 23 | {"Series":"II", "X":7.0, "Y":7.26}, 24 | {"Series":"II", "X":5.0, "Y":4.74}, 25 | 26 | {"Series":"III", "X":10.0, "Y":7.46}, 27 | {"Series":"III", "X":8.0, "Y":6.77}, 28 | {"Series":"III", "X":13.0, "Y":12.74}, 29 | {"Series":"III", "X":9.0, "Y":7.11}, 30 | {"Series":"III", "X":11.0, "Y":7.81}, 31 | {"Series":"III", "X":14.0, "Y":8.84}, 32 | {"Series":"III", "X":6.0, "Y":6.08}, 33 | {"Series":"III", "X":4.0, "Y":5.39}, 34 | {"Series":"III", "X":12.0, "Y":8.15}, 35 | {"Series":"III", "X":7.0, "Y":6.42}, 36 | {"Series":"III", "X":5.0, "Y":5.73}, 37 | 38 | {"Series":"IV", "X":8.0, "Y":6.58}, 39 | {"Series":"IV", "X":8.0, "Y":5.76}, 40 | {"Series":"IV", "X":8.0, "Y":7.71}, 41 | {"Series":"IV", "X":8.0, "Y":8.84}, 42 | {"Series":"IV", "X":8.0, "Y":8.47}, 43 | {"Series":"IV", "X":8.0, "Y":7.04}, 44 | {"Series":"IV", "X":8.0, "Y":5.25}, 45 | {"Series":"IV", "X":19.0, "Y":12.50}, 46 | {"Series":"IV", "X":8.0, "Y":5.56}, 47 | {"Series":"IV", "X":8.0, "Y":7.91}, 48 | {"Series":"IV", "X":8.0, "Y":6.89} 49 | ] 50 | -------------------------------------------------------------------------------- /data/burtin.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Bacteria":"Aerobacter aerogenes", 4 | "Penicilin":870, 5 | "Streptomycin":1, 6 | "Neomycin":1.6, 7 | "Gram_Staining":"negative", 8 | "Genus": "other" 9 | }, 10 | { 11 | "Bacteria":"Brucella abortus", 12 | "Penicilin":1, 13 | "Streptomycin":2, 14 | "Neomycin":0.02, 15 | "Gram_Staining":"negative", 16 | "Genus": "other" 17 | }, 18 | { 19 | "Bacteria":"Brucella anthracis", 20 | "Penicilin":0.001, 21 | "Streptomycin":0.01, 22 | "Neomycin":0.007, 23 | "Gram_Staining":"positive", 24 | "Genus": "other" 25 | }, 26 | { 27 | "Bacteria":"Diplococcus pneumoniae", 28 | "Penicilin":0.005, 29 | "Streptomycin":11, 30 | "Neomycin":10, 31 | "Gram_Staining":"positive", 32 | "Genus": "other" 33 | }, 34 | { 35 | "Bacteria":"Escherichia coli", 36 | "Penicilin":100, 37 | "Streptomycin":0.4, 38 | "Neomycin":0.1, 39 | "Gram_Staining":"negative", 40 | "Genus": "other" 41 | }, 42 | { 43 | "Bacteria":"Klebsiella pneumoniae", 44 | "Penicilin":850, 45 | "Streptomycin":1.2, 46 | "Neomycin":1, 47 | "Gram_Staining":"negative", 48 | "Genus": "other" 49 | }, 50 | { 51 | "Bacteria":"Mycobacterium tuberculosis", 52 | "Penicilin":800, 53 | "Streptomycin":5, 54 | "Neomycin":2, 55 | "Gram_Staining":"negative", 56 | "Genus": "other" 57 | }, 58 | { 59 | "Bacteria":"Proteus vulgaris", 60 | "Penicilin":3, 61 | "Streptomycin":0.1, 62 | "Neomycin":0.1, 63 | "Gram_Staining":"negative", 64 | "Genus": "other" 65 | }, 66 | { 67 | "Bacteria":"Pseudomonas aeruginosa", 68 | "Penicilin":850, 69 | "Streptomycin":2, 70 | "Neomycin":0.4, 71 | "Gram_Staining":"negative", 72 | "Genus": "other" 73 | }, 74 | { 75 | "Bacteria":"Salmonella (Eberthella) typhosa", 76 | "Penicilin":1, 77 | "Streptomycin":0.4, 78 | "Neomycin":0.008, 79 | "Gram_Staining":"negative", 80 | "Genus": "Salmonella" 81 | }, 82 | { 83 | "Bacteria":"Salmonella schottmuelleri", 84 | "Penicilin":10, 85 | "Streptomycin":0.8, 86 | "Neomycin":0.09, 87 | "Gram_Staining":"negative", 88 | "Genus": "Salmonella" 89 | }, 90 | { 91 | "Bacteria":"Staphylococcus albus", 92 | "Penicilin":0.007, 93 | "Streptomycin":0.1, 94 | "Neomycin":0.001, 95 | "Gram_Staining":"positive", 96 | "Genus": "Staphylococcus" 97 | }, 98 | { 99 | "Bacteria":"Staphylococcus aureus", 100 | "Penicilin":0.03, 101 | "Streptomycin":0.03, 102 | "Neomycin":0.001, 103 | "Gram_Staining":"positive", 104 | "Genus": "Staphylococcus" 105 | }, 106 | { 107 | "Bacteria":"Streptococcus fecalis", 108 | "Penicilin":1, 109 | "Streptomycin":1, 110 | "Neomycin":0.1, 111 | "Gram_Staining":"positive", 112 | "Genus": "Streptococcus" 113 | }, 114 | { 115 | "Bacteria":"Streptococcus hemolyticus", 116 | "Penicilin":0.001, 117 | "Streptomycin":14, 118 | "Neomycin":10, 119 | "Gram_Staining":"positive", 120 | "Genus": "Streptococcus" 121 | }, 122 | { 123 | "Bacteria":"Streptococcus viridans", 124 | "Penicilin":0.005, 125 | "Streptomycin":10, 126 | "Neomycin":40, 127 | "Gram_Staining":"positive", 128 | "Genus": "Streptococcus" 129 | } 130 | ] -------------------------------------------------------------------------------- /data/crimea.json: -------------------------------------------------------------------------------- 1 | [ 2 | { "date": "4/1854", "wounds": 0, "other": 110, "disease": 110 }, 3 | { "date": "5/1854", "wounds": 0, "other": 95, "disease": 105 }, 4 | { "date": "6/1854", "wounds": 0, "other": 40, "disease": 95 }, 5 | { "date": "7/1854", "wounds": 0, "other": 140, "disease": 520 }, 6 | { "date": "8/1854", "wounds": 20, "other": 150, "disease": 800 }, 7 | { "date": "9/1854", "wounds": 220, "other": 230, "disease": 740 }, 8 | { "date": "10/1854", "wounds": 305, "other": 310, "disease": 600 }, 9 | { "date": "11/1854", "wounds": 480, "other": 290, "disease": 820 }, 10 | { "date": "12/1854", "wounds": 295, "other": 310, "disease": 1100 }, 11 | { "date": "1/1855", "wounds": 230, "other": 460, "disease": 1440 }, 12 | { "date": "2/1855", "wounds": 180, "other": 520, "disease": 1270 }, 13 | { "date": "3/1855", "wounds": 155, "other": 350, "disease": 935 }, 14 | { "date": "4/1855", "wounds": 195, "other": 195, "disease": 560 }, 15 | { "date": "5/1855", "wounds": 180, "other": 155, "disease": 550 }, 16 | { "date": "6/1855", "wounds": 330, "other": 130, "disease": 650 }, 17 | { "date": "7/1855", "wounds": 260, "other": 130, "disease": 430 }, 18 | { "date": "8/1855", "wounds": 290, "other": 110, "disease": 490 }, 19 | { "date": "9/1855", "wounds": 355, "other": 100, "disease": 290 }, 20 | { "date": "10/1855", "wounds": 135, "other": 95, "disease": 245 }, 21 | { "date": "11/1855", "wounds": 100, "other": 140, "disease": 325 }, 22 | { "date": "12/1855", "wounds": 40, "other": 120, "disease": 215 }, 23 | { "date": "1/1856", "wounds": 0, "other": 160, "disease": 160 }, 24 | { "date": "2/1856", "wounds": 0, "other": 100, "disease": 100 }, 25 | { "date": "3/1856", "wounds": 0, "other": 125, "disease": 90 } 26 | ] -------------------------------------------------------------------------------- /data/driving.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"side": "left", "year": 1956, "miles": 3675, "gas": 2.38}, 3 | {"side": "right", "year": 1957, "miles": 3706, "gas": 2.40}, 4 | {"side": "bottom", "year": 1958, "miles": 3766, "gas": 2.26}, 5 | {"side": "top", "year": 1959, "miles": 3905, "gas": 2.31}, 6 | {"side": "right", "year": 1960, "miles": 3935, "gas": 2.27}, 7 | {"side": "bottom", "year": 1961, "miles": 3977, "gas": 2.25}, 8 | {"side": "right", "year": 1962, "miles": 4085, "gas": 2.22}, 9 | {"side": "bottom", "year": 1963, "miles": 4218, "gas": 2.12}, 10 | {"side": "bottom", "year": 1964, "miles": 4369, "gas": 2.11}, 11 | {"side": "bottom", "year": 1965, "miles": 4538, "gas": 2.14}, 12 | {"side": "top", "year": 1966, "miles": 4676, "gas": 2.14}, 13 | {"side": "bottom", "year": 1967, "miles": 4827, "gas": 2.14}, 14 | {"side": "right", "year": 1968, "miles": 5038, "gas": 2.13}, 15 | {"side": "right", "year": 1969, "miles": 5207, "gas": 2.07}, 16 | {"side": "right", "year": 1970, "miles": 5376, "gas": 2.01}, 17 | {"side": "bottom", "year": 1971, "miles": 5617, "gas": 1.93}, 18 | {"side": "bottom", "year": 1972, "miles": 5973, "gas": 1.87}, 19 | {"side": "right", "year": 1973, "miles": 6154, "gas": 1.90}, 20 | {"side": "left", "year": 1974, "miles": 5943, "gas": 2.34}, 21 | {"side": "bottom", "year": 1975, "miles": 6111, "gas": 2.31}, 22 | {"side": "bottom", "year": 1976, "miles": 6389, "gas": 2.32}, 23 | {"side": "top", "year": 1977, "miles": 6630, "gas": 2.36}, 24 | {"side": "bottom", "year": 1978, "miles": 6883, "gas": 2.23}, 25 | {"side": "left", "year": 1979, "miles": 6744, "gas": 2.68}, 26 | {"side": "left", "year": 1980, "miles": 6672, "gas": 3.30}, 27 | {"side": "right", "year": 1981, "miles": 6732, "gas": 3.30}, 28 | {"side": "right", "year": 1982, "miles": 6835, "gas": 2.92}, 29 | {"side": "right", "year": 1983, "miles": 6943, "gas": 2.66}, 30 | {"side": "right", "year": 1984, "miles": 7130, "gas": 2.48}, 31 | {"side": "right", "year": 1985, "miles": 7323, "gas": 2.36}, 32 | {"side": "left", "year": 1986, "miles": 7558, "gas": 1.76}, 33 | {"side": "top", "year": 1987, "miles": 7770, "gas": 1.76}, 34 | {"side": "bottom", "year": 1988, "miles": 8089, "gas": 1.68}, 35 | {"side": "left", "year": 1989, "miles": 8397, "gas": 1.75}, 36 | {"side": "top", "year": 1990, "miles": 8529, "gas": 1.88}, 37 | {"side": "right", "year": 1991, "miles": 8535, "gas": 1.78}, 38 | {"side": "right", "year": 1992, "miles": 8662, "gas": 1.69}, 39 | {"side": "left", "year": 1993, "miles": 8855, "gas": 1.60}, 40 | {"side": "bottom", "year": 1994, "miles": 8909, "gas": 1.59}, 41 | {"side": "bottom", "year": 1995, "miles": 9150, "gas": 1.60}, 42 | {"side": "top", "year": 1996, "miles": 9192, "gas": 1.67}, 43 | {"side": "right", "year": 1997, "miles": 9416, "gas": 1.65}, 44 | {"side": "bottom", "year": 1998, "miles": 9590, "gas": 1.39}, 45 | {"side": "right", "year": 1999, "miles": 9687, "gas": 1.50}, 46 | {"side": "top", "year": 2000, "miles": 9717, "gas": 1.89}, 47 | {"side": "left", "year": 2001, "miles": 9699, "gas": 1.77}, 48 | {"side": "bottom", "year": 2002, "miles": 9814, "gas": 1.64}, 49 | {"side": "right", "year": 2003, "miles": 9868, "gas": 1.86}, 50 | {"side": "left", "year": 2004, "miles": 9994, "gas": 2.14}, 51 | {"side": "left", "year": 2005, "miles": 10067, "gas": 2.53}, 52 | {"side": "right", "year": 2006, "miles": 10037, "gas": 2.79}, 53 | {"side": "right", "year": 2007, "miles": 10025, "gas": 2.95}, 54 | {"side": "left", "year": 2008, "miles": 9880, "gas": 3.31}, 55 | {"side": "bottom", "year": 2009, "miles": 9657, "gas": 2.38}, 56 | {"side": "left", "year": 2010, "miles": 9596, "gas": 2.61} 57 | ] -------------------------------------------------------------------------------- /data/ffox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/data/ffox.png -------------------------------------------------------------------------------- /data/gimp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/data/gimp.png -------------------------------------------------------------------------------- /data/monarchs.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"name":"Elizabeth","start":1565,"end":1603,"index":0}, 3 | {"name":"James I","start":1603,"end":1625,"index":1}, 4 | {"name":"Charles I","start":1625,"end":1649,"index":2}, 5 | {"name":"Cromwell","start":1649,"end":1660,"commonwealth":true,"index":3}, 6 | {"name":"Charles II","start":1660,"end":1685,"index":4}, 7 | {"name":"James II","start":1685,"end":1689,"index":5}, 8 | {"name":"W&M","start":1689,"end":1702,"index":6}, 9 | {"name":"Anne","start":1702,"end":1714,"index":7}, 10 | {"name":"George I","start":1714,"end":1727,"index":8}, 11 | {"name":"George II","start":1727,"end":1760,"index":9}, 12 | {"name":"George III","start":1760,"end":1820,"index":10}, 13 | {"name":"George IV","start":1820,"end":1820,"index":11} 14 | ] -------------------------------------------------------------------------------- /data/sp500.csv: -------------------------------------------------------------------------------- 1 | date,price 2 | Jan 1 2000,1394.46 3 | Feb 1 2000,1366.42 4 | Mar 1 2000,1498.58 5 | Apr 1 2000,1452.43 6 | May 1 2000,1420.6 7 | Jun 1 2000,1454.6 8 | Jul 1 2000,1430.83 9 | Aug 1 2000,1517.68 10 | Sep 1 2000,1436.51 11 | Oct 1 2000,1429.4 12 | Nov 1 2000,1314.95 13 | Dec 1 2000,1320.28 14 | Jan 1 2001,1366.01 15 | Feb 1 2001,1239.94 16 | Mar 1 2001,1160.33 17 | Apr 1 2001,1249.46 18 | May 1 2001,1255.82 19 | Jun 1 2001,1224.38 20 | Jul 1 2001,1211.23 21 | Aug 1 2001,1133.58 22 | Sep 1 2001,1040.94 23 | Oct 1 2001,1059.78 24 | Nov 1 2001,1139.45 25 | Dec 1 2001,1148.08 26 | Jan 1 2002,1130.2 27 | Feb 1 2002,1106.73 28 | Mar 1 2002,1147.39 29 | Apr 1 2002,1076.92 30 | May 1 2002,1067.14 31 | Jun 1 2002,989.82 32 | Jul 1 2002,911.62 33 | Aug 1 2002,916.07 34 | Sep 1 2002,815.28 35 | Oct 1 2002,885.76 36 | Nov 1 2002,936.31 37 | Dec 1 2002,879.82 38 | Jan 1 2003,855.7 39 | Feb 1 2003,841.15 40 | Mar 1 2003,848.18 41 | Apr 1 2003,916.92 42 | May 1 2003,963.59 43 | Jun 1 2003,974.5 44 | Jul 1 2003,990.31 45 | Aug 1 2003,1008.01 46 | Sep 1 2003,995.97 47 | Oct 1 2003,1050.71 48 | Nov 1 2003,1058.2 49 | Dec 1 2003,1111.92 50 | Jan 1 2004,1131.13 51 | Feb 1 2004,1144.94 52 | Mar 1 2004,1126.21 53 | Apr 1 2004,1107.3 54 | May 1 2004,1120.68 55 | Jun 1 2004,1140.84 56 | Jul 1 2004,1101.72 57 | Aug 1 2004,1104.24 58 | Sep 1 2004,1114.58 59 | Oct 1 2004,1130.2 60 | Nov 1 2004,1173.82 61 | Dec 1 2004,1211.92 62 | Jan 1 2005,1181.27 63 | Feb 1 2005,1203.6 64 | Mar 1 2005,1180.59 65 | Apr 1 2005,1156.85 66 | May 1 2005,1191.5 67 | Jun 1 2005,1191.33 68 | Jul 1 2005,1234.18 69 | Aug 1 2005,1220.33 70 | Sep 1 2005,1228.81 71 | Oct 1 2005,1207.01 72 | Nov 1 2005,1249.48 73 | Dec 1 2005,1248.29 74 | Jan 1 2006,1280.08 75 | Feb 1 2006,1280.66 76 | Mar 1 2006,1294.87 77 | Apr 1 2006,1310.61 78 | May 1 2006,1270.09 79 | Jun 1 2006,1270.2 80 | Jul 1 2006,1276.66 81 | Aug 1 2006,1303.82 82 | Sep 1 2006,1335.85 83 | Oct 1 2006,1377.94 84 | Nov 1 2006,1400.63 85 | Dec 1 2006,1418.3 86 | Jan 1 2007,1438.24 87 | Feb 1 2007,1406.82 88 | Mar 1 2007,1420.86 89 | Apr 1 2007,1482.37 90 | May 1 2007,1530.62 91 | Jun 1 2007,1503.35 92 | Jul 1 2007,1455.27 93 | Aug 1 2007,1473.99 94 | Sep 1 2007,1526.75 95 | Oct 1 2007,1549.38 96 | Nov 1 2007,1481.14 97 | Dec 1 2007,1468.36 98 | Jan 1 2008,1378.55 99 | Feb 1 2008,1330.63 100 | Mar 1 2008,1322.7 101 | Apr 1 2008,1385.59 102 | May 1 2008,1400.38 103 | Jun 1 2008,1280 104 | Jul 1 2008,1267.38 105 | Aug 1 2008,1282.83 106 | Sep 1 2008,1166.36 107 | Oct 1 2008,968.75 108 | Nov 1 2008,896.24 109 | Dec 1 2008,903.25 110 | Jan 1 2009,825.88 111 | Feb 1 2009,735.09 112 | Mar 1 2009,797.87 113 | Apr 1 2009,872.81 114 | May 1 2009,919.14 115 | Jun 1 2009,919.32 116 | Jul 1 2009,987.48 117 | Aug 1 2009,1020.62 118 | Sep 1 2009,1057.08 119 | Oct 1 2009,1036.19 120 | Nov 1 2009,1095.63 121 | Dec 1 2009,1115.1 122 | Jan 1 2010,1073.87 123 | Feb 1 2010,1104.49 124 | Mar 1 2010,1140.45 125 | -------------------------------------------------------------------------------- /data/weather.json: -------------------------------------------------------------------------------- 1 | [{"day":"M","record":{"high":62,"low":15},"normal":{"high":50,"low":38},"actual":{"high":48,"low":36},"id":0},{"day":"T","record":{"high":62,"low":23},"normal":{"high":50,"low":38},"actual":{"high":50,"low":40},"id":1},{"day":"W","record":{"high":61,"low":20},"normal":{"high":50,"low":38},"actual":{"high":55,"low":36},"id":2},{"day":"T","record":{"high":67,"low":21},"normal":{"high":50,"low":38},"actual":{"high":51,"low":33},"id":3},{"day":"F","record":{"high":61,"low":23},"normal":{"high":50,"low":38},"actual":{"high":50,"low":30},"id":4},{"day":"S","record":{"high":67,"low":20},"normal":{"high":50,"low":38},"forecast":{"high":{"high":53,"low":49},"low":{"high":40,"low":35}},"id":5},{"day":"S","record":{"high":63,"low":23},"normal":{"high":50,"low":39},"forecast":{"high":{"high":55,"low":49},"low":{"high":42,"low":37}},"id":6},{"day":"M","record":{"high":61,"low":26},"normal":{"high":51,"low":39},"forecast":{"high":{"high":53,"low":49},"low":{"high":43,"low":40}},"id":7},{"day":"T","record":{"high":61,"low":24},"normal":{"high":51,"low":39},"forecast":{"high":{"high":52,"low":46},"low":{"high":44,"low":40}},"id":8},{"day":"W","record":{"high":63,"low":20},"normal":{"high":51,"low":39},"forecast":{"high":{"high":53,"low":46},"low":{"high":43,"low":38}},"id":9}] -------------------------------------------------------------------------------- /data/wheat.json: -------------------------------------------------------------------------------- 1 | [ 2 | {"year":"1565","wheat":41,"wages":5}, 3 | {"year":"1570","wheat":45,"wages":5.05}, 4 | {"year":"1575","wheat":42,"wages":5.08}, 5 | {"year":"1580","wheat":49,"wages":5.12}, 6 | {"year":"1585","wheat":41.5,"wages":5.15}, 7 | {"year":"1590","wheat":47,"wages":5.25}, 8 | {"year":"1595","wheat":64,"wages":5.54}, 9 | {"year":"1600","wheat":27,"wages":5.61}, 10 | {"year":"1605","wheat":33,"wages":5.69}, 11 | {"year":"1610","wheat":32,"wages":5.78}, 12 | {"year":"1615","wheat":33,"wages":5.94}, 13 | {"year":"1620","wheat":35,"wages":6.01}, 14 | {"year":"1625","wheat":33,"wages":6.12}, 15 | {"year":"1630","wheat":45,"wages":6.22}, 16 | {"year":"1635","wheat":33,"wages":6.3}, 17 | {"year":"1640","wheat":39,"wages":6.37}, 18 | {"year":"1645","wheat":53,"wages":6.45}, 19 | {"year":"1650","wheat":42,"wages":6.5}, 20 | {"year":"1655","wheat":40.5,"wages":6.6}, 21 | {"year":"1660","wheat":46.5,"wages":6.75}, 22 | {"year":"1665","wheat":32,"wages":6.8}, 23 | {"year":"1670","wheat":37,"wages":6.9}, 24 | {"year":"1675","wheat":43,"wages":7}, 25 | {"year":"1680","wheat":35,"wages":7.3}, 26 | {"year":"1685","wheat":27,"wages":7.6}, 27 | {"year":"1690","wheat":40,"wages":8}, 28 | {"year":"1695","wheat":50,"wages":8.5}, 29 | {"year":"1700","wheat":30,"wages":9}, 30 | {"year":"1705","wheat":32,"wages":10}, 31 | {"year":"1710","wheat":44,"wages":11}, 32 | {"year":"1715","wheat":33,"wages":11.75}, 33 | {"year":"1720","wheat":29,"wages":12.5}, 34 | {"year":"1725","wheat":39,"wages":13}, 35 | {"year":"1730","wheat":26,"wages":13.3}, 36 | {"year":"1735","wheat":32,"wages":13.6}, 37 | {"year":"1740","wheat":27,"wages":14}, 38 | {"year":"1745","wheat":27.5,"wages":14.5}, 39 | {"year":"1750","wheat":31,"wages":15}, 40 | {"year":"1755","wheat":35.5,"wages":15.7}, 41 | {"year":"1760","wheat":31,"wages":16.5}, 42 | {"year":"1765","wheat":43,"wages":17.6}, 43 | {"year":"1770","wheat":47,"wages":18.5}, 44 | {"year":"1775","wheat":44,"wages":19.5}, 45 | {"year":"1780","wheat":46,"wages":21}, 46 | {"year":"1785","wheat":42,"wages":23}, 47 | {"year":"1790","wheat":47.5,"wages":25.5}, 48 | {"year":"1795","wheat":76,"wages":27.5}, 49 | {"year":"1800","wheat":79,"wages":28.5}, 50 | {"year":"1805","wheat":81,"wages":29.5}, 51 | {"year":"1810","wheat":99,"wages":30}, 52 | {"year":"1815","wheat":78}, 53 | {"year":"1820","wheat":54} 54 | ] -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vega/dataflow-vis/04d9d4e1c4df74fffd668d3a60c83f839da021b6/screenshot.png -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0 30px; 3 | } 4 | 5 | svg { 6 | border: 1px solid #999; 7 | overflow: hidden; 8 | } 9 | 10 | .node { 11 | white-space: nowrap; 12 | } 13 | 14 | .node rect, 15 | .node circle, 16 | .node ellipse { 17 | stroke: #333; 18 | fill: #fff; 19 | stroke-width: 1.5px; 20 | } 21 | 22 | .node.scene rect { 23 | stroke: red; 24 | stroke-width: 2px; 25 | } 26 | .node.scale rect { 27 | stroke: blue; 28 | stroke-width: 2px; 29 | } 30 | .node.df rect { 31 | stroke: orange; 32 | stroke-width: 2px; 33 | } 34 | .node.transform rect { 35 | stroke: darkgreen; 36 | stroke-width: 2px; 37 | } 38 | .node.data rect { 39 | stroke: goldenrod; 40 | stroke-width: 2px; 41 | } 42 | .node.signal ellipse { 43 | fill: #eee; 44 | } 45 | 46 | .edgePath path.path { 47 | stroke: #333; 48 | stroke-width: 1.5px; 49 | fill: none; 50 | } 51 | 52 | .node text { 53 | pointer-events: none; 54 | } 55 | 56 | 57 |