JPLTedCas commited on
Commit
3437071
·
verified ·
1 Parent(s): 9265531

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +95 -0
index.html CHANGED
@@ -135,6 +135,7 @@
135
 
136
  <div class="chart-box">
137
  <canvas id="connectionsChart"></canvas>
 
138
  </div>
139
 
140
 
@@ -142,6 +143,7 @@
142
 
143
  <div class="chart-box">
144
  <canvas id="supportTimeChart"></canvas>
 
145
  </div>
146
 
147
  <!-- <div class="chart-container">
@@ -187,6 +189,8 @@
187
  var markers = [];
188
  var chart1 = null;
189
  var chart2 = null;
 
 
190
 
191
  function updateMarkers() {
192
  var selectedCategory = document.getElementById("category").value;
@@ -228,6 +232,8 @@
228
 
229
  if (chart1) chart1.destroy();
230
  if (chart2) chart2.destroy();
 
 
231
 
232
  var ctx1 = document.getElementById('connectionsChart').getContext('2d');
233
  chart1 = new Chart(ctx1, {
@@ -317,6 +323,95 @@
317
  }
318
  }
319
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
320
  }
321
 
322
  updateMarkers();
 
135
 
136
  <div class="chart-box">
137
  <canvas id="connectionsChart"></canvas>
138
+ <canvas id="webinarChart"></canvas>
139
  </div>
140
 
141
 
 
143
 
144
  <div class="chart-box">
145
  <canvas id="supportTimeChart"></canvas>
146
+ <canvas id="webinarTime"></canvas>
147
  </div>
148
 
149
  <!-- <div class="chart-container">
 
189
  var markers = [];
190
  var chart1 = null;
191
  var chart2 = null;
192
+ var chart3 = null;
193
+ var chart4 = null;
194
 
195
  function updateMarkers() {
196
  var selectedCategory = document.getElementById("category").value;
 
232
 
233
  if (chart1) chart1.destroy();
234
  if (chart2) chart2.destroy();
235
+ if (chart3) chart3.destroy();
236
+ if (chart4) chart4.destroy();
237
 
238
  var ctx1 = document.getElementById('connectionsChart').getContext('2d');
239
  chart1 = new Chart(ctx1, {
 
323
  }
324
  }
325
  });
326
+
327
+ var ctx3 = document.getElementById('webinarChart').getContext('2d');
328
+ chart3 = new Chart(ctx3, {
329
+ type: 'bar',
330
+ data: {
331
+ labels: cityNames,
332
+ datasets: [{
333
+ label: 'Average Monthly Webinar Connections',
334
+ data: avgSupportTimeData,
335
+ backgroundColor: categoryColorsData,
336
+ borderColor: '#333',
337
+ borderWidth: 1,
338
+ borderRadius: 5,
339
+ hoverBackgroundColor: 'rgba(0, 0, 0, 0.2)'
340
+ }]
341
+ },
342
+ options: {
343
+ plugins: {
344
+ legend: { display: false },
345
+ title: {
346
+ display: true,
347
+ text: 'Monthly Webinar Connections',
348
+ font: {
349
+ size: 12
350
+ },
351
+ color: '#333'
352
+ }
353
+ },
354
+ scales: {
355
+ x: {
356
+ ticks: { color: '#333' },
357
+ grid: { display: false }
358
+ },
359
+ y: {
360
+ ticks: { color: '#333' },
361
+ grid: { color: 'rgba(0,0,0,0.1)' }
362
+ }
363
+ },
364
+ animation: {
365
+ duration: 1000,
366
+ easing: 'easeInOutBounce'
367
+ }
368
+ }
369
+ });
370
+
371
+ var ctx4 = document.getElementById('webinarTime').getContext('2d');
372
+ chart4 = new Chart(ctx4, {
373
+ type: 'bar',
374
+ data: {
375
+ labels: cityNames,
376
+ datasets: [{
377
+ label: 'Average Monthly Webinar Time (hrs)',
378
+ data: avgSupportTimeData,
379
+ backgroundColor: categoryColorsData,
380
+ borderColor: '#333',
381
+ borderWidth: 1,
382
+ borderRadius: 5,
383
+ hoverBackgroundColor: 'rgba(0, 0, 0, 0.2)'
384
+ }]
385
+ },
386
+ options: {
387
+ plugins: {
388
+ legend: { display: false },
389
+ title: {
390
+ display: true,
391
+ text: 'Average Monthly Webinar Time (hrs)',
392
+ font: {
393
+ size: 12
394
+ },
395
+ color: '#333'
396
+ }
397
+ },
398
+ scales: {
399
+ x: {
400
+ ticks: { color: '#333' },
401
+ grid: { display: false }
402
+ },
403
+ y: {
404
+ ticks: { color: '#333' },
405
+ grid: { color: 'rgba(0,0,0,0.1)' }
406
+ }
407
+ },
408
+ animation: {
409
+ duration: 1000,
410
+ easing: 'easeInOutBounce'
411
+ }
412
+ }
413
+ });
414
+
415
  }
416
 
417
  updateMarkers();