├── .bowerrc ├── examples ├── bar-chart │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── barChartView.js │ ├── data │ │ └── letters.csv │ ├── css │ │ └── style.css │ └── index.html ├── bubble-chart │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── bubbleChartView.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ └── fuel.csv ├── bubble-clusters │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── bubbleClusters.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ └── fuel.csv ├── bubble-physics │ ├── js │ │ ├── requireConfig.js │ │ └── main.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ └── fuel.csv ├── bubble-quadtrees │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── bubbleClusters.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ └── fuel.csv ├── bubble-hierarchy │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── bubbleHierarchyView.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ └── fuel.csv ├── crunchbase-bubbles │ ├── js │ │ ├── requireConfig.js │ │ ├── main.js │ │ └── treeMapView.js │ ├── css │ │ └── style.css │ ├── index.html │ └── data │ │ ├── fuel.csv │ │ └── crunchbase.csv └── crunchbase-treemap │ ├── js │ ├── requireConfig.js │ ├── main.js │ └── treeMapView.js │ ├── css │ └── style.css │ ├── index.html │ └── data │ ├── fuel.csv │ └── crunchbase.csv ├── bower.json ├── README.md └── index.html /.bowerrc: -------------------------------------------------------------------------------- 1 | {"directory":"lib"} 2 | 3 | -------------------------------------------------------------------------------- /examples/bar-chart/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3' 6 | } 7 | }); 8 | require(['main']); -------------------------------------------------------------------------------- /examples/bubble-chart/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3' 6 | } 7 | }); 8 | require(['main']); -------------------------------------------------------------------------------- /examples/bubble-clusters/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3' 6 | } 7 | }); 8 | require(['main']); -------------------------------------------------------------------------------- /examples/bubble-physics/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3' 6 | } 7 | }); 8 | require(['main']); -------------------------------------------------------------------------------- /examples/bubble-quadtrees/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3' 6 | } 7 | }); 8 | require(['main']); -------------------------------------------------------------------------------- /examples/bubble-hierarchy/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3', 6 | underscore: '../../../lib/underscore' 7 | } 8 | }); 9 | require(['main']); -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3', 6 | underscore: '../../../lib/underscore' 7 | } 8 | }); 9 | require(['main']); -------------------------------------------------------------------------------- /examples/crunchbase-treemap/js/requireConfig.js: -------------------------------------------------------------------------------- 1 | require.config({ 2 | paths: { 3 | famous: '../../../lib/famous', 4 | requirejs: '../../../lib/requirejs/require', 5 | d3: '../../../lib/d3', 6 | underscore: '../../../lib/underscore' 7 | } 8 | }); 9 | require(['main']); -------------------------------------------------------------------------------- /examples/bar-chart/data/letters.csv: -------------------------------------------------------------------------------- 1 | letter,frequency A,0.08167 B,0.01492 C,0.02782 D,0.04253 E,0.12702 F,0.02288 G,0.02015 H,0.06094 I,0.06966 J,0.00153 K,0.00772 L,0.04025 M,0.02406 N,0.06749 O,0.07507 P,0.01929 Q,0.00095 R,0.05987 S,0.06327 T,0.09056 U,0.02758 V,0.00978 W,0.0236 X,0.0015 Y,0.01974 Z,0.00074 -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "famous-chart-demos", 3 | "version": "0.0.0", 4 | "homepage": "https://github.com/sghall/famous-chart-demos", 5 | "authors": [ 6 | "shall " 7 | ], 8 | "description": "Demo charts combining famo.us and d3", 9 | "license": "MIT", 10 | "dependencies": { 11 | "famous": "~0.2.1", 12 | "d3": "~3.4.8", 13 | "requirejs": "~2.1.14", 14 | "underscore": "~1.6.0" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | famous-chart-demos 2 | ================== 3 | 4 | Set-up: 5 | 6 | You need to have Node and Bower installed. 7 | 8 | 1. Clone the repo or download the zip 9 | 2. Change into the directory 10 | 3. Type "bower install" 11 | 4. Start your local server from the root of the repo 12 | 13 | TODO: 14 | Need better test data to demo these properly. All the examples need to have support for adding legends and title. The bar chart example could also be extended to have SVG axes. 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /examples/bar-chart/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | background-color: #A5A9AA; 4 | } 5 | 6 | #charts { 7 | height: 500px; 8 | } 9 | 10 | #intro { 11 | margin-left: 50px; 12 | } 13 | 14 | .tooltip { 15 | display: none; 16 | background: #4C5355; 17 | border: 2px solid white; 18 | pointer-events: none; 19 | padding: 5px 10px; 20 | color: white; 21 | border-radius: 10px; 22 | margin-top: 10px; 23 | text-align: center; 24 | font: bold 11px "Helvetica Neue", Sans-Serif; 25 | font-stretch: condensed; 26 | text-decoration: none; 27 | text-transform: uppercase; 28 | box-shadow: 0 0 7px black; 29 | } -------------------------------------------------------------------------------- /examples/bubble-chart/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | background-color: #A5A9AA; 4 | } 5 | 6 | #charts { 7 | height: 500px; 8 | } 9 | 10 | #intro { 11 | margin-left: 50px; 12 | } 13 | 14 | .tooltip { 15 | display: none; 16 | background: #45484B; 17 | border: 2px solid white; 18 | pointer-events: none; 19 | padding: 5px 10px; 20 | color: white; 21 | border-radius: 10px; 22 | margin-top: 10px; 23 | text-align: center; 24 | font: bold 10px "Helvetica Neue", Sans-Serif; 25 | font-stretch: condensed; 26 | text-decoration: none; 27 | text-transform: uppercase; 28 | box-shadow: 0 0 7px black; 29 | } -------------------------------------------------------------------------------- /examples/bubble-hierarchy/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | background-color: #A5A9AA; 4 | } 5 | 6 | #charts { 7 | height: 500px; 8 | } 9 | 10 | #intro { 11 | margin-left: 50px; 12 | } 13 | 14 | .tooltip { 15 | display: none; 16 | background: #45484B; 17 | border: 2px solid white; 18 | pointer-events: none; 19 | padding: 5px 10px; 20 | color: white; 21 | border-radius: 10px; 22 | margin-top: 10px; 23 | text-align: center; 24 | font: bold 10px "Helvetica Neue", Sans-Serif; 25 | font-stretch: condensed; 26 | text-decoration: none; 27 | text-transform: uppercase; 28 | box-shadow: 0 0 7px black; 29 | } -------------------------------------------------------------------------------- /examples/bubble-physics/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | background-color: #A5A9AA; 4 | } 5 | 6 | #charts { 7 | height: 500px; 8 | } 9 | 10 | #intro { 11 | margin-left: 50px; 12 | } 13 | 14 | .tooltip { 15 | display: none; 16 | background: #45484B; 17 | border: 2px solid white; 18 | pointer-events: none; 19 | padding: 5px 10px; 20 | color: white; 21 | border-radius: 10px; 22 | margin-top: 10px; 23 | text-align: center; 24 | font: bold 10px "Helvetica Neue", Sans-Serif; 25 | font-stretch: condensed; 26 | text-decoration: none; 27 | text-transform: uppercase; 28 | box-shadow: 0 0 7px black; 29 | } -------------------------------------------------------------------------------- /examples/crunchbase-treemap/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: black; 3 | font-family: arial, Sans-Serif; 4 | background-color: #333; 5 | } 6 | 7 | .title { 8 | padding-top: 10px; 9 | } 10 | 11 | #charts { 12 | height: 700px; 13 | } 14 | 15 | #intro { 16 | margin-left: 10px; 17 | } 18 | 19 | .tooltip { 20 | display: none; 21 | background: #45484B; 22 | border: 2px solid white; 23 | pointer-events: none; 24 | padding: 5px 10px; 25 | color: white; 26 | border-radius: 10px; 27 | margin-top: 10px; 28 | text-align: center; 29 | font: bold 10px "Helvetica Neue", Sans-Serif; 30 | font-stretch: condensed; 31 | text-decoration: none; 32 | text-transform: uppercase; 33 | box-shadow: 0 0 7px black; 34 | } -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | font-family: arial, Sans-Serif; 4 | background-color: #A5A9AA; 5 | } 6 | 7 | .title { 8 | padding-top: 10px; 9 | } 10 | 11 | #charts { 12 | height: 650px; 13 | } 14 | 15 | #intro { 16 | margin-left: 50px; 17 | } 18 | 19 | .tooltip { 20 | display: none; 21 | background: #45484B; 22 | border: 2px solid white; 23 | pointer-events: none; 24 | padding: 5px 10px; 25 | color: white; 26 | border-radius: 10px; 27 | margin-top: 10px; 28 | text-align: center; 29 | font: bold 10px "Helvetica Neue", Sans-Serif; 30 | font-stretch: condensed; 31 | text-decoration: none; 32 | text-transform: uppercase; 33 | box-shadow: 0 0 7px black; 34 | } -------------------------------------------------------------------------------- /examples/bubble-clusters/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var Engine = require('famous/core/Engine'); 5 | var Bubble = require('bubbleClusters'); 6 | 7 | var el = document.getElementById("charts"); 8 | var mainCntxt = Engine.createContext(el); 9 | 10 | d3.csv('data/fuel.csv', function (error, data) { 11 | var size = [1100, 600]; 12 | var view = Bubble.createView(size, data); 13 | mainCntxt.add(view); 14 | 15 | setTimeout(function () { 16 | Bubble.updateView(size, 'make'); 17 | }, 100); 18 | 19 | d3.selectAll('button').on('click', function() { 20 | Bubble.updateView(size, this.id); 21 | }); 22 | }); 23 | }); 24 | 25 | -------------------------------------------------------------------------------- /examples/bubble-quadtrees/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var Engine = require('famous/core/Engine'); 5 | var Bubble = require('bubbleClusters'); 6 | 7 | var el = document.getElementById("charts"); 8 | var mainCntxt = Engine.createContext(el); 9 | 10 | d3.csv('data/fuel.csv', function (error, data) { 11 | var size = [1000, 600]; 12 | var view = Bubble.createView(size, data); 13 | mainCntxt.add(view); 14 | 15 | setTimeout(function () { 16 | Bubble.updateView(size, 'make'); 17 | }, 100); 18 | 19 | d3.selectAll('button').on('click', function() { 20 | Bubble.updateView(size, this.id); 21 | }); 22 | }); 23 | }); 24 | 25 | -------------------------------------------------------------------------------- /examples/crunchbase-treemap/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Treemaps 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hierarchical Bubbles 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Famous Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |

Famo.us and D3 Demos

13 |
14 | Bars Charts 15 | Bubble Hierarchy 16 | Bubble Charts 17 | Treemap Charts 18 | Bubble Clusters 19 | 20 | 21 | -------------------------------------------------------------------------------- /examples/bar-chart/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bar Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Famo.us and D3 Demo | Bar Chart Scroll View

15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/bubble-chart/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Famous Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Famo.us and D3 Demo | Bubble Chart Scroll View

15 |
16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /examples/bubble-quadtrees/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | color: white; 3 | background-color: #A5A9AA; 4 | } 5 | 6 | button { 7 | width: 33%; 8 | height: 20px; 9 | background-color: black; 10 | color: white; 11 | } 12 | 13 | #charts { 14 | position: absolute; 15 | height: 500px; 16 | } 17 | 18 | #intro { 19 | margin-left: 50px; 20 | margin-right: 50px; 21 | } 22 | 23 | .bubble { 24 | opacity: .6; 25 | } 26 | 27 | .tooltip { 28 | display: none; 29 | background: #45484B; 30 | border: 2px solid white; 31 | pointer-events: none; 32 | padding: 5px 10px; 33 | color: white; 34 | border-radius: 10px; 35 | margin-top: 10px; 36 | text-align: center; 37 | font: bold 10px "Helvetica Neue", Sans-Serif; 38 | font-stretch: condensed; 39 | text-decoration: none; 40 | text-transform: uppercase; 41 | box-shadow: 0 0 7px black; 42 | } -------------------------------------------------------------------------------- /examples/bubble-physics/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Famous Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Famo.us and D3 Demo | Bubble Physics

15 |
16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/bubble-clusters/css/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding-left: 75px; 3 | color: white; 4 | background-color: #333; 5 | } 6 | 7 | text { 8 | fill: white; 9 | } 10 | 11 | button { 12 | width: 333px; 13 | height: 30px; 14 | background-color: grey; 15 | color: white; 16 | } 17 | 18 | #charts { 19 | position: absolute; 20 | height: 500px; 21 | } 22 | 23 | #intro { 24 | margin-left: 50px; 25 | margin-right: 50px; 26 | } 27 | 28 | .bubble { 29 | opacity: .6; 30 | } 31 | 32 | .tooltip { 33 | display: none; 34 | background: #45484B; 35 | border: 2px solid white; 36 | pointer-events: none; 37 | padding: 5px 10px; 38 | color: white; 39 | border-radius: 10px; 40 | margin-top: 10px; 41 | text-align: center; 42 | font: bold 10px "Helvetica Neue", Sans-Serif; 43 | font-stretch: condensed; 44 | text-decoration: none; 45 | text-transform: uppercase; 46 | box-shadow: 0 0 7px black; 47 | } -------------------------------------------------------------------------------- /examples/bubble-hierarchy/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Famous Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Famo.us and D3 Demo | Bubble Hierarchy Scroll View

15 |
16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /examples/bubble-clusters/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bubble Clusters 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 |
18 |
19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /examples/bubble-quadtrees/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Famous Charts 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |

Famo.us and D3 Demo | Bubbles Using Quadtree

15 | 16 | 17 | 18 |
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /examples/bar-chart/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var Engine = require('famous/core/Engine'); 4 | var Surface = require('famous/core/Surface'); 5 | var Transform = require('famous/core/Transform'); 6 | var Scrollview = require('famous/views/Scrollview'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var ViewSequence = require('famous/core/ViewSequence'); 9 | var barChartView = require('barChartView'); 10 | var d3 = require('d3/d3'); 11 | 12 | var el = document.getElementById("charts"); 13 | var mainContext = Engine.createContext(el); 14 | mainContext.setPerspective(500); 15 | 16 | var chartViews = []; 17 | var scrollview = new Scrollview({ 18 | margin: 50 19 | }); 20 | 21 | Engine.pipe(scrollview); 22 | 23 | var viewSequence = new ViewSequence({ 24 | array: chartViews, 25 | loop: true 26 | }); 27 | scrollview.sequenceFrom(viewSequence); 28 | 29 | var size = [800, 400]; 30 | 31 | var centerModifier = new StateModifier({ 32 | size: size, 33 | origin: [0.5, 0.5], 34 | align: [0.5, 0.5] 35 | }); 36 | 37 | mainContext.add(centerModifier).add(scrollview); 38 | 39 | d3.csv('data/letters.csv', function (err, data) { 40 | 41 | for (var i = 0; i < 30; i++) { 42 | var view = barChartView(400, 800, data); 43 | chartViews.push(view); 44 | } 45 | 46 | scrollview.outputFrom(function(offset) { 47 | return Transform.moveThen([0, -50, 350], Transform.rotateX(-0.004 * offset)); 48 | }); 49 | }); 50 | }); -------------------------------------------------------------------------------- /examples/bubble-hierarchy/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var Engine = require('famous/core/Engine'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var Scrollview = require('famous/views/Scrollview'); 8 | var StateModifier = require('famous/modifiers/StateModifier'); 9 | var ViewSequence = require('famous/core/ViewSequence'); 10 | var bubbleHierarchyView = require('bubbleHierarchyView'); 11 | 12 | var el = document.getElementById("charts"); 13 | var mainContext = Engine.createContext(el); 14 | mainContext.setPerspective(500); 15 | 16 | var chartViews = []; 17 | var scrollview = new Scrollview({ 18 | margin: 50 19 | }); 20 | 21 | Engine.pipe(scrollview); 22 | 23 | var viewSequence = new ViewSequence({ 24 | array: chartViews, 25 | loop: true 26 | }); 27 | scrollview.sequenceFrom(viewSequence); 28 | 29 | var viewSize = [600, 400]; 30 | 31 | var centerModifier = new StateModifier({ 32 | size: viewSize, 33 | origin: [0.5, 0.5], 34 | align: [0.5, 0.5] 35 | }); 36 | 37 | mainContext.add(centerModifier).add(scrollview); 38 | 39 | d3.csv('data/fuel.csv', function (err, data) { 40 | 41 | for (var i = 0; i < 30; i++) { 42 | var view = bubbleHierarchyView(viewSize, ['make'], data.slice(0)); 43 | chartViews.push(view); 44 | } 45 | 46 | scrollview.outputFrom(function(offset) { 47 | return Transform.moveThen([0, -50, 350], Transform.rotateX(-0.004 * offset)); 48 | }); 49 | }); 50 | }); -------------------------------------------------------------------------------- /examples/bubble-chart/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var Engine = require('famous/core/Engine'); 4 | var Surface = require('famous/core/Surface'); 5 | var Transform = require('famous/core/Transform'); 6 | var Scrollview = require('famous/views/Scrollview'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var ViewSequence = require('famous/core/ViewSequence'); 9 | var bubbleChartView = require('bubbleChartView'); 10 | var d3 = require('d3/d3'); 11 | 12 | var el = document.getElementById("charts"); 13 | var mainContext = Engine.createContext(el); 14 | mainContext.setPerspective(500); 15 | 16 | var chartViews = []; 17 | var scrollview = new Scrollview({ 18 | margin: 50 19 | }); 20 | 21 | Engine.pipe(scrollview); 22 | 23 | var viewSequence = new ViewSequence({ 24 | array: chartViews, 25 | loop: true 26 | }); 27 | scrollview.sequenceFrom(viewSequence); 28 | 29 | var viewSize = [600, 400]; 30 | 31 | var centerModifier = new StateModifier({ 32 | size: viewSize, 33 | origin: [0.5, 0.5], 34 | align: [0.5, 0.5] 35 | }); 36 | 37 | mainContext.add(centerModifier).add(scrollview); 38 | 39 | d3.csv('data/fuel.csv', function (err, data) { 40 | 41 | for (var i = 0; i < 30; i++) { 42 | var view = bubbleChartView(viewSize, data.slice(0)); 43 | chartViews.push(view); 44 | } 45 | 46 | scrollview.outputFrom(function(offset) { 47 | return Transform.moveThen([0, -50, 350], Transform.rotateX(-0.004 * offset)); 48 | }); 49 | }); 50 | }); -------------------------------------------------------------------------------- /examples/crunchbase-treemap/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var Engine = require('famous/core/Engine'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var Scrollview = require('famous/views/Scrollview'); 8 | var StateModifier = require('famous/modifiers/StateModifier'); 9 | var ViewSequence = require('famous/core/ViewSequence'); 10 | var treeMapView = require('treeMapView'); 11 | 12 | var el = document.getElementById("charts"); 13 | var mainContext = Engine.createContext(el); 14 | mainContext.setPerspective(500); 15 | 16 | var chartViews = []; 17 | var scrollview = new Scrollview({ 18 | margin: 50 19 | }); 20 | 21 | Engine.pipe(scrollview); 22 | 23 | var viewSequence = new ViewSequence({ 24 | array: chartViews, 25 | loop: true 26 | }); 27 | scrollview.sequenceFrom(viewSequence); 28 | 29 | var viewSize = [1000, 600]; 30 | 31 | var centerModifier = new StateModifier({ 32 | size: viewSize, 33 | origin: [0.5, 0.5], 34 | align: [0.5, 0.5] 35 | }); 36 | 37 | mainContext.add(centerModifier).add(scrollview); 38 | 39 | d3.csv('data/crunchbase.csv', function (err, data) { 40 | 41 | var regions = _.unique(_.pluck(data, 'Region')); 42 | 43 | regions.forEach(function (r) { 44 | // console.log(r); 45 | var regionData = data.filter(function (d) { 46 | return d.Region === r; 47 | }); 48 | // console.log(regionData); 49 | var view = treeMapView(viewSize, ['Market', 'Funding'], regionData, r); 50 | chartViews.push(view); 51 | }); 52 | 53 | // for (var i = 0; i < 30; i++) { 54 | // var view = treeMapView(viewSize, ['make'], data.slice(0)); 55 | // chartViews.push(view); 56 | // } 57 | 58 | scrollview.outputFrom(function(offset) { 59 | return Transform.moveThen([0, -50, 350], Transform.rotateX(-0.004 * offset)); 60 | }); 61 | }); 62 | }); -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var Engine = require('famous/core/Engine'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var Scrollview = require('famous/views/Scrollview'); 8 | var StateModifier = require('famous/modifiers/StateModifier'); 9 | var ViewSequence = require('famous/core/ViewSequence'); 10 | var treeMapView = require('treeMapView'); 11 | 12 | var el = document.getElementById("charts"); 13 | var mainContext = Engine.createContext(el); 14 | mainContext.setPerspective(500); 15 | 16 | 17 | var chartViews = []; 18 | var scrollview = new Scrollview({ 19 | margin: 50 20 | }); 21 | 22 | Engine.pipe(scrollview); 23 | 24 | var viewSequence = new ViewSequence({ 25 | array: chartViews, 26 | loop: true 27 | }); 28 | scrollview.sequenceFrom(viewSequence); 29 | 30 | var viewSize = [1000, 600]; 31 | 32 | var centerModifier = new StateModifier({ 33 | size: viewSize, 34 | origin: [0.5, 0.5], 35 | align: [0.5, 0.5] 36 | }); 37 | 38 | mainContext.add(centerModifier).add(scrollview); 39 | 40 | d3.csv('data/crunchbase.csv', function (err, data) { 41 | 42 | var regions = _.unique(_.pluck(data, 'Region')); 43 | 44 | regions.forEach(function (r) { 45 | // console.log(r); 46 | var regionData = data.filter(function (d) { 47 | return d.Region === r; 48 | }); 49 | // console.log(regionData); 50 | var view = treeMapView(viewSize, ['Market', 'Funding'], regionData, r); 51 | chartViews.push(view); 52 | }); 53 | 54 | // for (var i = 0; i < 30; i++) { 55 | // var view = treeMapView(viewSize, ['make'], data.slice(0)); 56 | // chartViews.push(view); 57 | // } 58 | 59 | scrollview.outputFrom(function(offset) { 60 | return Transform.moveThen([0, -50, 350], Transform.rotateX(-0.004 * offset)); 61 | }); 62 | }); 63 | }); -------------------------------------------------------------------------------- /examples/bar-chart/js/barChartView.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Easing = require('famous/transitions/Easing'); 9 | var Modifier = require('famous/core/Modifier'); 10 | 11 | var createBarView = function (viewHeight, viewWidth, data) { 12 | var tooltip = { w: 90, h: 40 }; 13 | var margins = {t: 50, r: 20, b: 30, l: 40}; 14 | var width = viewWidth - margins.l - margins.r; 15 | var height = viewHeight - margins.t - margins.b; 16 | 17 | var x = d3.scale.ordinal() 18 | .rangeRoundBands([0, width], .1); 19 | 20 | var y = d3.scale.linear() 21 | .range([height, 0]); 22 | 23 | x.domain(data.map(function (d) { return d.letter; })); 24 | y.domain([0, d3.max(data, function (d) { return d.frequency; })]); 25 | 26 | var background = new Surface({ 27 | size: [viewWidth, viewHeight], 28 | properties: { 29 | backgroundColor: '#fff', 30 | border: '1px solid #6E7577', 31 | borderRadius: '8px' 32 | } 33 | }); 34 | 35 | var tooltipSurface = new Surface({ 36 | size: [tooltip.w, tooltip.h], 37 | classes: ['tooltip'] 38 | }); 39 | 40 | var tooltipModifier = new StateModifier({ 41 | origin: [0, 0] 42 | }); 43 | 44 | var getBar = function (d) { 45 | var bar = new Surface({ 46 | size: [x.rangeBand(), height - y(d.frequency)], 47 | content: height - y(d.frequency) > 12 ? (d.letter):'', 48 | classes: ['bar'], 49 | properties: { 50 | textAlign: 'center', 51 | color: '#FFFBF7', 52 | border: '2px solid #A5A9AA', 53 | backgroundColor: '#36211C' 54 | } 55 | }); 56 | 57 | bar.on('mouseover', function (e) { 58 | var newX, newY; 59 | 60 | tooltipSurface.setProperties({display: 'inline'}); 61 | tooltipSurface.setContent("Letter: " + d.letter + "
" + d3.format('.2p')(d.frequency)); 62 | 63 | newX = x(d.letter) + margins.l - (tooltip.w / 2) + (x.rangeBand() / 2); 64 | newY = y(d.frequency) + margins.t - tooltip.h - 15; 65 | 66 | tooltipModifier.setTransform( 67 | Transform.translate(newX, newY, 2), 68 | { duration : 50, curve: Easing.outCirc } 69 | ); 70 | 71 | this.setProperties({ 72 | backgroundColor: '#897D7A' 73 | }); 74 | }); 75 | 76 | bar.on('mouseout', function() { 77 | tooltipSurface.setProperties({display: 'none'}); 78 | this.setProperties({ 79 | backgroundColor: '#36211C' 80 | }); 81 | }); 82 | 83 | return bar; 84 | }; 85 | 86 | var getBarModifier = function (d, i) { 87 | var modifier = new StateModifier(); 88 | modifier.setTransform( 89 | Transform.translate(x(d.letter) + 1000, y(d.frequency) + margins.t, 1), 90 | { duration : 0 , curve: Easing.inOutElastic } 91 | ); 92 | modifier.setTransform( 93 | Transform.translate(x(d.letter) + margins.l, y(d.frequency) + margins.t, 1), 94 | { duration : i * 100 + 30, curve: Easing.inOutElastic } 95 | ); 96 | 97 | return modifier; 98 | }; 99 | 100 | var view = new View({size: [viewWidth, viewHeight]}); 101 | view.add(background); 102 | 103 | data.forEach(function (item, index) { 104 | view.add(getBarModifier(item, index)).add(getBar(item)); 105 | }); 106 | 107 | view.add(tooltipModifier).add(tooltipSurface); 108 | 109 | return view; 110 | }; 111 | 112 | module.exports = createBarView; 113 | }); -------------------------------------------------------------------------------- /examples/bubble-chart/js/bubbleChartView.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Easing = require('famous/transitions/Easing'); 9 | var Modifier = require('famous/core/Modifier'); 10 | 11 | var createBubbleView = function (viewSize, data) { 12 | var tooltip = { w: 150, h: 60 }; 13 | var margins = {t: 50, r: 150, b: 20, l: 150}; 14 | 15 | var dim1 = viewSize[0] - margins.l - margins.r; 16 | var dim2 = viewSize[1] - margins.t - margins.b; 17 | var diameter = dim1 < dim2 ? dim1: dim2; 18 | 19 | var format = d3.format(",d"); 20 | var color = d3.scale.ordinal().range(['#58625C','#4C5355','#89817A','#36211C','#A5A9AA']); 21 | 22 | var bubble = d3.layout.pack() 23 | .sort(function (d) { return d.comb}) 24 | .size([diameter, diameter]) 25 | .padding(1.5) 26 | 27 | for (var i = 0; i < data.length; i++) { 28 | data[i].comb = +data[i].comb; 29 | data[i].value = data[i].comb; 30 | } 31 | 32 | bubble.nodes({children: data}); 33 | 34 | var background = new Surface({ 35 | size: viewSize, 36 | properties: { 37 | backgroundColor: '#fff', 38 | border: '1px solid #6E7577', 39 | borderRadius: '8px' 40 | } 41 | }); 42 | 43 | var tooltipSurface = new Surface({ 44 | size: [tooltip.w, tooltip.h], 45 | classes: ['tooltip'] 46 | }); 47 | 48 | var tooltipModifier = new StateModifier({ 49 | origin: [0, 0] 50 | }); 51 | 52 | var getBubble = function (d) { 53 | var bubble = new Surface({ 54 | size: [d.r * 2, d.r * 2], 55 | content: d.r > 10 ? d.make:'', 56 | properties: { 57 | fontSize: '9px', 58 | borderRadius: '50%', 59 | textAlign: 'center', 60 | color: 'white', 61 | border: '1px solid #121E21', 62 | backgroundColor: color(d.make) 63 | } 64 | }); 65 | 66 | bubble.on('mouseover', function (e) { 67 | var newX, newY; 68 | 69 | tooltipSurface.setProperties({display: 'inline'}); 70 | 71 | var text = d.make + "
" + d.model.slice(0,20) + "
MPG: " + d.comb + "
" + d.trany.slice(0,21); 72 | tooltipSurface.setContent(text); 73 | 74 | newX = d.x + margins.l - (tooltip.w / 2) + d.r; 75 | newY = d.y + margins.t - tooltip.h - 20; 76 | 77 | tooltipModifier.setTransform( 78 | Transform.translate(newX, newY, 2), 79 | { duration : 50, curve: Easing.outCirc } 80 | ); 81 | 82 | this.setProperties({ 83 | backgroundColor: '#A5A9AA' 84 | }); 85 | }); 86 | 87 | bubble.on('mouseout', function() { 88 | tooltipSurface.setProperties({display: 'none'}); 89 | this.setProperties({ 90 | backgroundColor: color(d.make) 91 | }); 92 | }); 93 | 94 | return bubble; 95 | }; 96 | 97 | var getBubbleModifier = function (d, i) { 98 | var modifier = new StateModifier({ 99 | align: [0, 0], 100 | origin: [0.5, 0.5] 101 | }); 102 | 103 | modifier.setTransform( 104 | Transform.translate(d.x + 2000, d.y + margins.t, 1), 105 | { duration : 0 , curve: Easing.inOutElastic } 106 | ); 107 | modifier.setTransform( 108 | Transform.translate(d.x + margins.l, d.y + margins.t, 1), 109 | { duration : i * 30 + 30, curve: Easing.inOutElastic } 110 | ); 111 | 112 | return modifier; 113 | }; 114 | 115 | var view = new View({size: viewSize}); 116 | view.add(background); 117 | view.add(tooltipModifier).add(tooltipSurface); 118 | data.forEach(function (item, index) { 119 | view.add(getBubbleModifier(item, index)).add(getBubble(item)); 120 | }); 121 | 122 | return view; 123 | }; 124 | 125 | module.exports = createBubbleView; 126 | }); -------------------------------------------------------------------------------- /examples/bubble-physics/js/main.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var Engine = require('famous/core/Engine'); 4 | var Surface = require('famous/core/Surface'); 5 | var RenderNode = require('famous/core/RenderNode'); 6 | var Modifier = require('famous/core/Modifier'); 7 | var Transform = require('famous/core/Transform'); 8 | var Circle = require('famous/physics/bodies/Circle') 9 | var PhysicsEngine = require('famous/physics/PhysicsEngine'); 10 | var Random = require('famous/math/Random'); 11 | var VectorField = require('famous/physics/forces/VectorField'); 12 | var Drag = require('famous/physics/forces/Drag'); 13 | var Collisions = require('famous/physics/constraints/Collision'); 14 | var Walls = require('famous/physics/constraints/Walls'); 15 | var StateModifier = require('famous/modifiers/StateModifier'); 16 | var Vector = require('famous/math/Vector'); 17 | var d3 = require('d3/d3'); 18 | 19 | var el = document.getElementById("charts"); 20 | var mainContext = Engine.createContext(); 21 | mainContext.setPerspective(500); 22 | window.PE = new PhysicsEngine(); 23 | var collision = new Collisions({restitution : .8}); 24 | window.drag = new Drag({strength : .005}); 25 | 26 | 27 | d3.csv('data/fuel.csv', function (error, data) { 28 | window.data = data; 29 | var width = 1000, height = 1000; 30 | var fill = d3.scale.ordinal().range(['#827d92','#827354','#523536','#72856a','#2a3285','#383435']) 31 | var svg = d3.select("#charts").append("svg") 32 | .attr("width", width) 33 | .attr("height", height); 34 | 35 | for (var j = 0; j < data.length; j++) { 36 | data[j].radius = +data[j].comb / 2; 37 | data[j].x = Math.random() * 100 + 200; 38 | data[j].y = Math.random() * 100 + 200; 39 | } 40 | 41 | var getCenters = function (vname, w, h) { 42 | var nodes = _.uniq(_.pluck(data, vname)).map(function (d) { 43 | return {name: d, value: 1}; 44 | }); 45 | 46 | var map = d3.layout.treemap().size([w, h]).ratio(1/1); 47 | map.nodes({children: nodes}); 48 | 49 | return nodes; 50 | } 51 | 52 | var getVectorField = function (x, y) { 53 | return new VectorField({ 54 | field : VectorField.FIELDS.POINT_ATTRACTOR, 55 | strength : 0.00002, 56 | position: new Vector(x, y, 0) 57 | }); 58 | }; 59 | 60 | var getSurface = function (d) { 61 | return new Surface({ 62 | origin: [0.5, 0.5], 63 | size : [d.radius * 2, d.radius * 2], 64 | properties : { 65 | background : fill(d.make), 66 | borderRadius : '50%', 67 | border: '2px solid #333' 68 | } 69 | }); 70 | }; 71 | 72 | var getCircle = function (d) { 73 | return new Circle({ 74 | radius: d.radius, 75 | position: [d.x, d.y, 0] 76 | }); 77 | }; 78 | 79 | var targets = []; 80 | for (var k = 0; k < data.length; k++) { 81 | var d = data[k]; 82 | var particle = getCircle(d); 83 | var surface = getSurface(d); 84 | PE.addBody(particle); 85 | mainContext.add(particle).add(surface); 86 | targets.push(particle); 87 | } 88 | 89 | startPhysics('make'); 90 | 91 | function startPhysics (varname) { 92 | var centers = getCenters(varname, 600, 600); 93 | var foci = {} 94 | for (var i = 0; i < centers.length; i++) { 95 | var center = foci[centers[i].name]= centers[i]; 96 | var x = center.dx / 2 + center.x; 97 | var y = center.dy / 2 + center.y; 98 | center.gravity = getVectorField(x, y); 99 | } 100 | console.log(foci); 101 | for (var d = 0, len = targets.length; d < len; d++) { 102 | var gravity = foci[data[d][varname]].gravity; 103 | PE.attach([collision], targets, targets[d]); 104 | PE.attach([gravity, drag], targets[d]); 105 | } 106 | 107 | // setTimeout(function () { 108 | // var agents = PE._agents; 109 | // for (var a in agents) { 110 | // if (agents[a].agent instanceof Drag) { 111 | // console.log(+a, agents[a]) 112 | // PE.detach(+a); 113 | // } 114 | // } 115 | // }, 10000); 116 | 117 | 118 | } 119 | 120 | function collide(alpha) { 121 | var quadtree = d3.geom.quadtree(data); 122 | return function (d) { 123 | var r = d.radius + maxRadius + padding, 124 | nx1 = d.x - r, 125 | nx2 = d.x + r, 126 | ny1 = d.y - r, 127 | ny2 = d.y + r; 128 | quadtree.visit(function(quad, x1, y1, x2, y2) { 129 | if (quad.point && (quad.point !== d)) { 130 | var x = d.x - quad.point.x, 131 | y = d.y - quad.point.y, 132 | l = Math.sqrt(x * x + y * y), 133 | r = d.radius + quad.point.radius + padding; 134 | if (l < r) { 135 | l = (l - r) / l * alpha; 136 | d.x -= x *= l; 137 | d.y -= y *= l; 138 | quad.point.x += x; 139 | quad.point.y += y; 140 | } 141 | } 142 | return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1; 143 | }); 144 | }; 145 | } 146 | }); 147 | }); -------------------------------------------------------------------------------- /examples/bubble-hierarchy/js/bubbleHierarchyView.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Easing = require('famous/transitions/Easing'); 9 | var Modifier = require('famous/core/Modifier'); 10 | 11 | var createBubbleHierarchyView = function (viewSize, groups, data) { 12 | var tooltip = { w: 150, h: 60 }; 13 | var margins = {t: 50, r: 130, b: 20, l: 130}; 14 | var view = new View({size: viewSize}); 15 | var counter = 0; 16 | 17 | var dim1 = viewSize[0] - margins.l - margins.r; 18 | var dim2 = viewSize[1] - margins.t - margins.b; 19 | var diameter = dim1 < dim2 ? dim1: dim2; 20 | var color = d3.scale.ordinal().range(['#58625C','#4C5355','#89817A','#36211C','#A5A9AA','#121E21']); 21 | 22 | var bubble = d3.layout.pack() 23 | .sort(function (d) { return d.comb }) 24 | .size([diameter, diameter]) 25 | .padding(1.5) 26 | 27 | for (var i = 0; i < data.length; i++) { 28 | data[i].comb = +data[i].comb; 29 | data[i].value = data[i].comb; 30 | } 31 | 32 | var formatJSON = function (csvData, groups) { 33 | 34 | var genGroups = function(data) { 35 | return _.map(data, function(element, index) { 36 | return { name : index, children : element }; 37 | }); 38 | }; 39 | 40 | var nest = function(node, curIndex) { 41 | if (curIndex === 0) { 42 | node.children = genGroups(_.groupBy(csvData, groups[0])); 43 | _.each(node.children, function (child) { 44 | nest(child, curIndex + 1); 45 | }); 46 | } 47 | else { 48 | if (curIndex < groups.length) { 49 | node.children = genGroups( 50 | _.groupBy(node.children, groups[curIndex]) 51 | ); 52 | _.each(node.children, function (child) { 53 | nest(child, curIndex + 1); 54 | }); 55 | } 56 | } 57 | return node; 58 | }; 59 | return nest({}, 0); 60 | }; 61 | 62 | var root = formatJSON(data, groups); 63 | bubble.nodes(root); 64 | 65 | var background = new Surface({ 66 | size: viewSize, 67 | properties: { 68 | backgroundColor: '#fff', 69 | border: '1px solid #6E7577', 70 | borderRadius: '8px' 71 | } 72 | }); 73 | 74 | var tooltipSurface = new Surface({ 75 | size: [tooltip.w, tooltip.h], 76 | classes: ['tooltip'] 77 | }); 78 | 79 | var tooltipModifier = new StateModifier({ 80 | origin: [0, 0] 81 | }); 82 | 83 | var getColor = function (d) { 84 | if (d.depth === 0) { 85 | return '#C0B9B2'; 86 | } else if (d.depth === 1){ 87 | return '#FFFFFF'; 88 | } else { 89 | return color(d.make); 90 | } 91 | } 92 | 93 | var getBubble = function (d) { 94 | var bubble = new Surface({ 95 | size: [d.r * 2, d.r * 2], 96 | content: '', 97 | properties: { 98 | fontSize: '9px', 99 | borderRadius: '50%', 100 | textAlign: 'center', 101 | color: 'white', 102 | border: '1px solid #121E21', 103 | backgroundColor: getColor(d) 104 | } 105 | }); 106 | 107 | bubble.on('mouseover', function (e) { 108 | var newX, newY; 109 | if (d.depth > 1) { 110 | tooltipSurface.setProperties({display: 'inline'}); 111 | 112 | var text = d.make + "
" + d.model.slice(0,20) + "
MPG: " + d.comb + "
" + d.trany.slice(0,21); 113 | tooltipSurface.setContent(text); 114 | 115 | newX = d.x + margins.l - (tooltip.w / 2) + d.r; 116 | newY = d.y + margins.t - tooltip.h - 20; 117 | 118 | tooltipModifier.setTransform( 119 | Transform.translate(newX, newY, 10), 120 | { duration : 50, curve: Easing.outCirc } 121 | ); 122 | 123 | this.setProperties({ 124 | backgroundColor: '#C0B5B2' 125 | }); 126 | } 127 | }); 128 | 129 | bubble.on('mouseout', function() { 130 | tooltipSurface.setProperties({display: 'none'}); 131 | this.setProperties({ 132 | backgroundColor: getColor(d) 133 | }); 134 | }); 135 | 136 | return bubble; 137 | }; 138 | 139 | var getBubbleModifier = function (d, i) { 140 | var modifier = new StateModifier({ 141 | align: [0, 0], 142 | origin: [0.5, 0.5] 143 | }); 144 | 145 | modifier.setTransform( 146 | Transform.translate(d.x + 2000, d.y + margins.t, d.depth + 2), 147 | { duration : 0 , curve: Easing.inOutElastic } 148 | ); 149 | modifier.setTransform( 150 | Transform.translate(d.x + margins.l, d.y + margins.t, d.depth + 2), 151 | { duration : i * 30 + 30, curve: Easing.inOutElastic } 152 | ); 153 | 154 | return modifier; 155 | }; 156 | 157 | var recurseBubbles = function (node) { 158 | view.add(getBubbleModifier(node, counter++)).add(getBubble(node)); 159 | if (node.children) { 160 | for (var i = 0; i < node.children.length; i++) { 161 | recurseBubbles(node.children[i]); 162 | } 163 | } 164 | }; 165 | 166 | view.add(background); 167 | view.add(tooltipModifier).add(tooltipSurface); 168 | 169 | recurseBubbles(root); 170 | 171 | return view; 172 | }; 173 | 174 | module.exports = createBubbleHierarchyView; 175 | }); -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/js/treeMapView.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Easing = require('famous/transitions/Easing'); 9 | var Modifier = require('famous/core/Modifier'); 10 | 11 | var treeMapView = function (viewSize, groups, data, title) { 12 | var tooltip = { w: 150, h: 60 }; 13 | var margins = {t: 50, r: 100, b: 20, l: 200}; 14 | var view = new View({size: viewSize}); 15 | var counter = 0; 16 | var format = d3.format(",") 17 | 18 | var dim1 = viewSize[0] - margins.l - margins.r; 19 | var dim2 = viewSize[1] - margins.t - margins.b; 20 | var diameter = dim1 < dim2 ? dim1: dim2; 21 | var color = d3.scale.ordinal().range(['#4C5355','#E2BF7A','#36211C','#4C838A','#723E0F','#586C97','#AA8439']); 22 | 23 | var bubble = d3.layout.pack() 24 | .sort(function (d) { return d.comb }) 25 | .size([diameter, diameter]) 26 | .padding(2) 27 | 28 | for (var i = 0; i < data.length; i++) { 29 | data[i].Amount = +data[i].Amount; 30 | data[i].value = data[i].Amount; 31 | } 32 | 33 | var formatJSON = function (csvData, groups) { 34 | 35 | var genGroups = function(data) { 36 | return _.map(data, function(element, index) { 37 | return { name : index, children : element }; 38 | }); 39 | }; 40 | 41 | var nest = function(node, curIndex) { 42 | if (curIndex === 0) { 43 | node.children = genGroups(_.groupBy(csvData, groups[0])); 44 | _.each(node.children, function (child) { 45 | nest(child, curIndex + 1); 46 | }); 47 | } 48 | else { 49 | if (curIndex < groups.length) { 50 | node.children = genGroups( 51 | _.groupBy(node.children, groups[curIndex]) 52 | ); 53 | _.each(node.children, function (child) { 54 | nest(child, curIndex + 1); 55 | }); 56 | } 57 | } 58 | return node; 59 | }; 60 | return nest({}, 0); 61 | }; 62 | 63 | var root = formatJSON(data, groups); 64 | bubble.nodes(root); 65 | 66 | var background = new Surface({ 67 | size: viewSize, 68 | properties: { 69 | backgroundColor: '#fff', 70 | border: '1px solid #6E7577', 71 | borderRadius: '8px' 72 | } 73 | }); 74 | 75 | var titleSurface = new Surface({ 76 | size: [viewSize[1],margins.t], 77 | classes: ['title'], 78 | content: 'Company Region: ' + title, 79 | properties: { 80 | zIndex: 5, 81 | fontSize: '20px', 82 | textAlign: 'left', 83 | color: 'black', 84 | } 85 | }); 86 | 87 | var titleModifier = new StateModifier({ 88 | origin: [0.10, 0] 89 | }); 90 | 91 | var tooltipSurface = new Surface({ 92 | size: [tooltip.w, tooltip.h], 93 | classes: ['tooltip'] 94 | }); 95 | 96 | var tooltipModifier = new StateModifier({ 97 | origin: [0, 0] 98 | }); 99 | 100 | var getColor = function (d) { 101 | if (d.depth === 0) { 102 | return '#C0B9B2'; 103 | } else if (d.depth === 1){ 104 | return '#FFFFFF'; 105 | } else { 106 | return color(d.Funding); 107 | } 108 | } 109 | 110 | var getBubble = function (d) { 111 | var bubble = new Surface({ 112 | size: [d.r * 2, d.r * 2], 113 | content: d.Market, 114 | properties: { 115 | fontSize: '9px', 116 | borderRadius: '50%', 117 | textAlign: 'center', 118 | color: 'white', 119 | border: '1px solid #121E21', 120 | backgroundColor: getColor(d) 121 | } 122 | }); 123 | 124 | bubble.on('mouseover', function (e) { 125 | var newX, newY; 126 | if (d.depth > 1) { 127 | tooltipSurface.setProperties({display: 'inline'}); 128 | 129 | var text = d.Region + "
" + d.Market + "
" + d.Funding + "
$" + format(d.Amount); 130 | tooltipSurface.setContent(text); 131 | 132 | newX = d.x + margins.l - (tooltip.w / 2) + d.r; 133 | newY = d.y + margins.t - tooltip.h - 20; 134 | 135 | tooltipModifier.setTransform( 136 | Transform.translate(newX, newY, 10), 137 | { duration : 50, curve: Easing.outCirc } 138 | ); 139 | 140 | this.setProperties({ 141 | backgroundColor: '#C0B5B2' 142 | }); 143 | } 144 | }); 145 | 146 | bubble.on('mouseout', function() { 147 | tooltipSurface.setProperties({display: 'none'}); 148 | this.setProperties({ 149 | backgroundColor: getColor(d) 150 | }); 151 | }); 152 | 153 | return bubble; 154 | }; 155 | 156 | var getBubbleModifier = function (d, i) { 157 | var modifier = new StateModifier({ 158 | align: [0, 0], 159 | origin: [0.5, 0.5] 160 | }); 161 | 162 | modifier.setTransform( 163 | Transform.translate(d.x + 2000, d.y + margins.t, d.depth + 2), 164 | { duration : 0 , curve: Easing.inOutElastic } 165 | ); 166 | modifier.setTransform( 167 | Transform.translate(d.x + margins.l, d.y + margins.t, d.depth + 2), 168 | { duration : i * 30 + 30, curve: Easing.inOutElastic } 169 | ); 170 | 171 | return modifier; 172 | }; 173 | 174 | var recurseBubbles = function (node) { 175 | view.add(getBubbleModifier(node, counter++)).add(getBubble(node)); 176 | if (node.children) { 177 | for (var i = 0; i < node.children.length; i++) { 178 | recurseBubbles(node.children[i]); 179 | } 180 | } 181 | }; 182 | 183 | view.add(background); 184 | view.add(tooltipModifier).add(tooltipSurface); 185 | view.add(titleModifier).add(titleSurface); 186 | 187 | console.log(title); 188 | console.log(root); 189 | 190 | recurseBubbles(root); 191 | 192 | return view; 193 | }; 194 | 195 | module.exports = treeMapView; 196 | }); -------------------------------------------------------------------------------- /examples/crunchbase-treemap/js/treeMapView.js: -------------------------------------------------------------------------------- 1 | 2 | define(function(require, exports, module) { 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Easing = require('famous/transitions/Easing'); 9 | var Modifier = require('famous/core/Modifier'); 10 | 11 | var treeMapView = function (viewSize, groups, data, title) { 12 | var tooltip = { w: 150, h: 60 }; 13 | var margins = {t: 50, r: 20, b: 20, l: 20}; 14 | var chartSize = [viewSize[0] - margins.l - margins.r, viewSize[1] - margins.t - margins.b] 15 | var view = new View({size: viewSize}); 16 | var counter = 0; 17 | var format = d3.format(",") 18 | 19 | var dim1 = viewSize[0] - margins.l - margins.r; 20 | var dim2 = viewSize[1] - margins.t - margins.b; 21 | var diameter = dim1 < dim2 ? dim1: dim2; 22 | var color = d3.scale.ordinal().range(['#4C5355','#E2BF7A','#36211C','#4C838A','#723E0F','#586C97','#AA8439']); 23 | 24 | var treemap = d3.layout.treemap() 25 | .size(chartSize) 26 | .ratio(1/1); 27 | 28 | for (var i = 0; i < data.length; i++) { 29 | data[i].Amount = +data[i].Amount; 30 | data[i].value = data[i].Amount; 31 | } 32 | 33 | var formatJSON = function (csvData, groups) { 34 | 35 | var genGroups = function(data) { 36 | return _.map(data, function(element, index) { 37 | return { name : index, children : element }; 38 | }); 39 | }; 40 | 41 | var nest = function(node, curIndex) { 42 | if (curIndex === 0) { 43 | node.children = genGroups(_.groupBy(csvData, groups[0])); 44 | _.each(node.children, function (child) { 45 | nest(child, curIndex + 1); 46 | }); 47 | } 48 | else { 49 | if (curIndex < groups.length) { 50 | node.children = genGroups( 51 | _.groupBy(node.children, groups[curIndex]) 52 | ); 53 | _.each(node.children, function (child) { 54 | nest(child, curIndex + 1); 55 | }); 56 | } 57 | } 58 | return node; 59 | }; 60 | return nest({}, 0); 61 | }; 62 | 63 | var root = formatJSON(data, groups); 64 | treemap.nodes(root); 65 | 66 | var backgroundModifier = new StateModifier({ 67 | opacity: .7 68 | }); 69 | 70 | var background = new Surface({ 71 | size: viewSize, 72 | properties: { 73 | backgroundColor: '#fff', 74 | border: '1px solid #6E7577', 75 | borderRadius: '8px' 76 | } 77 | }); 78 | 79 | var titleSurface = new Surface({ 80 | size: [viewSize[1],margins.t], 81 | classes: ['title'], 82 | content: 'Company Region: ' + title, 83 | properties: { 84 | zIndex: 5, 85 | fontSize: '20px', 86 | textAlign: 'left', 87 | color: 'black', 88 | } 89 | }); 90 | 91 | var titleModifier = new StateModifier({ 92 | origin: [0.10, 0] 93 | }); 94 | 95 | var tooltipSurface = new Surface({ 96 | size: [tooltip.w, tooltip.h], 97 | classes: ['tooltip'] 98 | }); 99 | 100 | var tooltipModifier = new StateModifier({ 101 | origin: [0, 0] 102 | }); 103 | 104 | var getColor = function (d) { 105 | if (d.depth === 0) { 106 | return '#C0B9B2'; 107 | } else if (d.depth === 1){ 108 | return '#FFFFFF'; 109 | } else { 110 | return color(d.Funding); 111 | } 112 | } 113 | 114 | var getTile = function (d) { 115 | var tile = new Surface({ 116 | size: [d.dx, d.dy], 117 | content: d.Market, 118 | properties: { 119 | fontSize: '9px', 120 | textAlign: 'center', 121 | color: 'white', 122 | marginTop: '5px', 123 | border: '1px solid #121E21', 124 | backgroundColor: getColor(d) 125 | } 126 | }); 127 | 128 | tile.on('mouseover', function (e) { 129 | var newX, newY; 130 | if (d.depth > 1) { 131 | tooltipSurface.setProperties({display: 'inline'}); 132 | 133 | var text = d.Region + "
" + d.Market + "
" + d.Funding + "
$" + format(d.Amount); 134 | tooltipSurface.setContent(text); 135 | 136 | newX = d.x + margins.l - (tooltip.w / 2) + (d.dx / 2); 137 | newY = d.y + margins.t - tooltip.h; 138 | 139 | tooltipModifier.setTransform( 140 | Transform.translate(newX, newY, 10), 141 | { duration : 50, curve: Easing.outCirc } 142 | ); 143 | 144 | this.setProperties({ 145 | backgroundColor: '#C0B5B2' 146 | }); 147 | } 148 | }); 149 | 150 | tile.on('mouseout', function() { 151 | tooltipSurface.setProperties({display: 'none'}); 152 | this.setProperties({ 153 | backgroundColor: getColor(d) 154 | }); 155 | }); 156 | 157 | return tile; 158 | }; 159 | 160 | var getTileModifier = function (d, i) { 161 | var modifier = new StateModifier({ 162 | align: [0, 0], 163 | origin: [0, 0] 164 | }); 165 | 166 | modifier.setTransform( 167 | Transform.translate(d.x + 2000, d.y + margins.t, d.depth + 2), 168 | { duration : 0 , curve: Easing.inOutElastic } 169 | ); 170 | modifier.setTransform( 171 | Transform.translate(d.x + margins.l, d.y + margins.t, d.depth + 2), 172 | { duration : i * 20 + 30, curve: Easing.inOutElastic } 173 | ); 174 | 175 | return modifier; 176 | }; 177 | 178 | var recurseTiles = function (node) { 179 | view.add(getTileModifier(node, counter++)).add(getTile(node)); 180 | if (node.children) { 181 | for (var i = 0; i < node.children.length; i++) { 182 | recurseTiles(node.children[i]); 183 | } 184 | } 185 | }; 186 | 187 | view.add(backgroundModifier).add(background); 188 | view.add(tooltipModifier).add(tooltipSurface); 189 | view.add(titleModifier).add(titleSurface); 190 | // console.log(title) 191 | // console.log(root); 192 | 193 | recurseTiles(root); 194 | 195 | return view; 196 | }; 197 | 198 | module.exports = treeMapView; 199 | }); -------------------------------------------------------------------------------- /examples/bubble-clusters/js/bubbleClusters.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Timer = require('famous/utilities/Timer') 9 | 10 | var color = d3.scale.ordinal().range(['#586C97','#AA8439','#4C5355','#E2BF7A','#36211C','#4C838A','#723E0F']); 11 | var tooltip = { w: 150, h: 60 }, padding = 1.5, prerender, maxRadius, data; 12 | 13 | var tooltipSurface = new Surface({ 14 | size: [tooltip.w, tooltip.h], 15 | classes: ['tooltip'] 16 | }); 17 | 18 | var tooltipModifier = new StateModifier({ 19 | origin: [0, 0] 20 | }); 21 | 22 | var getBubble = function (d) { 23 | var bubble = new Surface({ 24 | origin: [0.5, 0.5], 25 | size : [d.radius * 2, d.radius * 2], 26 | classes: ['bubble'], 27 | properties : { 28 | zIndex: -50, 29 | background : color(d.make), 30 | borderRadius : '50%', 31 | border: '2px solid #fff' 32 | } 33 | }); 34 | 35 | bubble.on('mouseover', function (e) { 36 | var newX, newY, text; 37 | 38 | text = d.make + "
" + d.model.slice(0,20) + "
MPG: " + d.comb + "
" + d.trany.slice(0,21); 39 | tooltipSurface.setContent(text); 40 | tooltipSurface.setProperties({display: 'inline'}); 41 | newX = d.x - (tooltip.w / 2); 42 | newY = d.y - tooltip.h - 20; 43 | 44 | tooltipModifier.setTransform( 45 | Transform.translate(newX, newY, 40), 46 | { duration : 50, curve: 'linear' } 47 | ); 48 | 49 | this.setProperties({ 50 | backgroundColor: '#C0B5B2' 51 | }); 52 | }); 53 | 54 | bubble.on('mouseout', function() { 55 | tooltipSurface.setProperties({display: 'none'}); 56 | this.setProperties({ 57 | backgroundColor: color(d.make) 58 | }); 59 | }); 60 | 61 | return bubble; 62 | }; 63 | 64 | var getBubbleModifier = function (d, i) { 65 | var modifier = new StateModifier({ 66 | align: [0, 0], 67 | origin: [0.5, 0.5], 68 | opacity: .75 69 | }); 70 | 71 | return modifier; 72 | }; 73 | 74 | var createView = function (size, input) { 75 | var view = new View({size: size}); 76 | view.add(tooltipModifier).add(tooltipSurface); 77 | 78 | var svg = '' 79 | var svgContainer = new Surface({ 80 | size: [undefined, undefined], 81 | content: svg, 82 | properties: { 83 | zIndex: -20 84 | } 85 | }); 86 | view.add(svgContainer); 87 | 88 | data = input; 89 | 90 | for (var j = 0; j < data.length; j++) { 91 | data[j].radius = +data[j].comb * .5; 92 | data[j].x = Math.random() * size[0] / 2; 93 | data[j].y = Math.random() * size[1] / 2; 94 | data[j].surface = getBubble(data[j]); 95 | data[j].modifier = getBubbleModifier(data[j], j); 96 | view.add(data[j].modifier).add(data[j].surface); 97 | } 98 | maxRadius = d3.max(_.pluck(data, 'radius')); 99 | 100 | return view; 101 | } 102 | 103 | var getCenters = function (vname, size) { 104 | var nodes, map; 105 | nodes = _.uniq(_.pluck(data, vname)).map(function (d) { 106 | return {name: d, value: 1}; 107 | }); 108 | 109 | map = d3.layout.treemap().size(size).ratio(1/1); 110 | map.nodes({children: nodes}); 111 | 112 | return nodes; 113 | }; 114 | 115 | var updateView = function (size, varname) { 116 | var centers = getCenters(varname, size); 117 | if (prerender) { 118 | Timer.clear(prerender); 119 | } 120 | prerender = Timer.every(tickFactory(centers, varname)); 121 | labels(centers); 122 | } 123 | 124 | var tickFactory = function (centers, varname) { 125 | var start = Date.now(), duration = 3000; 126 | 127 | var foci = {}; 128 | for (var i = 0; i < centers.length; i++) { 129 | foci[centers[i].name] = centers[i]; 130 | } 131 | return function () { 132 | var target, actual, elapsed, quad, beta; 133 | 134 | elapsed = Date.now() - start; 135 | if (elapsed < duration) { 136 | beta = (1 - (elapsed / duration)) * .09; 137 | quad = collide(.11); 138 | for (var d = 0, len = data.length; d < len; d++) { 139 | actual = data[d]; 140 | target = foci[actual[varname]]; 141 | actual.y += ((target.y + target.dy / 2) - actual.y) * beta; 142 | actual.x += ((target.x + target.dx / 2) - actual.x) * beta; 143 | quad(data[d]); 144 | actual.modifier.setTransform( 145 | Transform.translate(actual.x, actual.y, 1) 146 | ); 147 | } 148 | } 149 | } 150 | }; 151 | 152 | var labels = function (foci) { 153 | d3.select("#bg-svg").selectAll(".label").remove(); 154 | 155 | d3.select("#bg-svg").selectAll(".label").data(foci) 156 | .enter().append("text") 157 | .attr("class", "label") 158 | .text(function (d) { return d.name }) 159 | .attr("transform", function (d) { 160 | return "translate(" + (d.x + (d.dx / 2)) + ", " + (d.y + 20) + ")"; 161 | }); 162 | } 163 | 164 | var collide = function (alpha) { 165 | var quadtree = d3.geom.quadtree(data); 166 | return function (d) { 167 | var r = d.radius + maxRadius + padding, 168 | nx1 = d.x - r, 169 | nx2 = d.x + r, 170 | ny1 = d.y - r, 171 | ny2 = d.y + r; 172 | quadtree.visit(function(quad, x1, y1, x2, y2) { 173 | if (quad.point && (quad.point !== d)) { 174 | var x = d.x - quad.point.x, 175 | y = d.y - quad.point.y, 176 | l = Math.sqrt(x * x + y * y), 177 | r = d.radius + quad.point.radius + padding; 178 | if (l < r) { 179 | l = (l - r) / l * alpha; 180 | d.x -= x *= l; 181 | d.y -= y *= l; 182 | quad.point.x += x; 183 | quad.point.y += y; 184 | } 185 | } 186 | return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1; 187 | }); 188 | }; 189 | }; 190 | module.exports = { 191 | createView: createView, 192 | updateView: updateView 193 | } 194 | }); -------------------------------------------------------------------------------- /examples/bubble-quadtrees/js/bubbleClusters.js: -------------------------------------------------------------------------------- 1 | define(function(require, exports, module) { 2 | 'use strict'; 3 | var d3 = require('d3/d3'); 4 | var View = require('famous/core/View'); 5 | var Surface = require('famous/core/Surface'); 6 | var Transform = require('famous/core/Transform'); 7 | var StateModifier = require('famous/modifiers/StateModifier'); 8 | var Timer = require('famous/utilities/Timer') 9 | 10 | window.d3 = d3; 11 | 12 | var color = d3.scale.ordinal().range(['#586C97','#AA8439','#4C5355','#E2BF7A','#36211C','#4C838A','#723E0F']); 13 | var tooltip = { w: 150, h: 60 }, padding = 1, prerender, maxRadius, data; 14 | 15 | var tooltipSurface = new Surface({ 16 | size: [tooltip.w, tooltip.h], 17 | classes: ['tooltip'] 18 | }); 19 | 20 | var tooltipModifier = new StateModifier({ 21 | origin: [0, 0] 22 | }); 23 | 24 | var getBubble = function (d) { 25 | var bubble = new Surface({ 26 | origin: [0.5, 0.5], 27 | size : [d.radius * 2, d.radius * 2], 28 | classes: ['bubble'], 29 | properties : { 30 | zIndex: -50, 31 | background : color(d.make), 32 | borderRadius : '50%', 33 | border: '2px solid #fff' 34 | } 35 | }); 36 | 37 | bubble.on('mouseover', function (e) { 38 | var newX, newY, text; 39 | 40 | text = d.make + "
" + d.model.slice(0,20) + "
MPG: " + d.comb + "
" + d.trany.slice(0,21); 41 | tooltipSurface.setContent(text); 42 | tooltipSurface.setProperties({display: 'inline'}); 43 | newX = d.x - (tooltip.w / 2); 44 | newY = d.y - tooltip.h - 20; 45 | 46 | tooltipModifier.setTransform( 47 | Transform.translate(newX, newY, 40), 48 | { duration : 50, curve: 'linear' } 49 | ); 50 | 51 | this.setProperties({ 52 | backgroundColor: '#C0B5B2' 53 | }); 54 | }); 55 | 56 | bubble.on('mouseout', function() { 57 | tooltipSurface.setProperties({display: 'none'}); 58 | this.setProperties({ 59 | backgroundColor: color(d.make) 60 | }); 61 | }); 62 | 63 | return bubble; 64 | }; 65 | 66 | var getBubbleModifier = function (d, i) { 67 | var modifier = new StateModifier({ 68 | align: [0, 0], 69 | origin: [0.5, 0.5], 70 | opacity: .75 71 | }); 72 | 73 | return modifier; 74 | }; 75 | 76 | var createView = function (size, input) { 77 | var view = new View({size: size}); 78 | view.add(tooltipModifier).add(tooltipSurface); 79 | 80 | var svg = '' 81 | var svgContainer = new Surface({ 82 | size: [undefined, undefined], 83 | content: svg, 84 | properties: { 85 | zIndex: -20 86 | } 87 | }); 88 | view.add(svgContainer); 89 | 90 | data = input; 91 | 92 | for (var j = 0; j < data.length; j++) { 93 | data[j].radius = +data[j].comb * .5; 94 | data[j].x = Math.random() * size[0]; 95 | data[j].y = Math.random() * size[1]; 96 | data[j].surface = getBubble(data[j]); 97 | data[j].modifier = getBubbleModifier(data[j], j); 98 | view.add(data[j].modifier).add(data[j].surface); 99 | } 100 | maxRadius = d3.max(_.pluck(data, 'radius')); 101 | 102 | return view; 103 | } 104 | 105 | var getCenters = function (vname, size) { 106 | var nodes, map; 107 | nodes = _.uniq(_.pluck(data, vname)).map(function (d) { 108 | return {name: d, value: 1}; 109 | }); 110 | 111 | map = d3.layout.treemap().size(size).ratio(1/1); 112 | map.nodes({children: nodes}); 113 | 114 | return nodes; 115 | }; 116 | var force = d3.layout.force(); 117 | 118 | var updateView = function (size, varname) { 119 | var centers = getCenters(varname, size); 120 | force.on('tick', tickFactory(centers, varname, .55)); 121 | force.start(); 122 | labels(centers); 123 | } 124 | 125 | var tickFactory = function (centers, varname, k) { 126 | var duration = 8000, foci = {}; 127 | var start = Date.now(); 128 | for (var i = 0; i < centers.length; i++) { 129 | foci[centers[i].name] = centers[i]; 130 | } 131 | return function (e) { 132 | var target, actual, telapsed, quad; 133 | for (var d = 0, len = data.length; d < len; d++) { 134 | actual = data[d]; 135 | target = foci[actual[varname]]; 136 | actual.y += ((target.y + target.dy / 2) - actual.y) * k * e.alpha; 137 | actual.x += ((target.x + target.dx / 2) - actual.x) * k * e.alpha; 138 | } 139 | quad = collide(.1); 140 | for (var i = 0, len = data.length; i < len; i++) { 141 | quad(data[i]); 142 | // if (i === 0) { 143 | // console.log(data[i].x, data[i].y); 144 | // } 145 | data[i].modifier.setTransform( 146 | Transform.translate(data[i].x, data[i].y, 1) 147 | ); 148 | } 149 | } 150 | } 151 | 152 | var labels = function (foci) { 153 | d3.select("#bg-svg").selectAll(".label").remove(); 154 | 155 | d3.select("#bg-svg").selectAll(".label").data(foci) 156 | .enter().append("text") 157 | .attr("class", "label") 158 | .text(function (d) { return d.name }) 159 | .attr("transform", function (d) { 160 | return "translate(" + (d.x + (d.dx / 2)) + ", " + (d.y + 20) + ")"; 161 | }); 162 | } 163 | 164 | var collide = function (alpha) { 165 | var quadtree = d3.geom.quadtree(data); 166 | return function (d) { 167 | var r = d.radius + maxRadius + padding, 168 | nx1 = d.x - r, 169 | nx2 = d.x + r, 170 | ny1 = d.y - r, 171 | ny2 = d.y + r; 172 | quadtree.visit(function(quad, x1, y1, x2, y2) { 173 | if (quad.point && (quad.point !== d)) { 174 | var x = d.x - quad.point.x, 175 | y = d.y - quad.point.y, 176 | l = Math.sqrt(x * x + y * y), 177 | r = d.radius + quad.point.radius + padding; 178 | if (l < r) { 179 | l = (l - r) / l * alpha; 180 | d.x -= x *= l; 181 | d.y -= y *= l; 182 | quad.point.x += x; 183 | quad.point.y += y; 184 | } 185 | } 186 | return x1 > nx2 || x2 < nx1 || y1 > ny2 || y2 < ny1; 187 | }); 188 | }; 189 | } 190 | module.exports = { 191 | createView: createView, 192 | updateView: updateView 193 | } 194 | }); -------------------------------------------------------------------------------- /examples/bubble-chart/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/bubble-physics/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/bubble-clusters/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/bubble-hierarchy/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/bubble-quadtrees/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/crunchbase-treemap/data/fuel.csv: -------------------------------------------------------------------------------- 1 | make,model,year,trans,vclass,cylinders,drive,comb,city,hwy,trany,displ 2 | "Porsche","Boxster S",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",23,20,28,"Manual 6-spd","3.4" 3 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 4 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",23,20,29,"Automatic 6-spd","2.4" 5 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","2.0" 6 | "Chevrolet","Cruze Eco",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,28,42,"Manual 6-spd","1.4" 7 | "Chevrolet","Cruze",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,26,38,"Manual 6-spd","1.4" 8 | "Ford","Focus SFE FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",33,28,40,"Auto(AM6)","2.0" 9 | "Porsche","Panamera",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",22,18,28,"Auto(AM-S7)","3.6" 10 | "Audi","A5 quattro",2014,"Manual","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,32,"Manual 6-spd","2.0" 11 | "Ford","Edge FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",22,19,27,"Automatic (S6)","3.5" 12 | "Nissan","Maxima",2014,"Automatic","Midsize Cars","6 Cylinders","Front-Wheel Drive",22,19,26,"Auto(AV-S6)","3.5" 13 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.0" 14 | "Ford","Focus FWD FFV",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,37,"Auto(AM6)","2.0" 15 | "Audi","SQ5",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic (S8)","3.0" 16 | "Ford","Taurus AWD FFV",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S6)","3.5" 17 | "BMW","740Li xDrive",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",22,19,28,"Automatic (S8)","3.0" 18 | "Audi","A8 L",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,26,"Automatic (S8)","4.0" 19 | "Ford","Fiesta FWD",2014,"Manual","Subcompact Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Manual 5-spd","1.6" 20 | "Audi","A5 Cabriolet",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",27,24,32,"Auto(AV-S8)","2.0" 21 | "BMW","528i",2014,"Automatic","Midsize Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 22 | "Audi","A8 L",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,28,"Automatic (S8)","3.0" 23 | "Chevrolet","Traverse FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",19,17,24,"Automatic 6-spd","3.6" 24 | "Porsche","911 Carrera S Cabriolet",2014,"Automatic","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Auto(AM-S7)","3.8" 25 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",19,16,24,"Manual 6-spd","6.2" 26 | "Chevrolet","Captiva FWD",2014,"Automatic","Small Sport Utility","4 Cylinders","Front-Wheel Drive",23,20,28,"Automatic 6-spd","2.4" 27 | "BMW","335i",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 28 | "Porsche","Panamera GTS",2014,"Automatic","Large Cars","8 Cylinders","All-Wheel Drive",19,16,24,"Auto(AM-S7)","4.8" 29 | "BMW","X1 sDrive28i",2014,"Automatic","Large Cars","4 Cylinders","Rear-Wheel Drive",27,23,34,"Automatic (S8)","2.0" 30 | "Audi","TT Roadster quattro",2014,"Automatic","Two Seaters","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 31 | "BMW","328i xDrive Gran Turismo",2014,"Automatic","Large Cars","4 Cylinders","All-Wheel Drive",26,22,33,"Automatic (S8)","2.0" 32 | "Porsche","Boxster",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",24,20,30,"Manual 6-spd","2.7" 33 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",22,18,27,"Automatic (S8)","3.0" 34 | "BMW","328d",2014,"Automatic","Compact Cars","4 Cylinders","Rear-Wheel Drive",37,32,45,"Automatic (S8)","2.0" 35 | "Porsche","Cayenne Diesel",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 36 | "Chevrolet","Sonic 5 RS",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",30,27,34,"Manual 6-spd","1.4" 37 | "Ford","Edge AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,18,25,"Automatic (S6)","3.5" 38 | "Ford","Fusion FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",26,22,33,"Automatic (S6)","2.0" 39 | "Ford","Explorer FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic (S6)","3.5" 40 | "BMW","535i",2014,"Automatic","Midsize Cars","6 Cylinders","Rear-Wheel Drive",24,20,30,"Automatic (S8)","3.0" 41 | "Ford","Fiesta FWD",2014,"Automatic","Subcompact Cars","4 Cylinders","Front-Wheel Drive",32,29,39,"Auto(AM6)","1.6" 42 | "BMW","X5 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,22,"Automatic (S8)","4.4" 43 | "Nissan","370Z",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,18,26,"Manual 6-spd","3.7" 44 | "Chevrolet","Sonic 5",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 45 | "BMW","M6 Coupe",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 46 | "BMW","640i xDrive Gran Coupe",2014,"Automatic","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 47 | "Nissan","Murano AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",20,18,23,"Automatic (variable gear ratios)","3.5" 48 | "BMW","Z4 sDrive35is",2014,"Automatic","Two Seaters","6 Cylinders","Rear-Wheel Drive",20,17,24,"Auto(AM-S7)","3.0" 49 | "BMW","535i xDrive Gran Turismo",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,26,"Automatic (S8)","3.0" 50 | "Audi","Q5 Hybrid",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",26,24,30,"Automatic (S8)","2.0" 51 | "Porsche","Cayenne S",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",18,16,22,"Automatic 8-spd","4.8" 52 | "Audi","TT Coupe quattro",2014,"Automatic","Subcompact Cars","4 Cylinders","All-Wheel Drive",26,22,31,"Auto(AM-S6)","2.0" 53 | "Nissan","Versa",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,27,36,"Manual 5-spd","1.6" 54 | "BMW","X3 xDrive35i",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",21,19,26,"Automatic (S8)","3.0" 55 | "Porsche","Panamera S",2014,"Automatic","Large Cars","6 Cylinders","Rear-Wheel Drive",21,17,27,"Auto(AM-S7)","3.0" 56 | "Nissan","Xterra 4WD",2014,"Automatic","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,15,20,"Automatic 5-spd","4.0" 57 | "Ford","Expedition 2WD FFV",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",16,14,20,"Automatic 6-spd","5.4" 58 | "Chevrolet","Impala",2014,"Automatic","Large Cars","6 Cylinders","Front-Wheel Drive",21,18,28,"Automatic (S6)","3.6" 59 | "BMW","X6 M",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",15,13,17,"Automatic (S6)","4.4" 60 | "Chevrolet","Sonic 5 RS",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",28,25,33,"Automatic (S6)","1.4" 61 | "Ford","Fusion Hybrid FWD",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",47,47,47,"Automatic (variable gear ratios)","2.0" 62 | "Ford","Explorer AWD FFV",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,17,23,"Automatic (S6)","3.5" 63 | "Audi","A8",2014,"Automatic","Midsize Cars","8 Cylinders","All-Wheel Drive",21,17,28,"Automatic (S8)","4.0" 64 | "Porsche","Panamera 4",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",21,18,27,"Auto(AM-S7)","3.6" 65 | "Ford","Focus FWD",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,36,"Manual 5-spd","2.0" 66 | "BMW","M6 Gran Coupe",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 67 | "BMW","320i",2014,"Manual","Compact Cars","4 Cylinders","Rear-Wheel Drive",27,23,36,"Manual 6-spd","2.0" 68 | "Audi","A6 quattro",2014,"Automatic","Midsize Cars","6 Cylinders","All-Wheel Drive",29,24,38,"Automatic (S8)","3.0" 69 | "Chevrolet","Sonic 5",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",33,29,40,"Manual 6-spd","1.4" 70 | "Ford","Escape AWD",2014,"Automatic","Small Sport Utility","4 Cylinders","All-Wheel Drive",24,21,28,"Automatic (S6)","2.0" 71 | "Ford","Focus FWD",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Auto(AM6)","2.0" 72 | "Porsche","911 Targa 4S",2014,"Manual","Minicompact Cars","6 Cylinders","4-Wheel Drive",21,18,26,"Manual(M7)","3.8" 73 | "Chevrolet","Equinox FWD",2014,"Automatic","Small Sport Utility","6 Cylinders","Front-Wheel Drive",20,17,24,"Automatic 6-spd","3.6" 74 | "BMW","335i xDrive",2014,"Manual","Compact Cars","6 Cylinders","All-Wheel Drive",23,20,28,"Manual 6-spd","3.0" 75 | "Nissan","Armada 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",14,12,18,"Automatic 5-spd","5.6" 76 | "Nissan","Armada 2WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","Rear-Wheel Drive",15,13,19,"Automatic 5-spd","5.6" 77 | "Ford","Flex FWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","Front-Wheel Drive",20,18,25,"Automatic (S6)","3.5" 78 | "Nissan","Xterra 4WD",2014,"Manual","Small Sport Utility","6 Cylinders","4-Wheel Drive",17,16,20,"Manual 6-spd","4.0" 79 | "BMW","M6 Convertible",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",17,15,22,"Manual 6-spd","4.4" 80 | "Chevrolet","Sonic",2014,"Automatic","Compact Cars","4 Cylinders","Front-Wheel Drive",31,27,37,"Automatic (S6)","1.4" 81 | "BMW","435i Coupe",2014,"Manual","Compact Cars","6 Cylinders","Rear-Wheel Drive",23,20,30,"Manual 6-spd","3.0" 82 | "Nissan","GT-R",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",19,16,23,"Auto(AM6)","3.8" 83 | "Chevrolet","Corvette",2014,"Automatic","Two Seaters","8 Cylinders","Rear-Wheel Drive",20,16,28,"Automatic (S6)","6.2" 84 | "Chevrolet","Camaro",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",14,12,18,"Automatic (S6)","6.2" 85 | "Chevrolet","Equinox AWD",2014,"Automatic","Small Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 86 | "Ford","Fusion FWD",2014,"Manual","Midsize Cars","4 Cylinders","Front-Wheel Drive",29,25,37,"Manual 6-spd","1.6" 87 | "BMW","650i Coupe",2014,"Automatic","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",20,17,25,"Automatic (S8)","4.4" 88 | "Ford","Taurus AWD",2014,"Automatic","Large Cars","6 Cylinders","All-Wheel Drive",20,17,25,"Automatic (S6)","3.5" 89 | "Chevrolet","Sonic",2014,"Manual","Compact Cars","4 Cylinders","Front-Wheel Drive",30,26,35,"Manual 5-spd","1.8" 90 | "Chevrolet","Traverse AWD",2014,"Automatic","Standard Sport Utility","6 Cylinders","All-Wheel Drive",19,16,23,"Automatic 6-spd","3.6" 91 | "BMW","Z4 sDrive28i",2014,"Manual","Two Seaters","4 Cylinders","Rear-Wheel Drive",26,22,34,"Manual 6-spd","2.0" 92 | "BMW","M6 Gran Coupe",2014,"Automatic","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,20,"Auto(AM-S7)","4.4" 93 | "BMW","Z4 sDrive35i",2014,"Manual","Two Seaters","6 Cylinders","Rear-Wheel Drive",21,19,26,"Manual 6-spd","3.0" 94 | "BMW","X6 xDrive50i",2014,"Automatic","Standard Sport Utility","8 Cylinders","All-Wheel Drive",17,14,21,"Automatic (S8)","4.4" 95 | "Ford","Mustang",2014,"Manual","Subcompact Cars","8 Cylinders","Rear-Wheel Drive",19,15,26,"Manual 6-spd","5.0" 96 | "BMW","550i Gran Turismo",2014,"Automatic","Large Cars","8 Cylinders","Rear-Wheel Drive",19,16,25,"Automatic (S8)","4.4" 97 | "BMW","640i xDrive Convertible",2014,"Automatic","Subcompact Cars","6 Cylinders","All-Wheel Drive",23,20,29,"Automatic (S8)","3.0" 98 | "Chevrolet","Tahoe K10 4WD",2014,"Automatic","Standard Sport Utility","8 Cylinders","4-Wheel Drive",17,15,21,"Automatic 6-spd","5.3" 99 | "Chevrolet","Camaro",2014,"Manual","Compact Cars","8 Cylinders","Rear-Wheel Drive",16,14,19,"Manual 6-spd","6.2" 100 | "Porsche","911 Carrera S",2014,"Manual","Minicompact Cars","6 Cylinders","Rear-Wheel Drive",22,19,27,"Manual 7-spd","3.8" 101 | "Nissan","Altima",2014,"Automatic","Midsize Cars","4 Cylinders","Front-Wheel Drive",31,27,38,"Automatic (variable gear ratios)","2.5" 102 | -------------------------------------------------------------------------------- /examples/crunchbase-bubbles/data/crunchbase.csv: -------------------------------------------------------------------------------- 1 | Market,Region,Funding,Amount,Count,AVG 2 | "Ad Targeting","Boston","Seed",2200000,1,2200000 3 | "Adventure Travel","Boston","Convertible Note",15000,1,15000 4 | "Agriculture","Boston","Seed",4099998,2,2049999 5 | "Application Performance Monitoring","Boston","Venture",20000000,1,20000000 6 | "Art","Boston","Seed",10000,1,10000 7 | "B2B","Boston","Venture",2266000,1,2266000 8 | "Cloud Security","Boston","Venture",5671497,2,2835748 9 | "Databases","Boston","Venture",14200000,1,14200000 10 | "Design","Boston","Venture",668542,1,668542 11 | "Dod/Military","Boston","Venture",5299999,1,5299999 12 | "Employer Benefits Programs","Boston","Venture",1215000,1,1215000 13 | "Energy Efficiency","Boston","Angel",500000,1,500000 14 | "Enterprises","Boston","Seed",3000000,1,3000000 15 | "Enterprises","Boston","Venture",1114244,1,1114244 16 | "Gps","Boston","Angel",35000,1,35000 17 | "Human Resources","Boston","Seed",500000,1,500000 18 | "Internet Of Things","Boston","Convertible Note",118000,1,118000 19 | "Messaging","Boston","Seed",500000,1,500000 20 | "Music","Boston","Unknown",2208458,1,2208458 21 | "Nonprofits","Boston","Unknown",300000,1,300000 22 | "Nonprofits","Boston","Venture",260000,1,260000 23 | "Politics","Boston","Seed",150000,2,75000 24 | "Saas","Boston","Venture",9499986,1,9499986 25 | "Accounting","London","Seed",1000000,1,1000000 26 | "Artificial Intelligence","London","Seed",150000,1,150000 27 | "Auctions","London","Venture",8362900,1,8362900 28 | "B2B","London","Unknown",757625,1,757625 29 | "Business Services","London","Venture",1345374,1,1345374 30 | "Charities","London","Seed",2650000,1,2650000 31 | "Computer Vision","London","Seed",150000,1,150000 32 | "Concerts","London","Seed",28437,1,28437 33 | "Consumers","London","Equity Crowdfunding",2698918,1,2698918 34 | "Consumers","London","Seed",98534,1,98534 35 | "Coupons","London","Unknown",2424402,1,2424402 36 | "Crm","London","Venture",6000000,1,6000000 37 | "Databases","London","Seed",34833,1,34833 38 | "Design","London","Angel",249622,1,249622 39 | "Developer Apis","London","Venture",18000000,1,18000000 40 | "Digital Media","London","Venture",681000,1,681000 41 | "Email","London","Seed",762927,1,762927 42 | "Embedded Hardware And Software","London","Venture",7000000,1,7000000 43 | "Entertainment","London","Venture",7500000,1,7500000 44 | "Entrepreneur","London","Angel",1200000,1,1200000 45 | "Events","London","Seed",252760,1,252760 46 | "Finance Technology","London","Angel",1847507,1,1847507 47 | "Gamification","London","Venture",8009622,1,8009622 48 | "Guides","London","Unknown",15000,1,15000 49 | "Iaas","London","Seed",500000,1,500000 50 | "In-Flight Entertainment","London","Venture",40000000,1,40000000 51 | "Internet Marketing","London","Seed",1000000,1,1000000 52 | "Internet Of Things","London","Angel",100006,1,100006 53 | "Internet Of Things","London","Seed",151525,1,151525 54 | "Local Businesses","London","Equity Crowdfunding",1172519,1,1172519 55 | "Music","London","Seed",335000,1,335000 56 | "P2P Money Transfer","London","Venture",40000000,1,40000000 57 | "Reviews And Recommendations","London","Seed",2012004,1,2012004 58 | "Search","London","Unknown",332970,1,332970 59 | "Soccer","London","Unknown",18000000,1,18000000 60 | "Social Crm","London","Venture",1515251,1,1515251 61 | "Social Media","London","Seed",1000000,1,1000000 62 | "Ad Targeting","Los Angeles","Venture",8000000,1,8000000 63 | "Audio","Los Angeles","Unknown",25000,1,25000 64 | "Big Data Analytics","Los Angeles","Unknown",50000,1,50000 65 | "Charity","Los Angeles","Venture",9100000,1,9100000 66 | "Clean Energy","Los Angeles","Seed",60000,1,60000 67 | "Cloud Management","Los Angeles","Venture",10000000,1,10000000 68 | "Communications Infrastructure","Los Angeles","Venture",1575035,1,1575035 69 | "Consumer Electronics","Los Angeles","Angel",500000,1,500000 70 | "Crowdfunding","Los Angeles","Angel",1000000,1,1000000 71 | "Entertainment","Los Angeles","Convertible Note",420000,1,420000 72 | "File Sharing","Los Angeles","Venture",36000000,1,36000000 73 | "Messaging","Los Angeles","Venture",21000000,1,21000000 74 | "Pets","Los Angeles","Venture",2600000,1,2600000 75 | "Saas","Los Angeles","Venture",17000000,1,17000000 76 | "Search","Los Angeles","Venture",6349985,1,6349985 77 | "Social Media","Los Angeles","Seed",306000,2,153000 78 | "Sports","Los Angeles","Seed",2100000,1,2100000 79 | "Accounting","New York City","Unknown",1000000,1,1000000 80 | "Advice","New York City","Seed",900000,1,900000 81 | "Architecture","New York City","Seed",2000000,1,2000000 82 | "Art","New York City","Seed",150000,1,150000 83 | "Art","New York City","Venture",18480053,1,18480052 84 | "B2B","New York City","Seed",2100000,1,2100000 85 | "B2B","New York City","Unknown",50000,1,50000 86 | "B2B","New York City","Venture",3750000,1,3750000 87 | "Big Data Analytics","New York City","Angel",70000,1,70000 88 | "Brand Marketing","New York City","Angel",600000,1,600000 89 | "Brand Marketing","New York City","Venture",26000000,2,13000000 90 | "Celebrity","New York City","Angel",3000000,1,3000000 91 | "Chat","New York City","Venture",265000,1,265000 92 | "Clean Energy","New York City","Convertible Note",200000,1,200000 93 | "Cloud Security","New York City","Venture",8624862,1,8624862 94 | "Coffee","New York City","Seed",500000,1,500000 95 | "Colleges","New York City","Seed",500000,1,500000 96 | "Commercial Real Estate","New York City","Venture",8000000,1,8000000 97 | "Construction","New York City","Venture",8000000,1,8000000 98 | "Consumer Internet","New York City","Seed",2500000,1,2500000 99 | "Contact Management","New York City","Seed",1000000,1,1000000 100 | "Contests","New York City","Venture",15000000,1,15000000 101 | "Crowdfunding","New York City","Seed",1900000,1,1900000 102 | "Crowdfunding","New York City","Venture",12000000,2,6000000 103 | "Crowdsourcing","New York City","Unknown",1200000,1,1200000 104 | "Design","New York City","Venture",1850000,1,1850000 105 | "Diabetes","New York City","Unknown",199999,1,199999 106 | "Diabetes","New York City","Venture",650000,1,650000 107 | "Digital Media","New York City","Seed",1350000,2,675000 108 | "Digital Media","New York City","Venture",14000000,1,14000000 109 | "Employment","New York City","Venture",20000000,1,20000000 110 | "Events","New York City","Seed",1500000,1,1500000 111 | "File Sharing","New York City","Venture",1500000,1,1500000 112 | "Finance Technology","New York City","Seed",750000,1,750000 113 | "Fitness","New York City","Seed",20000,1,20000 114 | "Health Care Information Technology","New York City","Venture",3500000,1,3500000 115 | "Identity Management","New York City","Seed",99124,1,99124 116 | "Information Technology","New York City","Venture",1843567,1,1843567 117 | "Lifestyle","New York City","Seed",1000000,1,1000000 118 | "Local","New York City","Seed",1000000,1,1000000 119 | "Location Based Services","New York City","Unknown",15000000,1,15000000 120 | "Machine Learning","New York City","Seed",2049999,1,2049999 121 | "Messaging","New York City","Seed",3250000,3,1083333 122 | "Messaging","New York City","Venture",25000000,1,25000000 123 | "Music","New York City","Venture",3469151,3,1156384 124 | "Saas","New York City","Venture",15000000,1,15000000 125 | "Social Media","New York City","Seed",4300000,2,2150000 126 | "Sports","New York City","Seed",20000,1,20000 127 | "Sports","New York City","Venture",10000000,1,10000000 128 | "3D","SF Bay Area","Seed",1200000,1,1200000 129 | "3D","SF Bay Area","Venture",1490497,1,1490497 130 | "3D Printing","SF Bay Area","Seed",1000000,1,1000000 131 | "Accounting","SF Bay Area","Unknown",3000000,1,3000000 132 | "Accounting","SF Bay Area","Venture",40000000,2,20000000 133 | "Ad Targeting","SF Bay Area","Venture",57000000,1,57000000 134 | "Advice","SF Bay Area","Seed",650000,1,650000 135 | "Aerospace","SF Bay Area","Convertible Note",3170000,1,3170000 136 | "Aerospace","SF Bay Area","Venture",14200000,2,7100000 137 | "Agriculture","SF Bay Area","Venture",10000000,1,10000000 138 | "All Markets","SF Bay Area","Unknown",14000,1,14000 139 | "Artificial Intelligence","SF Bay Area","Seed",560000,1,560000 140 | "Auctions","SF Bay Area","Seed",500000,1,500000 141 | "Audio","SF Bay Area","Unknown",16600000,1,16600000 142 | "Audio","SF Bay Area","Venture",150000,1,150000 143 | "B2B","SF Bay Area","Angel",1800000,1,1800000 144 | "B2B","SF Bay Area","Seed",645000,3,215000 145 | "B2B","SF Bay Area","Unknown",1298670,2,649335 146 | "Big Data Analytics","SF Bay Area","Seed",25000,1,25000 147 | "Bitcoin","SF Bay Area","Seed",25000,1,25000 148 | "Business Services","SF Bay Area","Seed",325000,1,325000 149 | "Business Services","SF Bay Area","Venture",50000000,1,50000000 150 | "Celebrity","SF Bay Area","Seed",750000,1,750000 151 | "Charter Schools","SF Bay Area","Venture",33000000,1,33000000 152 | "Cloud Security","SF Bay Area","Venture",41300000,2,20650000 153 | "Coffee","SF Bay Area","Venture",25700000,1,25700000 154 | "Commercial Real Estate","SF Bay Area","Venture",7300000,1,7300000 155 | "Communities","SF Bay Area","Venture",2100000,1,2100000 156 | "Consumer Electronics","SF Bay Area","Venture",12393798,2,6196899 157 | "Consumer Goods","SF Bay Area","Seed",1500000,1,1500000 158 | "Consumers","SF Bay Area","Venture",35000000,1,35000000 159 | "Content Delivery","SF Bay Area","Venture",26000000,1,26000000 160 | "Cooking","SF Bay Area","Seed",3000000,1,3000000 161 | "Corporate It","SF Bay Area","Angel",1100000,1,1100000 162 | "Crm","SF Bay Area","Unknown",8919533,1,8919533 163 | "Crm","SF Bay Area","Venture",4825000,2,2412500 164 | "Crowdfunding","SF Bay Area","Unknown",1900000,1,1900000 165 | "Crowdfunding","SF Bay Area","Venture",14000000,1,14000000 166 | "Crowdsourcing","SF Bay Area","Venture",27639061,3,9213020 167 | "Cyber Security","SF Bay Area","Venture",25000000,1,25000000 168 | "Data Security","SF Bay Area","Unknown",625000,1,625000 169 | "Demographies","SF Bay Area","Venture",954964,1,954964 170 | "Design","SF Bay Area","Angel",100000,1,100000 171 | "Diabetes","SF Bay Area","Venture",7000000,1,7000000 172 | "Distribution","SF Bay Area","Seed",25000,1,25000 173 | "Email","SF Bay Area","Venture",4000000,1,4000000 174 | "Entertainment","SF Bay Area","Venture",9800000,1,9800000 175 | "Environmental Innovation","SF Bay Area","Venture",23000000,1,23000000 176 | "Facebook Applications","SF Bay Area","Venture",12510000,2,6255000 177 | "Finance Technology","SF Bay Area","Seed",600000,1,600000 178 | "Financial Services","SF Bay Area","Seed",2700000,1,2700000 179 | "Gambling","SF Bay Area","Angel",1700000,1,1700000 180 | "Human Computer Interaction","SF Bay Area","Venture",13500000,1,13500000 181 | "Identity","SF Bay Area","Venture",115656,1,115656 182 | "Identity Management","SF Bay Area","Venture",42000000,1,42000000 183 | "Information Services","SF Bay Area","Seed",4499960,1,4499960 184 | "Information Technology","SF Bay Area","Venture",1000000,1,1000000 185 | "Infrastructure","SF Bay Area","Venture",14500000,1,14500000 186 | "Internet Tv","SF Bay Area","Unknown",1966279,1,1966279 187 | "Ipad","SF Bay Area","Seed",1500000,1,1500000 188 | "Ipad","SF Bay Area","Venture",7000000,1,7000000 189 | "Local","SF Bay Area","Seed",1270000,3,423333 190 | "Local","SF Bay Area","Venture",17300000,1,17300000 191 | "Local Businesses","SF Bay Area","Venture",3500000,1,3500000 192 | "Location Based Services","SF Bay Area","Seed",820000,1,820000 193 | "Messaging","SF Bay Area","Angel",500000,1,500000 194 | "Messaging","SF Bay Area","Venture",9500000,2,4750000 195 | "Music","SF Bay Area","Product Crowdfunding",6225354,1,6225354 196 | "Music","SF Bay Area","Seed",1700000,1,1700000 197 | "Music","SF Bay Area","Venture",1100000,1,1100000 198 | "Network Security","SF Bay Area","Unknown",6000000,1,6000000 199 | "Networking","SF Bay Area","Venture",19000000,2,9500000 200 | "Open Source","SF Bay Area","Venture",15000000,1,15000000 201 | "Paas","SF Bay Area","Venture",6000000,1,6000000 202 | "Pets","SF Bay Area","Unknown",2039525,1,2039525 203 | "Predictive Analytics","SF Bay Area","Venture",12000000,1,12000000 204 | "Public Relations","SF Bay Area","Angel",200000,1,200000 205 | "Public Relations","SF Bay Area","Unknown",1000000,1,1000000 206 | "Public Relations","SF Bay Area","Venture",4000000,1,4000000 207 | "Saas","SF Bay Area","Seed",450000,1,450000 208 | "Saas","SF Bay Area","Venture",18000000,2,9000000 209 | "Shipping","SF Bay Area","Seed",2250000,1,2250000 210 | "Social Media","SF Bay Area","Seed",25000,1,25000 211 | "Social Media","SF Bay Area","Venture",19600000,2,9800000 212 | -------------------------------------------------------------------------------- /examples/crunchbase-treemap/data/crunchbase.csv: -------------------------------------------------------------------------------- 1 | Market,Region,Funding,Amount,Count,AVG 2 | "Ad Targeting","Boston","Seed",2200000,1,2200000 3 | "Adventure Travel","Boston","Convertible Note",15000,1,15000 4 | "Agriculture","Boston","Seed",4099998,2,2049999 5 | "Application Performance Monitoring","Boston","Venture",20000000,1,20000000 6 | "Art","Boston","Seed",10000,1,10000 7 | "B2B","Boston","Venture",2266000,1,2266000 8 | "Cloud Security","Boston","Venture",5671497,2,2835748 9 | "Databases","Boston","Venture",14200000,1,14200000 10 | "Design","Boston","Venture",668542,1,668542 11 | "Dod/Military","Boston","Venture",5299999,1,5299999 12 | "Employer Benefits Programs","Boston","Venture",1215000,1,1215000 13 | "Energy Efficiency","Boston","Angel",500000,1,500000 14 | "Enterprises","Boston","Seed",3000000,1,3000000 15 | "Enterprises","Boston","Venture",1114244,1,1114244 16 | "Gps","Boston","Angel",35000,1,35000 17 | "Human Resources","Boston","Seed",500000,1,500000 18 | "Internet Of Things","Boston","Convertible Note",118000,1,118000 19 | "Messaging","Boston","Seed",500000,1,500000 20 | "Music","Boston","Unknown",2208458,1,2208458 21 | "Nonprofits","Boston","Unknown",300000,1,300000 22 | "Nonprofits","Boston","Venture",260000,1,260000 23 | "Politics","Boston","Seed",150000,2,75000 24 | "Saas","Boston","Venture",9499986,1,9499986 25 | "Accounting","London","Seed",1000000,1,1000000 26 | "Artificial Intelligence","London","Seed",150000,1,150000 27 | "Auctions","London","Venture",8362900,1,8362900 28 | "B2B","London","Unknown",757625,1,757625 29 | "Business Services","London","Venture",1345374,1,1345374 30 | "Charities","London","Seed",2650000,1,2650000 31 | "Computer Vision","London","Seed",150000,1,150000 32 | "Concerts","London","Seed",28437,1,28437 33 | "Consumers","London","Equity Crowdfunding",2698918,1,2698918 34 | "Consumers","London","Seed",98534,1,98534 35 | "Coupons","London","Unknown",2424402,1,2424402 36 | "Crm","London","Venture",6000000,1,6000000 37 | "Databases","London","Seed",34833,1,34833 38 | "Design","London","Angel",249622,1,249622 39 | "Developer Apis","London","Venture",18000000,1,18000000 40 | "Digital Media","London","Venture",681000,1,681000 41 | "Email","London","Seed",762927,1,762927 42 | "Embedded Hardware And Software","London","Venture",7000000,1,7000000 43 | "Entertainment","London","Venture",7500000,1,7500000 44 | "Entrepreneur","London","Angel",1200000,1,1200000 45 | "Events","London","Seed",252760,1,252760 46 | "Finance Technology","London","Angel",1847507,1,1847507 47 | "Gamification","London","Venture",8009622,1,8009622 48 | "Guides","London","Unknown",15000,1,15000 49 | "Iaas","London","Seed",500000,1,500000 50 | "In-Flight Entertainment","London","Venture",40000000,1,40000000 51 | "Internet Marketing","London","Seed",1000000,1,1000000 52 | "Internet Of Things","London","Angel",100006,1,100006 53 | "Internet Of Things","London","Seed",151525,1,151525 54 | "Local Businesses","London","Equity Crowdfunding",1172519,1,1172519 55 | "Music","London","Seed",335000,1,335000 56 | "P2P Money Transfer","London","Venture",40000000,1,40000000 57 | "Reviews And Recommendations","London","Seed",2012004,1,2012004 58 | "Search","London","Unknown",332970,1,332970 59 | "Soccer","London","Unknown",18000000,1,18000000 60 | "Social Crm","London","Venture",1515251,1,1515251 61 | "Social Media","London","Seed",1000000,1,1000000 62 | "Ad Targeting","Los Angeles","Venture",8000000,1,8000000 63 | "Audio","Los Angeles","Unknown",25000,1,25000 64 | "Big Data Analytics","Los Angeles","Unknown",50000,1,50000 65 | "Charity","Los Angeles","Venture",9100000,1,9100000 66 | "Clean Energy","Los Angeles","Seed",60000,1,60000 67 | "Cloud Management","Los Angeles","Venture",10000000,1,10000000 68 | "Communications Infrastructure","Los Angeles","Venture",1575035,1,1575035 69 | "Consumer Electronics","Los Angeles","Angel",500000,1,500000 70 | "Crowdfunding","Los Angeles","Angel",1000000,1,1000000 71 | "Entertainment","Los Angeles","Convertible Note",420000,1,420000 72 | "File Sharing","Los Angeles","Venture",36000000,1,36000000 73 | "Messaging","Los Angeles","Venture",21000000,1,21000000 74 | "Pets","Los Angeles","Venture",2600000,1,2600000 75 | "Saas","Los Angeles","Venture",17000000,1,17000000 76 | "Search","Los Angeles","Venture",6349985,1,6349985 77 | "Social Media","Los Angeles","Seed",306000,2,153000 78 | "Sports","Los Angeles","Seed",2100000,1,2100000 79 | "Accounting","New York City","Unknown",1000000,1,1000000 80 | "Advice","New York City","Seed",900000,1,900000 81 | "Architecture","New York City","Seed",2000000,1,2000000 82 | "Art","New York City","Seed",150000,1,150000 83 | "Art","New York City","Venture",18480053,1,18480052 84 | "B2B","New York City","Seed",2100000,1,2100000 85 | "B2B","New York City","Unknown",50000,1,50000 86 | "B2B","New York City","Venture",3750000,1,3750000 87 | "Big Data Analytics","New York City","Angel",70000,1,70000 88 | "Brand Marketing","New York City","Angel",600000,1,600000 89 | "Brand Marketing","New York City","Venture",26000000,2,13000000 90 | "Celebrity","New York City","Angel",3000000,1,3000000 91 | "Chat","New York City","Venture",265000,1,265000 92 | "Clean Energy","New York City","Convertible Note",200000,1,200000 93 | "Cloud Security","New York City","Venture",8624862,1,8624862 94 | "Coffee","New York City","Seed",500000,1,500000 95 | "Colleges","New York City","Seed",500000,1,500000 96 | "Commercial Real Estate","New York City","Venture",8000000,1,8000000 97 | "Construction","New York City","Venture",8000000,1,8000000 98 | "Consumer Internet","New York City","Seed",2500000,1,2500000 99 | "Contact Management","New York City","Seed",1000000,1,1000000 100 | "Contests","New York City","Venture",15000000,1,15000000 101 | "Crowdfunding","New York City","Seed",1900000,1,1900000 102 | "Crowdfunding","New York City","Venture",12000000,2,6000000 103 | "Crowdsourcing","New York City","Unknown",1200000,1,1200000 104 | "Design","New York City","Venture",1850000,1,1850000 105 | "Diabetes","New York City","Unknown",199999,1,199999 106 | "Diabetes","New York City","Venture",650000,1,650000 107 | "Digital Media","New York City","Seed",1350000,2,675000 108 | "Digital Media","New York City","Venture",14000000,1,14000000 109 | "Employment","New York City","Venture",20000000,1,20000000 110 | "Events","New York City","Seed",1500000,1,1500000 111 | "File Sharing","New York City","Venture",1500000,1,1500000 112 | "Finance Technology","New York City","Seed",750000,1,750000 113 | "Fitness","New York City","Seed",20000,1,20000 114 | "Health Care Information Technology","New York City","Venture",3500000,1,3500000 115 | "Identity Management","New York City","Seed",99124,1,99124 116 | "Information Technology","New York City","Venture",1843567,1,1843567 117 | "Lifestyle","New York City","Seed",1000000,1,1000000 118 | "Local","New York City","Seed",1000000,1,1000000 119 | "Location Based Services","New York City","Unknown",15000000,1,15000000 120 | "Machine Learning","New York City","Seed",2049999,1,2049999 121 | "Messaging","New York City","Seed",3250000,3,1083333 122 | "Messaging","New York City","Venture",25000000,1,25000000 123 | "Music","New York City","Venture",3469151,3,1156384 124 | "Saas","New York City","Venture",15000000,1,15000000 125 | "Social Media","New York City","Seed",4300000,2,2150000 126 | "Sports","New York City","Seed",20000,1,20000 127 | "Sports","New York City","Venture",10000000,1,10000000 128 | "3D","SF Bay Area","Seed",1200000,1,1200000 129 | "3D","SF Bay Area","Venture",1490497,1,1490497 130 | "3D Printing","SF Bay Area","Seed",1000000,1,1000000 131 | "Accounting","SF Bay Area","Unknown",3000000,1,3000000 132 | "Accounting","SF Bay Area","Venture",40000000,2,20000000 133 | "Ad Targeting","SF Bay Area","Venture",57000000,1,57000000 134 | "Advice","SF Bay Area","Seed",650000,1,650000 135 | "Aerospace","SF Bay Area","Convertible Note",3170000,1,3170000 136 | "Aerospace","SF Bay Area","Venture",14200000,2,7100000 137 | "Agriculture","SF Bay Area","Venture",10000000,1,10000000 138 | "All Markets","SF Bay Area","Unknown",14000,1,14000 139 | "Artificial Intelligence","SF Bay Area","Seed",560000,1,560000 140 | "Auctions","SF Bay Area","Seed",500000,1,500000 141 | "Audio","SF Bay Area","Unknown",16600000,1,16600000 142 | "Audio","SF Bay Area","Venture",150000,1,150000 143 | "B2B","SF Bay Area","Angel",1800000,1,1800000 144 | "B2B","SF Bay Area","Seed",645000,3,215000 145 | "B2B","SF Bay Area","Unknown",1298670,2,649335 146 | "Big Data Analytics","SF Bay Area","Seed",25000,1,25000 147 | "Bitcoin","SF Bay Area","Seed",25000,1,25000 148 | "Business Services","SF Bay Area","Seed",325000,1,325000 149 | "Business Services","SF Bay Area","Venture",50000000,1,50000000 150 | "Celebrity","SF Bay Area","Seed",750000,1,750000 151 | "Charter Schools","SF Bay Area","Venture",33000000,1,33000000 152 | "Cloud Security","SF Bay Area","Venture",41300000,2,20650000 153 | "Coffee","SF Bay Area","Venture",25700000,1,25700000 154 | "Commercial Real Estate","SF Bay Area","Venture",7300000,1,7300000 155 | "Communities","SF Bay Area","Venture",2100000,1,2100000 156 | "Consumer Electronics","SF Bay Area","Venture",12393798,2,6196899 157 | "Consumer Goods","SF Bay Area","Seed",1500000,1,1500000 158 | "Consumers","SF Bay Area","Venture",35000000,1,35000000 159 | "Content Delivery","SF Bay Area","Venture",26000000,1,26000000 160 | "Cooking","SF Bay Area","Seed",3000000,1,3000000 161 | "Corporate It","SF Bay Area","Angel",1100000,1,1100000 162 | "Crm","SF Bay Area","Unknown",8919533,1,8919533 163 | "Crm","SF Bay Area","Venture",4825000,2,2412500 164 | "Crowdfunding","SF Bay Area","Unknown",1900000,1,1900000 165 | "Crowdfunding","SF Bay Area","Venture",14000000,1,14000000 166 | "Crowdsourcing","SF Bay Area","Venture",27639061,3,9213020 167 | "Cyber Security","SF Bay Area","Venture",25000000,1,25000000 168 | "Data Security","SF Bay Area","Unknown",625000,1,625000 169 | "Demographies","SF Bay Area","Venture",954964,1,954964 170 | "Design","SF Bay Area","Angel",100000,1,100000 171 | "Diabetes","SF Bay Area","Venture",7000000,1,7000000 172 | "Distribution","SF Bay Area","Seed",25000,1,25000 173 | "Email","SF Bay Area","Venture",4000000,1,4000000 174 | "Entertainment","SF Bay Area","Venture",9800000,1,9800000 175 | "Environmental Innovation","SF Bay Area","Venture",23000000,1,23000000 176 | "Facebook Applications","SF Bay Area","Venture",12510000,2,6255000 177 | "Finance Technology","SF Bay Area","Seed",600000,1,600000 178 | "Financial Services","SF Bay Area","Seed",2700000,1,2700000 179 | "Gambling","SF Bay Area","Angel",1700000,1,1700000 180 | "Human Computer Interaction","SF Bay Area","Venture",13500000,1,13500000 181 | "Identity","SF Bay Area","Venture",115656,1,115656 182 | "Identity Management","SF Bay Area","Venture",42000000,1,42000000 183 | "Information Services","SF Bay Area","Seed",4499960,1,4499960 184 | "Information Technology","SF Bay Area","Venture",1000000,1,1000000 185 | "Infrastructure","SF Bay Area","Venture",14500000,1,14500000 186 | "Internet Tv","SF Bay Area","Unknown",1966279,1,1966279 187 | "Ipad","SF Bay Area","Seed",1500000,1,1500000 188 | "Ipad","SF Bay Area","Venture",7000000,1,7000000 189 | "Local","SF Bay Area","Seed",1270000,3,423333 190 | "Local","SF Bay Area","Venture",17300000,1,17300000 191 | "Local Businesses","SF Bay Area","Venture",3500000,1,3500000 192 | "Location Based Services","SF Bay Area","Seed",820000,1,820000 193 | "Messaging","SF Bay Area","Angel",500000,1,500000 194 | "Messaging","SF Bay Area","Venture",9500000,2,4750000 195 | "Music","SF Bay Area","Product Crowdfunding",6225354,1,6225354 196 | "Music","SF Bay Area","Seed",1700000,1,1700000 197 | "Music","SF Bay Area","Venture",1100000,1,1100000 198 | "Network Security","SF Bay Area","Unknown",6000000,1,6000000 199 | "Networking","SF Bay Area","Venture",19000000,2,9500000 200 | "Open Source","SF Bay Area","Venture",15000000,1,15000000 201 | "Paas","SF Bay Area","Venture",6000000,1,6000000 202 | "Pets","SF Bay Area","Unknown",2039525,1,2039525 203 | "Predictive Analytics","SF Bay Area","Venture",12000000,1,12000000 204 | "Public Relations","SF Bay Area","Angel",200000,1,200000 205 | "Public Relations","SF Bay Area","Unknown",1000000,1,1000000 206 | "Public Relations","SF Bay Area","Venture",4000000,1,4000000 207 | "Saas","SF Bay Area","Seed",450000,1,450000 208 | "Saas","SF Bay Area","Venture",18000000,2,9000000 209 | "Shipping","SF Bay Area","Seed",2250000,1,2250000 210 | "Social Media","SF Bay Area","Seed",25000,1,25000 211 | "Social Media","SF Bay Area","Venture",19600000,2,9800000 212 | --------------------------------------------------------------------------------