ndwdgda commited on
Commit
0142d18
·
verified ·
1 Parent(s): 2eeded6

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. index.html +4 -8
  2. script.js +79 -2
index.html CHANGED
@@ -96,9 +96,8 @@
96
  </div>
97
  </div>
98
 
99
- <div class="visual-break">
100
- <img src="assets/automation.png" alt="Automation Wave"
101
- style="width: 100%; height: 100%; object-fit: cover;">
102
  </div>
103
  </div>
104
  </section>
@@ -149,11 +148,8 @@
149
  intervention and aggressive upskilling are required to bridge this gap.</p>
150
  </div>
151
 
152
- <div class="visual-break">
153
- <!-- Placeholder for economic_impact_illustration -->
154
- <div class="img-placeholder" id="economic-placeholder">
155
- <span>Economic Impact Illustration</span>
156
- </div>
157
  </div>
158
  </div>
159
  </section>
 
96
  </div>
97
  </div>
98
 
99
+ <div class="chart-container-wide">
100
+ <canvas id="automationPotentialChart"></canvas>
 
101
  </div>
102
  </div>
103
  </section>
 
148
  intervention and aggressive upskilling are required to bridge this gap.</p>
149
  </div>
150
 
151
+ <div class="chart-container-wide">
152
+ <canvas id="gdpImpactChart"></canvas>
 
 
 
153
  </div>
154
  </div>
155
  </section>
script.js CHANGED
@@ -81,7 +81,50 @@ new Chart(marketShiftCtx, {
81
  }
82
  });
83
 
84
- // 2. Industry Impact Radar Chart
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  const industryRadarCtx = document.getElementById('industryRadarChart').getContext('2d');
86
  new Chart(industryRadarCtx, {
87
  type: 'radar',
@@ -138,7 +181,7 @@ new Chart(industryRadarCtx, {
138
  }
139
  });
140
 
141
- // 3. Productivity vs Wages (Bar/Line Combo)
142
  const productivityCtx = document.getElementById('productivityChart').getContext('2d');
143
  new Chart(productivityCtx, {
144
  type: 'bar',
@@ -188,3 +231,37 @@ new Chart(productivityCtx, {
188
  }
189
  }
190
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
82
  });
83
 
84
+ // 2. Automation Potential Chart (New)
85
+ const automationPotentialCtx = document.getElementById('automationPotentialChart').getContext('2d');
86
+ new Chart(automationPotentialCtx, {
87
+ type: 'bar',
88
+ data: {
89
+ labels: ['Office Support', 'Production', 'Food Service', 'Transportation', 'Sales', 'Management', 'Education'],
90
+ datasets: [{
91
+ label: '% of Tasks Automatable',
92
+ data: [85, 80, 75, 65, 55, 30, 20],
93
+ backgroundColor: [
94
+ 'rgba(239, 68, 68, 0.8)', // High risk
95
+ 'rgba(239, 68, 68, 0.8)',
96
+ 'rgba(239, 68, 68, 0.8)',
97
+ 'rgba(245, 158, 11, 0.8)', // Medium risk
98
+ 'rgba(245, 158, 11, 0.8)',
99
+ 'rgba(16, 185, 129, 0.8)', // Low risk
100
+ 'rgba(16, 185, 129, 0.8)'
101
+ ],
102
+ borderRadius: 6
103
+ }]
104
+ },
105
+ options: {
106
+ responsive: true,
107
+ maintainAspectRatio: false,
108
+ plugins: {
109
+ legend: { display: false },
110
+ title: {
111
+ display: true,
112
+ text: 'Automation Potential by Sector (Current Tech)',
113
+ align: 'start',
114
+ font: { size: 16, weight: '600' }
115
+ }
116
+ },
117
+ scales: {
118
+ y: {
119
+ beginAtZero: true,
120
+ max: 100,
121
+ title: { display: true, text: 'Percentage (%)' }
122
+ }
123
+ }
124
+ }
125
+ });
126
+
127
+ // 3. Industry Impact Radar Chart
128
  const industryRadarCtx = document.getElementById('industryRadarChart').getContext('2d');
129
  new Chart(industryRadarCtx, {
130
  type: 'radar',
 
181
  }
182
  });
183
 
184
+ // 4. Productivity vs Wages (Bar/Line Combo)
185
  const productivityCtx = document.getElementById('productivityChart').getContext('2d');
186
  new Chart(productivityCtx, {
187
  type: 'bar',
 
231
  }
232
  }
233
  });
234
+
235
+ // 5. GDP Impact Chart (New)
236
+ const gdpImpactCtx = document.getElementById('gdpImpactChart').getContext('2d');
237
+ new Chart(gdpImpactCtx, {
238
+ type: 'doughnut',
239
+ data: {
240
+ labels: ['Traditional Growth', 'AI-Driven Productivity', 'New AI Products/Services'],
241
+ datasets: [{
242
+ data: [55, 30, 15],
243
+ backgroundColor: [
244
+ '#9ca3af', // Gray
245
+ '#2563eb', // Blue
246
+ '#10b981' // Green
247
+ ],
248
+ hoverOffset: 4
249
+ }]
250
+ },
251
+ options: {
252
+ responsive: true,
253
+ maintainAspectRatio: false,
254
+ plugins: {
255
+ legend: {
256
+ position: 'right'
257
+ },
258
+ title: {
259
+ display: true,
260
+ text: 'Projected Sources of GDP Growth (2030)',
261
+ align: 'start',
262
+ font: { size: 16, weight: '600' }
263
+ }
264
+ },
265
+ cutout: '60%'
266
+ }
267
+ });