forked from bentut/uhero_dash_raw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevelopment plan.txt
82 lines (63 loc) · 1.68 KB
/
development plan.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
Gov Research Spending
----------------------------------------------
1.) Create CSV of Top Level Spending
2.) Change scale for X Axis
- make linear
- find max values
- figure out date bit
3.) Change Scale for Y Axis
4.) Draw Path
5.) Draw Area
Student Spending
-----------------------------------------------
# 1.) Create 3 axes-
# x - categorical axis
# y - dollar scale 0 - $9000 (max of value range)
# r - radius scale 0 - 9000 (sqrt)
# 2.) Create CSV with data (no totals)
# 3.) In design variables
# -radius scale max
# -x scale width
# -y scale max
# 4.) Create ticks and labels
# 6.) plot points
# 5.) Pick colors (green / gold in a series)
# greens [#486135, #2C6E3E, #6D783E, #B5C8A0, #89AC6E]
# gold [#B99F69, #D9955E, #E3AD65, #EFD299, #F3EBD9]
# var color_list = ["#486135", "#2C6E3E", "#6D783E", "#B5C8A0", "#89AC6E", "#B99F69", "#D9955E", "#E3AD65", "#EFD299", "#F3EBD9"]
# 7.) put in export code and button
# <script type="text/javascript" src="jquery.js"></script>
# <script type="text/javascript" src="jquery.svg.js"></script>
# <script type="text/javascript">
# function export_svg() {
# $('svg').svg();
# var xml = $('svg').svg('get').toSVG();
# $('#svgexport').html(xml.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'));
# }
# </script>
# <button onclick="export_svg();" />export</button>
# <pre><div id="svgexport">export will go here</div></pre>
#8.) horizontally separate Grad vs Undergrad
GENERAL SETUP PROCESS
linked files
-d3
-dat.gui
-jquery.svg.js
setup items
-draw function
-file read function
-dat.gui object
-dat.gui ranges
-scales
-height
-width
-margin
-export function
drawing setup
-axes
-ticks
-labels
-border
templates
- path samples
- bar chart