-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnotes.txt
133 lines (55 loc) · 1.79 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
MAXIMUM VALUES OF SOMETHING
var maxPop = d3.max(cities, function(d) { return d.population })
LIST OF NAMES (Plucking out one variable)
var names = cities.map(function(d) { return d.name })
TOOLTIP
http://bl.ocks.org/Caged/6476579
ADDING AXES
var yAxis = d3.axisLeft(yPositionScale);
svg.append("g")
.attr("class", "axis y-axis")
.call(yAxis)
var xAxis = d3.axisBottom(xPositionScale)
svg.append("g")
.attr("class", "axis x-axis")
.attr("transform", "translate(0," + height + ")")
.call(xAxis)
MARGIN CONVENTION - https://bl.ocks.org/mbostock/3019563
var margin = { top: 20, right: 10, bottom: 20, left: 10 }
var width = 960 - margin.left - margin.right,
height = 500 - margin.top - margin.bottom
// You'll probably need to edit this one
var svg = d3.select("#graphic").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")")
INSTALL NPM
OS X: run brew install node
Windows: Visit nodejs.org
INITIALIZE PROJECT
npm init
INSTALL ESLINT
npm install --save-dev eslint
INITIALIZE ESLINT
./node_modules/.bin/eslint --init
INSTALL PRETTIER
npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier
PRETTIER + STANDARD
This is your .eslint file
{
"extends": ["standard", "prettier", "prettier/standard"],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"singleQuote": true,
"semi": false,
"printWidth": 80
}
]
}
}