You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/constants.js
+41-1Lines changed: 41 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -212,6 +212,7 @@ labels relativesize 100
212
212
name: 'Basic Budget',
213
213
flows: "// Enter Flows between Nodes, like this:\n// Source [AMOUNT] Target\n\nWages [1500] Budget\nOther [250] Budget\n\nBudget [450] Taxes\nBudget [420] Housing\nBudget [400] Food\nBudget [295] Transportation\nBudget [25] Savings\n\n// You can set a Node's color, like this:\n:Budget #708090\n// ...or a color for a single Flow:\nBudget [160] Other Necessities #0F0\n\n// Use the controls below to customize\n// your diagram's appearance...",
214
214
settings: {
215
+
size_h: 600,
215
216
size_w: 600,
216
217
node_w: 12,
217
218
node_h: 50,
@@ -228,6 +229,7 @@ labels relativesize 100
228
229
labels_highlight: 0.8,
229
230
labels_magnify: 100,
230
231
labels_relativesize: 110,
232
+
labelvalue_appears: 'y',
231
233
labelvalue_position: 'below',
232
234
themeoffset_a: 9,
233
235
value_prefix: '',
@@ -237,8 +239,9 @@ labels relativesize 100
237
239
// Ranked-choice election:
238
240
['election',{
239
241
name: 'Ranked Election',
240
-
flows: '// Sample Ranked Election diagram\n\nGH\\nRound 1 [300000] GH\\nRound 2\nEF\\nRound 1 [220000] EF\\nRound 2\nCD\\nRound 1 [200000] CD\\nRound 2\nAB\\nRound 1 [10000] GH\\nRound 2\nAB\\nRound 1 [25000] EF\\nRound 2\nAB\\nRound 1 [20000] CD\\nRound 2\n\nGH\\nRound 2 [310000] GH\\nRound 3\\nProjected Winner\nEF\\nRound 2 [245000] EF\\nRound 3\nCD\\nRound 2 [50000] GH\\nRound 3\\nProjected Winner\nCD\\nRound 2 [95000] EF\\nRound 3\n\n// This line sets a custom gray color:\n:No further votes #555 <<\nAB\\nRound 1 [20000] No further votes\nCD\\nRound 2 [75000] No further votes',
242
+
flows: '// Sample Ranked Election diagram\n\nGH\\nRound 1 [300000] GH\\nRound 2\nEF\\nRound 1 [220000] EF\\nRound 2\nCD\\nRound 1 [200000] CD\\nRound 2\nAB\\nRound 1 [10000] GH\\nRound 2\nAB\\nRound 1 [25000] EF\\nRound 2\nAB\\nRound 1 [20000] CD\\nRound 2\n\nGH\\nRound 2 [310000] GH\\nRound 3\\nProjected Winner\nEF\\nRound 2 [245000] EF\\nRound 3\nCD\\nRound 2 [50000] GH\\nRound 3\\nProjected Winner\nCD\\nRound 2 [95000] EF\\nRound 3\n\n// This line sets a custom gray color:\n:No further votes #555 <<\nCD\\nRound 2 [75000] No further votes\nAB\\nRound 1 [20000] No further votes',
flows: '// List each player\'s moves all at once\n// Use one color for each player\n// Use an amount of 1 for each move\n// Check "Using the exact input order" below\n\n// Experiment with reordering players!\n\n:Player 1: #76a\nPlayer 1: [1] 1A #76a\n1A [1] 2C #76a\n2C [1] 3E #76a\n3E [1] Player 1 #76a\n:Player 1 #76a\n\n:Player 2: #e37\nPlayer 2: [1] 1B #e37\n1B [1] 2D #e37\n2D [1] 3E #e37\n3E [1] Player 2 #e37\n:Player 2 #e37\n\n:Player 3: #bb2\nPlayer 3: [1] 1A #bb2\n1A [1] 2D #bb2\n2D [1] 3E #bb2\n3E [1] Player 3 #bb2\n:Player 3 #bb2\n',
358
+
settings: {
359
+
size_h: 400,
360
+
size_w: 600,
361
+
node_w: 12,
362
+
node_h: 23,
363
+
node_spacing: 46,
364
+
node_border: 0,
365
+
node_theme: 'none',
366
+
node_color: '#777777',
367
+
flow_inheritfrom: 'outside-in',
368
+
layout_justifyends: 'y',
369
+
layout_order: 'exact',
370
+
labelname_size: 16,
371
+
labelname_weight: 400,
372
+
labelposition_scheme: 'auto',
373
+
labelposition_autoalign: 0,
374
+
labels_highlight: 0.75,
375
+
labels_magnify: 100,
376
+
labels_relativesize: 100,
377
+
labelvalue_appears: 'n',
378
+
labelvalue_position: 'below',
379
+
themeoffset_a: 9,
380
+
value_prefix: '',
381
+
},
382
+
}],
383
+
344
384
// A variation of the inputs for the original d3 energy diagram, now found
345
385
// at https://observablehq.com/@d3/sankey:
346
386
// (This will become another button at some point.)
0 commit comments