Lines 1-9
Link Here
|
1 |
<div id="makechart"> |
1 |
<div id="makechart"> |
2 |
[% supposed_x = header_row.shift.cell %] |
2 |
[% supposed_x = header_row.shift.cell %] |
3 |
|
3 |
|
4 |
<form> |
4 |
<fieldset class="rows"> |
5 |
<fieldset> |
5 |
<legend>Draw a chart</legend> |
6 |
<div> |
6 |
<ol> |
|
|
7 |
<li> |
7 |
<label for="chart-type">Chart type</label> |
8 |
<label for="chart-type">Chart type</label> |
8 |
<select name="chart-type" id="chart-type"> |
9 |
<select name="chart-type" id="chart-type"> |
9 |
<option value="pie">Pie</option> |
10 |
<option value="pie">Pie</option> |
Lines 15-23
Link Here
|
15 |
<label for="horizontal">Horizontal bar:</label> |
16 |
<label for="horizontal">Horizontal bar:</label> |
16 |
<input id="horizontal" name="column-horizontal" type="checkbox"> |
17 |
<input id="horizontal" name="column-horizontal" type="checkbox"> |
17 |
</div> |
18 |
</div> |
18 |
<div> |
19 |
</li> |
19 |
|
20 |
|
20 |
<div> |
21 |
<li> |
21 |
<label for="x_element">x column:</label> |
22 |
<label for="x_element">x column:</label> |
22 |
<select id="x_element" name="x"> |
23 |
<select id="x_element" name="x"> |
23 |
<option value="[% supposed_x %]" selected>[% supposed_x %]</option> |
24 |
<option value="[% supposed_x %]" selected>[% supposed_x %]</option> |
Lines 25-37
Link Here
|
25 |
<option value="[% header.cell %]">[% header.cell %]</option> |
26 |
<option value="[% header.cell %]">[% header.cell %]</option> |
26 |
[% END %] |
27 |
[% END %] |
27 |
</select> |
28 |
</select> |
28 |
</div> |
29 |
</li> |
29 |
|
30 |
|
30 |
<label for="exclude-last">Exclude last line (Rollup)</label> |
31 |
<label for="exclude-last">Exclude last line (Rollup)</label> |
31 |
<input id="exclude-last" name="chart-exclude-last" type="checkbox"> |
32 |
<input id="exclude-last" name="chart-exclude-last" type="checkbox"> |
32 |
|
33 |
|
33 |
[% column = 1 %] |
34 |
[% column = 1 %] |
34 |
<div> |
35 |
<li> |
35 |
[% FOREACH header IN header_row %] |
36 |
[% FOREACH header IN header_row %] |
36 |
<fieldset class="chart-column-conf" id="column_[% column %]" style="display: inline !important;"> |
37 |
<fieldset class="chart-column-conf" id="column_[% column %]" style="display: inline !important;"> |
37 |
<legend> |
38 |
<legend> |
Lines 41-47
Link Here
|
41 |
</a> |
42 |
</a> |
42 |
</legend> |
43 |
</legend> |
43 |
<div> |
44 |
<div> |
44 |
<label for="y_[% column %]">y:</label> |
45 |
<label for="y_[% column %]" >y:</label> |
45 |
<select id="y_[% column %]" name="y"> |
46 |
<select id="y_[% column %]" name="y"> |
46 |
<option value="[% supposed_x %]" selected>[% supposed_x %]</option> |
47 |
<option value="[% supposed_x %]" selected>[% supposed_x %]</option> |
47 |
[% FOREACH h IN header_row %] |
48 |
[% FOREACH h IN header_row %] |
Lines 76-87
Link Here
|
76 |
</fieldset> |
77 |
</fieldset> |
77 |
[% column = column + 1 %] |
78 |
[% column = column + 1 %] |
78 |
[% END %] |
79 |
[% END %] |
79 |
</div> |
80 |
</li> |
80 |
|
81 |
|
81 |
<div> |
82 |
<li> |
82 |
<button id="draw-chart" type="button">Draw</button> |
83 |
<button id="draw-chart" class="btn">Draw</button> |
83 |
</div> |
84 |
</li> |
84 |
</fieldset> |
85 |
</ol> |
85 |
</form> |
86 |
</fieldset> |
86 |
<div id="chart"></div> |
87 |
<div id="chart"></div> |
87 |
</div> |
88 |
</div> |
88 |
- |
|
|