Lines 52-60
Link Here
|
52 |
[% IF ( do_it ) %] |
52 |
[% IF ( do_it ) %] |
53 |
[% FOREACH mainloo IN mainloop %] |
53 |
[% FOREACH mainloo IN mainloop %] |
54 |
<h1>Catalog statistics</h1> |
54 |
<h1>Catalog statistics</h1> |
55 |
<canvas id="catChart" width="1000" height="400"></canvas> |
55 |
<canvas id="catChart" width="1000" height="400"></canvas> |
56 |
<div id="toolbar" class="btn-toolbar"><div class="btn-group"><a id="updateChart" class="btn" href="#">Click to change to <span id="chartType">Line</span> Chart</a></div></div> |
56 |
<div id="toolbar" class="btn-toolbar"><div class="btn-group"><a id="updateChart" class="btn" href="#">Click to change to <span id="chartType">Line</span> Chart</a></div></div> |
57 |
[% IF ( mainloo.loopfilter ) %] |
57 |
[% IF ( mainloo.loopfilter ) %] |
58 |
<p>Filtered on:</p> |
58 |
<p>Filtered on:</p> |
59 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
59 |
[% FOREACH loopfilte IN mainloo.loopfilter %] |
60 |
<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p> |
60 |
<p>[% loopfilte.crit %] =[% loopfilte.filter %]</p> |
Lines 298-305
Link Here
|
298 |
var catChart = new Chart(ctx).Bar( chartData, {}); |
298 |
var catChart = new Chart(ctx).Bar( chartData, {}); |
299 |
|
299 |
|
300 |
$("#updateChart").click(function() { |
300 |
$("#updateChart").click(function() { |
301 |
console.log("Updating Chart: "); |
|
|
302 |
|
303 |
// Replace the chart canvas element |
301 |
// Replace the chart canvas element |
304 |
$('#catChart').replaceWith('<canvas id="catChart" width="1000" height="400"></canvas>'); |
302 |
$('#catChart').replaceWith('<canvas id="catChart" width="1000" height="400"></canvas>'); |
305 |
|
303 |
|