This is my version of the updating line chart from the book, Fullstack D3.
We can't make this file beautiful and searchable because it's too large.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Category,City,Country,Customer Name,Date,Date Filter,Manufacturer,Order ID,Postal Code,Product Name,Region,Segment,Ship Date,Ship Mode,State,Sub-Category,Discount,Number of Records,Profit,Profit Ratio,Quantity,Sales | |
Furniture,Henderson,United States,Claire Gute,11/8/18,TRUE,Bush,CA-2018-152156,42420,Bush Somerset Collection Bookcase,South,Consumer,11/11/18,Second Class,Kentucky,Bookcases,0%,1,$42 ,16%,2,$262 | |
Furniture,Henderson,United States,Claire Gute,11/8/18,TRUE,Hon,CA-2018-152156,42420,"Hon Deluxe Fabric Upholstered Stacking Chairs, Rounded Back",South,Consumer,11/11/18,Second Class,Kentucky,Chairs,0%,1,$220 ,30%,3,$732 | |
Office Supplies,Los Angeles,United States,Darrin Van Huff,6/12/18,TRUE,Universal,CA-2018-138688,90036,Self-Adhesive Address Labels for Typewriters by Universal,West,Corporate,6/16/18,Second Class,California,Labels,0%,1,$7 ,47%,2,$15 | |
Furniture,Fort Lauderdale,United States,Sean O'Donnell,10/11/17,TRUE,Bretford,US-2017-108966,33311,Bretford CR4500 Series Slim Rectangular Table,South,Cons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extension Debugging | |
// open /Applications/Tableau\ Desktop\ 2019.4.app --args --remote-debugging-port=8696 | |
// Chromium link | |
// http://localhost:8696 | |
// Wrap everything in an anonymous function to avoid polluting the global namespace | |
(function () { | |
// Use the jQuery document ready signal to know when everything has been initialized | |
$(document).ready(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>My First Extension</title> | |
</head> | |
<body> | |
Hello World! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// CREATE A CHART CLASS | |
//////////////////////////////////////////////////////////////////////////////// | |
class Chart { | |
constructor(opts) { | |
this.element = opts.element; | |
this.width = opts.width; | |
this.height = opts.height; | |
this.margin = opts.margin; | |
this.padding = opts.padding; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//////////////////////////////////////////////////////////////////////////////// | |
// CREATE A CHART CLASS | |
//////////////////////////////////////////////////////////////////////////////// | |
class Chart { | |
constructor(opts) { | |
this.element = opts.element; | |
this.width = opts.width; | |
this.height = opts.height; | |
this.margin = opts.margin; | |
this.padding = opts.padding; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
country | foreign nationality | outflow | inflow | |
---|---|---|---|---|
United Kingdom | Australia | 6700 | 22187 | |
United Kingdom | Austria | 1103 | 1401 | |
United Kingdom | Belgium | 1865 | 1739 | |
United Kingdom | Czech Republic | 56 | 323 | |
United Kingdom | Finland | 154 | 343 | |
United Kingdom | Germany | 8840 | 10726 | |
United Kingdom | Hungary | 277 | 414 | |
United Kingdom | Iceland | 74 | 161 | |
United Kingdom | Ireland | 5600 | 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
United Kingdom | Australia | 6700 | 22187 | |
---|---|---|---|---|
United Kingdom | Austria | 1103 | 1401 | |
United Kingdom | Belgium | 1865 | 1739 | |
United Kingdom | Czech Republic | 56 | 323 | |
United Kingdom | Finland | 154 | 343 | |
United Kingdom | Germany | 8840 | 10726 | |
United Kingdom | Hungary | 277 | 414 | |
United Kingdom | Iceland | 74 | 161 | |
United Kingdom | Ireland | 5600 | 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Country | Kpi | Migrants | |
---|---|---|---|
Austria | inflow | 1492374 | |
Austria | outflow | 575828 | |
Belgium | inflow | 1387940 | |
Belgium | outflow | 530990 | |
Bulgaria | inflow | 102113 | |
Bulgaria | outflow | 1176390 | |
Croatia | inflow | 576883 | |
Croatia | outflow | 865147 | |
Czech Republic | inflow | 405093 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rank | PERSONALITY | INTELLIGENCE | HUMOR | LOOKS | SIMILAR INTERESTS | INCOME | |
---|---|---|---|---|---|---|---|
1 | 0.52 | 0.08 | 0.21 | 0.05 | 0.13 | 0.01 | |
2 | 0.25 | 0.14 | 0.33 | 0.06 | 0.21 | 0.02 | |
3 | 0.16 | 0.2 | 0.24 | 0.09 | 0.28 | 0.03 | |
4 | 0.05 | 0.39 | 0.14 | 0.17 | 0.2 | 0.05 | |
5 | 0.02 | 0.16 | 0.07 | 0.41 | 0.13 | 0.22 | |
6 | 0.01 | 0.04 | 0.01 | 0.21 | 0.06 | 0.67 |
NewerOlder