|
27 | 27 | </th> |
28 | 28 | </tr> |
29 | 29 | <tr> |
30 | | - <td id="flows_entry"> |
| 30 | + <td id="other_entry"> |
| 31 | + |
| 32 | +<p class="ui_head" onclick="toggle('input_options');"><span id="input_options_indicator" class="indicator">⇓</span> |
| 33 | +Inputs<span id="input_options_hint">:</span></p> |
| 34 | + |
| 35 | +<div id="input_options"> |
31 | 36 | <textarea id="flows_in" rows="22" cols="40" onchange="process_sankey();">' Type a list of Flows, like this: |
32 | 37 | ' SOURCE [AMOUNT] TARGET |
33 | 38 |
|
34 | | -' To set a color for one specific Flow, add |
35 | | -' an HTML color code to the end of the line: |
36 | | -' SOURCE [AMOUNT] TARGET #COLOR |
37 | | - |
38 | 39 | ' After all your Flows are entered, use |
39 | 40 | ' the controls below to customize the |
40 | 41 | ' diagram's design. |
41 | 42 |
|
42 | 43 | ' Examples: |
43 | 44 |
|
44 | | -Here [8] Everywhere |
45 | | -There [5.5] Everywhere |
46 | | -Everywhere [6] Over there |
47 | | -Everywhere [5] Somewhere else |
48 | | -Far far away [3] Nearby |
49 | | -Everywhere [2.5] Nearby #55FF00</textarea> |
| 45 | +Wages [2000] Budget |
| 46 | +Interest [5] Budget |
| 47 | +Budget [500] Taxes |
| 48 | +Budget [400] Housing |
| 49 | +Budget [300] Food |
| 50 | +Budget [205] Transportation |
| 51 | +Budget [400] Health Care |
| 52 | +Budget [200] Other Necessities |
50 | 53 |
|
51 | | -<p class="center_basic"><button id="preview_graph" type="submit">Preview</button></p> |
| 54 | +' For even finer control over presentation, |
| 55 | +' go to the Manual.</textarea> |
52 | 56 |
|
53 | | -</td> |
54 | | -</tr> |
55 | | - |
56 | | -<tr> |
57 | | -<td id="other_entry"> |
| 57 | +<p class="center_basic"><button id="preview_graph" type="submit">Preview</button></p> |
| 58 | +</div> |
58 | 59 |
|
59 | 60 | <p class="ui_head" onclick="toggle('diagram_options');"><span id="diagram_options_indicator" class="indicator">⇑</span> |
60 | 61 | Diagram options<span id="diagram_options_hint">:</span></p> |
61 | 62 |
|
62 | 63 | <div id="diagram_options" class="form_chunk"> |
63 | 64 | <p class="form_elements1"><strong>Size</strong> (pixels): |
64 | | -<label for="canvas_width">Width =</label> <input type="text" id="canvas_width" size="5" maxlength="6" value="700" onchange="process_sankey();"> |
65 | | -<label for="canvas_height">Height =</label> <input type="text" id="canvas_height" size="5" maxlength="6" value="400" onchange="process_sankey();"> |
| 65 | +<label for="canvas_width">Width =</label> <input type="text" id="canvas_width" size="5" maxlength="6" value="600" onchange="process_sankey();"> |
| 66 | +<label for="canvas_height">Height =</label> <input type="text" id="canvas_height" size="5" maxlength="6" value="500" onchange="process_sankey();"> |
66 | 67 | </p> |
67 | 68 |
|
68 | 69 | <p class="form_elements2"> |
|
82 | 83 | <p class="form_elements1"> |
83 | 84 | <label for="font_size"><strong>Size:</strong></label> |
84 | 85 | <input type="text" id="font_size" size="2" maxlength="4" value="13" onchange="process_sankey();"> <label for="font_size">px</label> |
85 | | -<label for="font_color" class="spaced_label"><strong>Color:</strong></label> |
86 | | -<input type="color" id="font_color" size="7" maxlength="7" value="#000000" onchange="process_sankey();"> |
87 | | -<br /> |
88 | 86 |
|
89 | | -<label for="font_weight"><strong>Weight:</strong></label> <span style="font-weight: lighter;" class="smalllabel">Light</span><input id="font_weight" type="range" min="100" max="700" step="300" value="400" onchange="process_sankey();" class="narrowslider"><span style="font-weight: bolder;" class="smalllabel">Bold</span> |
| 87 | +<strong class="spaced_label">Face:</strong> |
| 88 | +<input name="font_face" type="radio" id="sans_serif" value="sans-serif" checked="checked" onchange="process_sankey();" /><label for="sans_serif" style="font-family: sans-serif;">sans</label> |
| 89 | +<input name="font_face" type="radio" id="serif" value="serif" onchange="process_sankey();" /><label for="serif" style="font-family: serif;">serif</label> |
| 90 | +<input name="font_face" type="radio" id="monospace" value="monospace" onchange="process_sankey();" /><label for="monospace" style="font-family: monospace;">mono</label> |
90 | 91 | </p> |
91 | 92 |
|
92 | 93 | <p class="form_elements2"> |
93 | | -<strong>Units:</strong> <label for="unit_prefix">Prefix =</label> <input type="text" id="unit_prefix" size="3" maxlength="10" onchange="process_sankey();"> |
| 94 | +<label for="font_color"><strong>Color:</strong></label> |
| 95 | +<input type="color" id="font_color" size="7" maxlength="7" value="#000000" onchange="process_sankey();"> |
| 96 | + |
| 97 | +<label for="font_weight" class="spaced_label"><strong>Weight:</strong></label> |
| 98 | +<span style="font-weight: lighter;" class="smalllabel">Light</span><input id="font_weight" type="range" min="100" max="700" step="300" value="400" onchange="process_sankey();" class="narrowslider"><span style="font-weight: bolder;" class="smalllabel">Bold</span><br /> |
| 99 | +</p> |
| 100 | + |
| 101 | +<p class="form_elements1"> |
| 102 | +<strong>Units:</strong> <label for="unit_prefix">Prefix =</label> <input type="text" id="unit_prefix" size="3" maxlength="10" value="$" onchange="process_sankey();"> |
94 | 103 | <label for="unit_suffix">Suffix =</label> <input type="text" id="unit_suffix" size="5" maxlength="10" onchange="process_sankey();"><br /> |
95 | 104 |
|
96 | 105 | <input type="checkbox" id="include_values_in_node_labels" value="1" onchange="process_sankey();" checked="checked"> |
|
120 | 129 | </p> |
121 | 130 |
|
122 | 131 | <p class="form_elements2"> |
123 | | -<label for="default_flow_opacity"><strong>Default Flow Opacity:</strong></label> |
| 132 | +<label for="default_flow_opacity"><strong>Default Opacity:</strong></label> |
124 | 133 | <span class="smalllabel">0.0</span><input id="default_flow_opacity" type="range" min="0" max="1" step="0.1" value="0.4" onchange="process_sankey();" class="narrowslider"><span class="smalllabel">1.0</span> |
125 | 134 | </p> |
126 | 135 | </div> |
|
132 | 141 | <p class="form_elements1"> |
133 | 142 | <strong>Colors:</strong> |
134 | 143 | Use from assortment: |
135 | | -<input name="default_node_colorset" type="radio" id="node_use_set_a" value="A" onchange="process_sankey();" /><label for="node_use_set_a">A</label> |
136 | | -<input name="default_node_colorset" type="radio" id="node_use_set_b" value="B" onchange="process_sankey();" checked="checked" /><label for="node_use_set_b">B</label> |
| 144 | +<input name="default_node_colorset" type="radio" id="node_use_set_a" value="A" onchange="process_sankey();" checked="checked" /><label for="node_use_set_a">A</label> |
| 145 | +<input name="default_node_colorset" type="radio" id="node_use_set_b" value="B" onchange="process_sankey();" /><label for="node_use_set_b">B</label> |
137 | 146 | <input name="default_node_colorset" type="radio" id="node_use_set_c" value="C" onchange="process_sankey();" /><label for="node_use_set_c">C</label><br /> |
138 | 147 | <input name="default_node_colorset" type="radio" id="node_use_color" value="none" onchange="process_sankey();" /><label for="node_use_color">Use one color:</label> |
139 | 148 | <input type="color" id="default_node_color" size="7" maxlength="7" value="#006699" onchange="process_sankey();"><br /> |
|
224 | 233 | </table> |
225 | 234 |
|
226 | 235 | <p id="chart"> |
227 | | -<svg id="the_svg" height="400" width="700" xmlns="http://www.w3.org/2000/svg" version="1.1"></svg> |
| 236 | +<svg id="the_svg" height="500" width="600" xmlns="http://www.w3.org/2000/svg" version="1.1"></svg> |
228 | 237 | </p> |
229 | | -<canvas id="png_preview" height="400" width="700" style="background: #FFFFFF; display:none;"></canvas> |
| 238 | +<canvas id="png_preview" height="500" width="600" style="background: #FFFFFF; display:none;"></canvas> |
230 | 239 | <div id="chartfooter"> |
231 | 240 | </div> |
232 | 241 | </td></tr></table> |
|
0 commit comments