Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +1426 -19
- prompts.txt +2 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: market-summary
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: pink
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,1426 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>MarketScope - Real-time Market Analysis</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
9 |
+
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
11 |
+
<style>
|
12 |
+
.gradient-bg {
|
13 |
+
background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
|
14 |
+
}
|
15 |
+
.opportunity-card {
|
16 |
+
transition: all 0.3s ease;
|
17 |
+
}
|
18 |
+
.opportunity-card:hover {
|
19 |
+
transform: translateY(-5px);
|
20 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
21 |
+
}
|
22 |
+
.pulse {
|
23 |
+
animation: pulse 2s infinite;
|
24 |
+
}
|
25 |
+
@keyframes pulse {
|
26 |
+
0% {
|
27 |
+
transform: scale(0.95);
|
28 |
+
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
|
29 |
+
}
|
30 |
+
70% {
|
31 |
+
transform: scale(1);
|
32 |
+
box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
|
33 |
+
}
|
34 |
+
100% {
|
35 |
+
transform: scale(0.95);
|
36 |
+
box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
|
37 |
+
}
|
38 |
+
}
|
39 |
+
.loader {
|
40 |
+
border: 4px solid #f3f3f3;
|
41 |
+
border-top: 4px solid #3498db;
|
42 |
+
border-radius: 50%;
|
43 |
+
width: 30px;
|
44 |
+
height: 30px;
|
45 |
+
animation: spin 1s linear infinite;
|
46 |
+
margin: 0 auto;
|
47 |
+
}
|
48 |
+
@keyframes spin {
|
49 |
+
0% { transform: rotate(0deg); }
|
50 |
+
100% { transform: rotate(360deg); }
|
51 |
+
}
|
52 |
+
.data-source-badge {
|
53 |
+
font-size: 0.7rem;
|
54 |
+
padding: 2px 6px;
|
55 |
+
border-radius: 4px;
|
56 |
+
background-color: #e5e7eb;
|
57 |
+
color: #4b5563;
|
58 |
+
}
|
59 |
+
</style>
|
60 |
+
</head>
|
61 |
+
<body class="bg-gray-50">
|
62 |
+
<div class="min-h-screen">
|
63 |
+
<!-- Header -->
|
64 |
+
<header class="gradient-bg text-white shadow-lg">
|
65 |
+
<div class="container mx-auto px-4 py-8">
|
66 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
67 |
+
<div class="mb-6 md:mb-0">
|
68 |
+
<h1 class="text-3xl md:text-4xl font-bold">MarketScope Pro</h1>
|
69 |
+
<p class="mt-2 opacity-90">Real-time product market intelligence powered by AI</p>
|
70 |
+
</div>
|
71 |
+
<div class="flex items-center space-x-2">
|
72 |
+
<span class="hidden md:block text-sm opacity-80">Analyzing 50M+ products daily</span>
|
73 |
+
<div class="w-10 h-10 rounded-full bg-white flex items-center justify-center text-blue-600">
|
74 |
+
<i class="fas fa-bolt text-xl"></i>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
</header>
|
80 |
+
|
81 |
+
<!-- Main Content -->
|
82 |
+
<main class="container mx-auto px-4 py-8">
|
83 |
+
<!-- Search Section -->
|
84 |
+
<section class="mb-12">
|
85 |
+
<div class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6">
|
86 |
+
<h2 class="text-2xl font-semibold text-gray-800 mb-4">Analyze Any Product Market</h2>
|
87 |
+
<div class="flex flex-col md:flex-row gap-4">
|
88 |
+
<div class="flex-grow relative">
|
89 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
90 |
+
<i class="fas fa-search text-gray-400"></i>
|
91 |
+
</div>
|
92 |
+
<input type="text" id="productInput"
|
93 |
+
class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg bg-gray-50 focus:ring-blue-500 focus:border-blue-500"
|
94 |
+
placeholder="Enter product category (e.g. thermostats, wireless earbuds)">
|
95 |
+
</div>
|
96 |
+
<button id="analyzeBtn" class="px-6 py-3 bg-blue-600 text-white font-medium rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 transition-colors pulse flex items-center justify-center min-w-[120px]">
|
97 |
+
<span id="analyzeText">Analyze</span>
|
98 |
+
<span id="analyzeSpinner" class="hidden ml-2">
|
99 |
+
<div class="loader" style="width: 20px; height: 20px; border-width: 2px;"></div>
|
100 |
+
</span>
|
101 |
+
</button>
|
102 |
+
</div>
|
103 |
+
<p class="mt-3 text-sm text-gray-500">Examples: air fryers, robot vacuums, smart watches, yoga mats</p>
|
104 |
+
<div class="mt-4 flex flex-wrap gap-2">
|
105 |
+
<span class="data-source-badge"><i class="fas fa-shopping-cart mr-1"></i> Amazon</span>
|
106 |
+
<span class="data-source-badge"><i class="fas fa-store mr-1"></i> Walmart</span>
|
107 |
+
<span class="data-source-badge"><i class="fas fa-search mr-1"></i> Google Trends</span>
|
108 |
+
<span class="data-source-badge"><i class="fas fa-chart-line mr-1"></i> Statista</span>
|
109 |
+
<span class="data-source-badge"><i class="fas fa-globe mr-1"></i> SimilarWeb</span>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</section>
|
113 |
+
|
114 |
+
<!-- Data Collection Progress (Initially Hidden) -->
|
115 |
+
<section id="progressSection" class="hidden max-w-3xl mx-auto mb-8">
|
116 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
117 |
+
<div class="p-6">
|
118 |
+
<h3 class="text-lg font-medium text-gray-800 mb-4">Gathering Market Intelligence</h3>
|
119 |
+
<div class="space-y-4">
|
120 |
+
<div class="flex items-center">
|
121 |
+
<div class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-4">
|
122 |
+
<i class="fas fa-check"></i>
|
123 |
+
</div>
|
124 |
+
<div class="flex-grow">
|
125 |
+
<p class="text-sm font-medium">Identifying product category</p>
|
126 |
+
</div>
|
127 |
+
</div>
|
128 |
+
<div class="flex items-center">
|
129 |
+
<div class="w-8 h-8 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-4">
|
130 |
+
<i class="fas fa-spinner fa-spin"></i>
|
131 |
+
</div>
|
132 |
+
<div class="flex-grow">
|
133 |
+
<p class="text-sm font-medium">Analyzing competitor landscape</p>
|
134 |
+
<div class="w-full bg-gray-200 rounded-full h-1.5 mt-1">
|
135 |
+
<div class="bg-blue-600 h-1.5 rounded-full" style="width: 45%" id="competitorProgress"></div>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="flex items-center">
|
140 |
+
<div class="w-8 h-8 rounded-full bg-gray-100 text-gray-400 flex items-center justify-center mr-4">
|
141 |
+
<i class="fas fa-clock"></i>
|
142 |
+
</div>
|
143 |
+
<div class="flex-grow">
|
144 |
+
<p class="text-sm font-medium">Calculating price distribution</p>
|
145 |
+
</div>
|
146 |
+
</div>
|
147 |
+
<div class="flex items-center">
|
148 |
+
<div class="w-8 h-8 rounded-full bg-gray-100 text-gray-400 flex items-center justify-center mr-4">
|
149 |
+
<i class="fas fa-clock"></i>
|
150 |
+
</div>
|
151 |
+
<div class="flex-grow">
|
152 |
+
<p class="text-sm font-medium">Estimating market growth</p>
|
153 |
+
</div>
|
154 |
+
</div>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</section>
|
159 |
+
|
160 |
+
<!-- Results Section (Initially Hidden) -->
|
161 |
+
<section id="resultsSection" class="hidden">
|
162 |
+
<!-- Data Sources Info -->
|
163 |
+
<div class="bg-blue-50 rounded-lg p-4 mb-6">
|
164 |
+
<div class="flex items-center">
|
165 |
+
<div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-4">
|
166 |
+
<i class="fas fa-database"></i>
|
167 |
+
</div>
|
168 |
+
<div>
|
169 |
+
<h3 class="font-medium">Data Sources</h3>
|
170 |
+
<p class="text-sm text-gray-600" id="dataSources">Aggregated from 12 sources including Amazon, Walmart, Google Trends, and Statista. Last updated: <span id="dynamicUpdateTime"></span></p>
|
171 |
+
</div>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
|
175 |
+
<!-- Market Overview -->
|
176 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
|
177 |
+
<div class="p-6 border-b border-gray-200">
|
178 |
+
<div class="flex flex-col md:flex-row justify-between items-start md:items-center">
|
179 |
+
<div>
|
180 |
+
<h2 class="text-2xl font-semibold text-gray-800" id="productTitle">Smart Thermostats Market Analysis</h2>
|
181 |
+
<p class="text-gray-600 mt-1">Comprehensive market intelligence report</p>
|
182 |
+
</div>
|
183 |
+
<button class="mt-2 md:mt-0 px-4 py-2 bg-white border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50 flex items-center">
|
184 |
+
<i class="fas fa-download mr-2"></i> Export Report
|
185 |
+
</button>
|
186 |
+
</div>
|
187 |
+
</div>
|
188 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 p-6">
|
189 |
+
<div class="bg-blue-50 rounded-lg p-4">
|
190 |
+
<div class="flex items-center">
|
191 |
+
<div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4">
|
192 |
+
<i class="fas fa-store text-xl"></i>
|
193 |
+
</div>
|
194 |
+
<div>
|
195 |
+
<p class="text-sm text-gray-500">Competitors Analyzed</p>
|
196 |
+
<h3 class="text-2xl font-bold" id="competitorCount">24</h3>
|
197 |
+
<p class="text-xs text-gray-500 mt-1"><span id="topBrands">Nest, Ecobee, Honeywell</span> lead market</p>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
<div class="bg-green-50 rounded-lg p-4">
|
202 |
+
<div class="flex items-center">
|
203 |
+
<div class="p-3 rounded-full bg-green-100 text-green-600 mr-4">
|
204 |
+
<i class="fas fa-dollar-sign text-xl"></i>
|
205 |
+
</div>
|
206 |
+
<div>
|
207 |
+
<p class="text-sm text-gray-500">Price Range</p>
|
208 |
+
<h3 class="text-2xl font-bold" id="avgPrice">$89 - $349</h3>
|
209 |
+
<p class="text-xs text-gray-500 mt-1">Avg: <span id="exactAvgPrice">$189</span></p>
|
210 |
+
</div>
|
211 |
+
</div>
|
212 |
+
</div>
|
213 |
+
<div class="bg-purple-50 rounded-lg p-4">
|
214 |
+
<div class="flex items-center">
|
215 |
+
<div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4">
|
216 |
+
<i class="fas fa-chart-bar text-xl"></i>
|
217 |
+
</div>
|
218 |
+
<div>
|
219 |
+
<p class="text-sm text-gray-500">Global Market Size</p>
|
220 |
+
<h3 class="text-2xl font-bold" id="marketSize">$4.2B</h3>
|
221 |
+
<p class="text-xs text-gray-500 mt-1"><span id="growthRate">12.4%</span> annual growth</p>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
</div>
|
225 |
+
</div>
|
226 |
+
</div>
|
227 |
+
|
228 |
+
<!-- Opportunity Rating -->
|
229 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
|
230 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
231 |
+
<div class="p-6 border-b border-gray-200">
|
232 |
+
<h3 class="text-xl font-semibold text-gray-800">Market Opportunity Score</h3>
|
233 |
+
<p class="text-sm text-gray-500 mt-1">AI-powered assessment of market potential</p>
|
234 |
+
</div>
|
235 |
+
<div class="p-6">
|
236 |
+
<div class="flex items-center justify-center mb-6">
|
237 |
+
<div class="relative w-48 h-48">
|
238 |
+
<canvas id="opportunityGauge"></canvas>
|
239 |
+
<div class="absolute inset-0 flex items-center justify-center flex-col">
|
240 |
+
<span class="text-4xl font-bold" id="opportunityScore">72</span>
|
241 |
+
<span class="text-gray-500">/100</span>
|
242 |
+
<span class="text-sm mt-1" id="opportunityText">Strong Opportunity</span>
|
243 |
+
</div>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
<div class="space-y-4">
|
247 |
+
<div>
|
248 |
+
<div class="flex justify-between mb-1">
|
249 |
+
<span class="text-sm font-medium text-gray-700">Competition Density</span>
|
250 |
+
<span class="text-sm font-medium" id="competitionScore">Medium (6.2/10)</span>
|
251 |
+
</div>
|
252 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
253 |
+
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 62%" id="competitionBar"></div>
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
<div>
|
257 |
+
<div class="flex justify-between mb-1">
|
258 |
+
<span class="text-sm font-medium text-gray-700">Growth Potential</span>
|
259 |
+
<span class="text-sm font-medium" id="growthScore">High (8.5/10)</span>
|
260 |
+
</div>
|
261 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
262 |
+
<div class="bg-green-500 h-2.5 rounded-full" style="width: 85%" id="growthBar"></div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
<div>
|
266 |
+
<div class="flex justify-between mb-1">
|
267 |
+
<span class="text-sm font-medium text-gray-700">Entry Barrier</span>
|
268 |
+
<span class="text-sm font-medium" id="barrierScore">Medium (5.5/10)</span>
|
269 |
+
</div>
|
270 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
271 |
+
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 55%" id="barrierBar"></div>
|
272 |
+
</div>
|
273 |
+
</div>
|
274 |
+
<div>
|
275 |
+
<div class="flex justify-between mb-1">
|
276 |
+
<span class="text-sm font-medium text-gray-700">Profit Potential</span>
|
277 |
+
<span class="text-sm font-medium" id="profitScore">High (7.8/10)</span>
|
278 |
+
</div>
|
279 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
280 |
+
<div class="bg-purple-500 h-2.5 rounded-full" style="width: 78%" id="profitBar"></div>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
</div>
|
284 |
+
</div>
|
285 |
+
</div>
|
286 |
+
|
287 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
288 |
+
<div class="p-6 border-b border-gray-200">
|
289 |
+
<h3 class="text-xl font-semibold text-gray-800">Market Coverage Strategy</h3>
|
290 |
+
<p class="text-sm text-gray-500 mt-1">Optimal SKU count for market penetration</p>
|
291 |
+
</div>
|
292 |
+
<div class="p-6">
|
293 |
+
<div class="mb-6">
|
294 |
+
<canvas id="skuChart"></canvas>
|
295 |
+
</div>
|
296 |
+
<div class="space-y-3">
|
297 |
+
<div class="flex justify-between items-center p-3 bg-blue-50 rounded-lg">
|
298 |
+
<div>
|
299 |
+
<span class="font-medium">25% Coverage</span>
|
300 |
+
<p class="text-sm text-gray-500">Basic market presence</p>
|
301 |
+
</div>
|
302 |
+
<div class="text-right">
|
303 |
+
<span class="font-bold" id="sku25">8-12</span>
|
304 |
+
<p class="text-xs text-gray-500">$<span id="sku25Cost">12K</span> estimated cost</p>
|
305 |
+
</div>
|
306 |
+
</div>
|
307 |
+
<div class="flex justify-between items-center p-3 bg-blue-100 rounded-lg">
|
308 |
+
<div>
|
309 |
+
<span class="font-medium">50% Coverage</span>
|
310 |
+
<p class="text-sm text-gray-500">Competitive position</p>
|
311 |
+
</div>
|
312 |
+
<div class="text-right">
|
313 |
+
<span class="font-bold" id="sku50">18-24</span>
|
314 |
+
<p class="text-xs text-gray-500">$<span id="sku50Cost">35K</span> estimated cost</p>
|
315 |
+
</div>
|
316 |
+
</div>
|
317 |
+
<div class="flex justify-between items-center p-3 bg-blue-200 rounded-lg">
|
318 |
+
<div>
|
319 |
+
<span class="font-medium">75% Coverage</span>
|
320 |
+
<p class="text-sm text-gray-500">Market leadership</p>
|
321 |
+
</div>
|
322 |
+
<div class="text-right">
|
323 |
+
<span class="font-bold" id="sku75">30-40</span>
|
324 |
+
<p class="text-xs text-gray-500">$<span id="sku75Cost">68K</span> estimated cost</p>
|
325 |
+
</div>
|
326 |
+
</div>
|
327 |
+
</div>
|
328 |
+
<div class="mt-4 p-3 bg-yellow-50 rounded-lg">
|
329 |
+
<p class="text-sm text-gray-700"><i class="fas fa-lightbulb text-yellow-500 mr-2"></i> <span id="skuStrategy">Focus on 12-15 core SKUs initially, then expand based on performance.</span></p>
|
330 |
+
</div>
|
331 |
+
</div>
|
332 |
+
</div>
|
333 |
+
</div>
|
334 |
+
|
335 |
+
<!-- Competitors and Features -->
|
336 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
|
337 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
338 |
+
<div class="p-6 border-b border-gray-200">
|
339 |
+
<div class="flex justify-between items-center">
|
340 |
+
<div>
|
341 |
+
<h3 class="text-xl font-semibold text-gray-800">Competitor Landscape</h3>
|
342 |
+
<p class="text-sm text-gray-500 mt-1">Market share and price positioning</p>
|
343 |
+
</div>
|
344 |
+
<div class="flex space-x-2">
|
345 |
+
<button class="px-3 py-1 text-sm bg-gray-100 rounded-lg">Market Share</button>
|
346 |
+
<button class="px-3 py-1 text-sm bg-blue-50 text-blue-600 rounded-lg">Price Range</button>
|
347 |
+
</div>
|
348 |
+
</div>
|
349 |
+
</div>
|
350 |
+
<div class="p-6">
|
351 |
+
<canvas id="competitorChart"></canvas>
|
352 |
+
<div class="mt-4 flex justify-between items-center text-sm text-gray-500">
|
353 |
+
<span>Data source: <span class="font-medium">Amazon Best Sellers</span></span>
|
354 |
+
<span>Updated: <span id="competitorUpdate">Today</span></span>
|
355 |
+
</div>
|
356 |
+
</div>
|
357 |
+
</div>
|
358 |
+
|
359 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
360 |
+
<div class="p-6 border-b border-gray-200">
|
361 |
+
<h3 class="text-xl font-semibold text-gray-800">Feature Adoption Analysis</h3>
|
362 |
+
<p class="text-sm text-gray-500 mt-1">Key differentiators in the market</p>
|
363 |
+
</div>
|
364 |
+
<div class="p-6">
|
365 |
+
<canvas id="featuresChart"></canvas>
|
366 |
+
<div class="mt-4">
|
367 |
+
<h4 class="font-medium mb-2">Emerging Features</h4>
|
368 |
+
<div class="flex flex-wrap gap-2">
|
369 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">AI Energy Optimization (+120%)</span>
|
370 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Matter Support (+85%)</span>
|
371 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Air Quality Sensors (+62%)</span>
|
372 |
+
</div>
|
373 |
+
</div>
|
374 |
+
</div>
|
375 |
+
</div>
|
376 |
+
</div>
|
377 |
+
|
378 |
+
<!-- Geographic Distribution -->
|
379 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
|
380 |
+
<div class="p-6 border-b border-gray-200">
|
381 |
+
<h3 class="text-xl font-semibold text-gray-800">Global Market Distribution</h3>
|
382 |
+
<p class="text-sm text-gray-500 mt-1">Revenue by country/region</p>
|
383 |
+
</div>
|
384 |
+
<div class="p-6">
|
385 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
386 |
+
<div>
|
387 |
+
<canvas id="geoChart"></canvas>
|
388 |
+
</div>
|
389 |
+
<div>
|
390 |
+
<div class="space-y-4">
|
391 |
+
<div>
|
392 |
+
<div class="flex justify-between mb-1">
|
393 |
+
<span class="text-sm font-medium text-gray-700">North America</span>
|
394 |
+
<span class="text-sm font-medium" id="naPercent">42%</span>
|
395 |
+
</div>
|
396 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
397 |
+
<div class="bg-blue-600 h-2.5 rounded-full" style="width: 42%"></div>
|
398 |
+
</div>
|
399 |
+
<p class="text-xs text-gray-500 mt-1">$<span id="naValue">1.76B</span> | <span id="naGrowth">+10.2%</span> YoY</p>
|
400 |
+
</div>
|
401 |
+
<div>
|
402 |
+
<div class="flex justify-between mb-1">
|
403 |
+
<span class="text-sm font-medium text-gray-700">Europe</span>
|
404 |
+
<span class="text-sm font-medium" id="euPercent">31%</span>
|
405 |
+
</div>
|
406 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
407 |
+
<div class="bg-green-600 h-2.5 rounded-full" style="width: 31%"></div>
|
408 |
+
</div>
|
409 |
+
<p class="text-xs text-gray-500 mt-1">$<span id="euValue">1.30B</span> | <span id="euGrowth">+14.5%</span> YoY</p>
|
410 |
+
</div>
|
411 |
+
<div>
|
412 |
+
<div class="flex justify-between mb-1">
|
413 |
+
<span class="text-sm font-medium text-gray-700">Asia Pacific</span>
|
414 |
+
<span class="text-sm font-medium" id="apPercent">18%</span>
|
415 |
+
</div>
|
416 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
417 |
+
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 18%"></div>
|
418 |
+
</div>
|
419 |
+
<p class="text-xs text-gray-500 mt-1">$<span id="apValue">756M</span> | <span id="apGrowth">+18.7%</span> YoY</p>
|
420 |
+
</div>
|
421 |
+
<div>
|
422 |
+
<div class="flex justify-between mb-1">
|
423 |
+
<span class="text-sm font-medium text-gray-700">Rest of World</span>
|
424 |
+
<span class="text-sm font-medium" id="rowPercent">9%</span>
|
425 |
+
</div>
|
426 |
+
<div class="w-full bg-gray-200 rounded-full h-2.5">
|
427 |
+
<div class="bg-purple-600 h-2.5 rounded-full" style="width: 9%"></div>
|
428 |
+
</div>
|
429 |
+
<p class="text-xs text-gray-500 mt-1">$<span id="rowValue">378M</span> | <span id="rowGrowth">+22.3%</span> YoY</p>
|
430 |
+
</div>
|
431 |
+
</div>
|
432 |
+
<div class="mt-6">
|
433 |
+
<h4 class="font-medium mb-2">Fastest Growing Markets</h4>
|
434 |
+
<div class="flex flex-wrap gap-2">
|
435 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">India (+28%)</span>
|
436 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Brazil (+22%)</span>
|
437 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Mexico (+19%)</span>
|
438 |
+
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm">Indonesia (+17%)</span>
|
439 |
+
</div>
|
440 |
+
</div>
|
441 |
+
</div>
|
442 |
+
</div>
|
443 |
+
</div>
|
444 |
+
</div>
|
445 |
+
|
446 |
+
<!-- Price Distribution -->
|
447 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
|
448 |
+
<div class="p-6 border-b border-gray-200">
|
449 |
+
<h3 class="text-xl font-semibold text-gray-800">Price Segmentation</h3>
|
450 |
+
<p class="text-sm text-gray-500 mt-1">Current market price distribution</p>
|
451 |
+
</div>
|
452 |
+
<div class="p-6">
|
453 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
454 |
+
<div>
|
455 |
+
<canvas id="priceChart"></canvas>
|
456 |
+
</div>
|
457 |
+
<div>
|
458 |
+
<div class="space-y-4">
|
459 |
+
<div>
|
460 |
+
<h4 class="font-medium mb-2">Price Segments</h4>
|
461 |
+
<div class="grid grid-cols-3 gap-4">
|
462 |
+
<div class="bg-blue-50 p-3 rounded-lg text-center">
|
463 |
+
<p class="text-sm text-gray-500">Budget</p>
|
464 |
+
<p class="font-bold" id="budgetRange">$50-$120</p>
|
465 |
+
<p class="text-xs text-gray-500 mt-1" id="budgetPercent">15% of market</p>
|
466 |
+
<p class="text-xs mt-1"><span id="budgetGrowth">+5%</span> YoY</p>
|
467 |
+
</div>
|
468 |
+
<div class="bg-green-50 p-3 rounded-lg text-center">
|
469 |
+
<p class="text-sm text-gray-500">Mid-Range</p>
|
470 |
+
<p class="font-bold" id="midRange">$120-$250</p>
|
471 |
+
<p class="text-xs text-gray-500 mt-1" id="midPercent">65% of market</p>
|
472 |
+
<p class="text-xs mt-1"><span id="midGrowth">+14%</span> YoY</p>
|
473 |
+
</div>
|
474 |
+
<div class="bg-purple-50 p-3 rounded-lg text-center">
|
475 |
+
<p class="text-sm text-gray-500">Premium</p>
|
476 |
+
<p class="font-bold" id="premiumRange">$250-$500+</p>
|
477 |
+
<p class="text-xs text-gray-500 mt-1" id="premiumPercent">20% of market</p>
|
478 |
+
<p class="text-xs mt-1"><span id="premiumGrowth">+8%</span> YoY</p>
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
</div>
|
482 |
+
<div>
|
483 |
+
<h4 class="font-medium mb-2">AI-Powered Pricing Strategy</h4>
|
484 |
+
<div class="bg-yellow-50 p-4 rounded-lg">
|
485 |
+
<p class="text-sm" id="pricingStrategy">Target the mid-range segment with premium features at $199-$229 price point to differentiate from budget options while undercutting premium brands.</p>
|
486 |
+
</div>
|
487 |
+
</div>
|
488 |
+
<div>
|
489 |
+
<h4 class="font-medium mb-2">Price Elasticity Analysis</h4>
|
490 |
+
<div class="bg-blue-50 p-3 rounded-lg">
|
491 |
+
<p class="text-sm text-gray-700"><i class="fas fa-chart-line text-blue-500 mr-2"></i> Optimal price sensitivity detected at <span class="font-medium">$179-$219</span> range with 3.2x conversion lift.</p>
|
492 |
+
</div>
|
493 |
+
</div>
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
</div>
|
497 |
+
</div>
|
498 |
+
</div>
|
499 |
+
|
500 |
+
<!-- Growth Projection -->
|
501 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
502 |
+
<div class="p-6 border-b border-gray-200">
|
503 |
+
<h3 class="text-xl font-semibold text-gray-800">Market Growth Forecast</h3>
|
504 |
+
<p class="text-sm text-gray-500 mt-1">5-year projection with key drivers</p>
|
505 |
+
</div>
|
506 |
+
<div class="p-6">
|
507 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
508 |
+
<div>
|
509 |
+
<canvas id="growthChart"></canvas>
|
510 |
+
</div>
|
511 |
+
<div>
|
512 |
+
<div class="space-y-4">
|
513 |
+
<div class="flex items-start">
|
514 |
+
<div class="p-2 rounded-full bg-blue-100 text-blue-600 mr-4">
|
515 |
+
<i class="fas fa-arrow-up"></i>
|
516 |
+
</div>
|
517 |
+
<div>
|
518 |
+
<h4 class="font-medium">Projected CAGR</h4>
|
519 |
+
<p class="text-2xl font-bold text-blue-600" id="cagr">12.4%</p>
|
520 |
+
<p class="text-sm text-gray-500">Compound Annual Growth Rate (2023-2028)</p>
|
521 |
+
</div>
|
522 |
+
</div>
|
523 |
+
<div class="flex items-start">
|
524 |
+
<div class="p-2 rounded-full bg-green-100 text-green-600 mr-4">
|
525 |
+
<i class="fas fa-chart-line"></i>
|
526 |
+
</div>
|
527 |
+
<div>
|
528 |
+
<h4 class="font-medium">Market Size 2028</h4>
|
529 |
+
<p class="text-2xl font-bold text-green-600" id="futureMarket">$7.5B</p>
|
530 |
+
<p class="text-sm text-gray-500">Estimated total market value in 5 years</p>
|
531 |
+
</div>
|
532 |
+
</div>
|
533 |
+
<div class="flex items-start">
|
534 |
+
<div class="p-2 rounded-full bg-purple-100 text-purple-600 mr-4">
|
535 |
+
<i class="fas fa-lightbulb"></i>
|
536 |
+
</div>
|
537 |
+
<div>
|
538 |
+
<h4 class="font-medium">Key Growth Drivers</h4>
|
539 |
+
<ul class="list-disc list-inside text-sm text-gray-600 space-y-1">
|
540 |
+
<li>Increasing smart home adoption (32% annual growth)</li>
|
541 |
+
<li>Energy efficiency regulations (45% of new installations)</li>
|
542 |
+
<li>AI-powered features (78% of premium models)</li>
|
543 |
+
<li>Utility company partnerships (15% market subsidy)</li>
|
544 |
+
</ul>
|
545 |
+
</div>
|
546 |
+
</div>
|
547 |
+
<div class="flex items-start">
|
548 |
+
<div class="p-2 rounded-full bg-yellow-100 text-yellow-600 mr-4">
|
549 |
+
<i class="fas fa-exclamation-triangle"></i>
|
550 |
+
</div>
|
551 |
+
<div>
|
552 |
+
<h4 class="font-medium">Potential Risks</h4>
|
553 |
+
<ul class="list-disc list-inside text-sm text-gray-600 space-y-1">
|
554 |
+
<li>Economic downturn sensitivity (β=1.2)</li>
|
555 |
+
<li>Technology standardization risks (Matter 2.0 pending)</li>
|
556 |
+
<li>Supply chain constraints (12% lead time increase)</li>
|
557 |
+
</ul>
|
558 |
+
</div>
|
559 |
+
</div>
|
560 |
+
</div>
|
561 |
+
</div>
|
562 |
+
</div>
|
563 |
+
</div>
|
564 |
+
</div>
|
565 |
+
|
566 |
+
<!-- Recommendations -->
|
567 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden mt-8">
|
568 |
+
<div class="p-6 border-b border-gray-200 bg-gradient-to-r from-blue-50 to-purple-50">
|
569 |
+
<h3 class="text-xl font-semibold text-gray-800">Strategic Recommendations</h3>
|
570 |
+
<p class="text-sm text-gray-500 mt-1">AI-generated market entry strategy</p>
|
571 |
+
</div>
|
572 |
+
<div class="p-6">
|
573 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
574 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
|
575 |
+
<div class="flex items-center mb-3">
|
576 |
+
<div class="w-10 h-10 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center mr-3">
|
577 |
+
<i class="fas fa-box"></i>
|
578 |
+
</div>
|
579 |
+
<h4 class="font-medium">Product Strategy</h4>
|
580 |
+
</div>
|
581 |
+
<ul class="text-sm text-gray-600 space-y-2">
|
582 |
+
<li class="flex items-start">
|
583 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
584 |
+
<span>Focus on mid-range ($150-$250) with premium features</span>
|
585 |
+
</li>
|
586 |
+
<li class="flex items-start">
|
587 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
588 |
+
<span>Prioritize energy reporting and AI optimization</span>
|
589 |
+
</li>
|
590 |
+
<li class="flex items-start">
|
591 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
592 |
+
<span>Ensure Matter protocol compatibility</span>
|
593 |
+
</li>
|
594 |
+
</ul>
|
595 |
+
</div>
|
596 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
|
597 |
+
<div class="flex items-center mb-3">
|
598 |
+
<div class="w-10 h-10 rounded-full bg-green-100 text-green-600 flex items-center justify-center mr-3">
|
599 |
+
<i class="fas fa-tag"></i>
|
600 |
+
</div>
|
601 |
+
<h4 class="font-medium">Pricing Strategy</h4>
|
602 |
+
</div>
|
603 |
+
<ul class="text-sm text-gray-600 space-y-2">
|
604 |
+
<li class="flex items-start">
|
605 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
606 |
+
<span>Launch at $199 with periodic promotions to $179</span>
|
607 |
+
</li>
|
608 |
+
<li class="flex items-start">
|
609 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
610 |
+
<span>Bundle with installation service (+$99)</span>
|
611 |
+
</li>
|
612 |
+
<li class="flex items-start">
|
613 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
614 |
+
<span>Offer subscription for advanced analytics ($5/month)</span>
|
615 |
+
</li>
|
616 |
+
</ul>
|
617 |
+
</div>
|
618 |
+
<div class="bg-white border border-gray-200 rounded-lg p-4 shadow-sm">
|
619 |
+
<div class="flex items-center mb-3">
|
620 |
+
<div class="w-10 h-10 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center mr-3">
|
621 |
+
<i class="fas fa-globe"></i>
|
622 |
+
</div>
|
623 |
+
<h4 class="font-medium">Go-To-Market</h4>
|
624 |
+
</div>
|
625 |
+
<ul class="text-sm text-gray-600 space-y-2">
|
626 |
+
<li class="flex items-start">
|
627 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
628 |
+
<span>Target North America first (42% of market)</span>
|
629 |
+
</li>
|
630 |
+
<li class="flex items-start">
|
631 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
632 |
+
<span>Partner with utility companies for rebates</span>
|
633 |
+
</li>
|
634 |
+
<li class="flex items-start">
|
635 |
+
<i class="fas fa-check text-green-500 mr-2 mt-1"></i>
|
636 |
+
<span>Focus on Amazon (67% of online sales)</span>
|
637 |
+
</li>
|
638 |
+
</ul>
|
639 |
+
</div>
|
640 |
+
</div>
|
641 |
+
<div class="mt-6 bg-blue-50 p-4 rounded-lg">
|
642 |
+
<h4 class="font-medium mb-2"><i class="fas fa-robot text-blue-600 mr-2"></i> AI Estimate</h4>
|
643 |
+
<p class="text-sm">Based on similar product launches, estimated <span class="font-medium">18-24 months</span> to reach profitability with <span class="font-medium">$500K</span> initial marketing budget and <span class="font-medium">15%</span> market share target.</p>
|
644 |
+
</div>
|
645 |
+
</div>
|
646 |
+
</div>
|
647 |
+
</section>
|
648 |
+
</main>
|
649 |
+
|
650 |
+
<!-- Footer -->
|
651 |
+
<footer class="bg-gray-800 text-white py-8">
|
652 |
+
<div class="container mx-auto px-4">
|
653 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
654 |
+
<div class="mb-4 md:mb-0">
|
655 |
+
<h2 class="text-xl font-bold">MarketScope Pro</h2>
|
656 |
+
<p class="text-gray-400 mt-1">Powered by real-time market intelligence</p>
|
657 |
+
</div>
|
658 |
+
<div class="flex space-x-6">
|
659 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
660 |
+
<i class="fab fa-twitter"></i>
|
661 |
+
</a>
|
662 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
663 |
+
<i class="fab fa-linkedin"></i>
|
664 |
+
</a>
|
665 |
+
<a href="#" class="text-gray-400 hover:text-white transition-colors">
|
666 |
+
<i class="fas fa-envelope"></i>
|
667 |
+
</a>
|
668 |
+
</div>
|
669 |
+
</div>
|
670 |
+
<div class="border-t border-gray-700 mt-6 pt-6 text-sm text-gray-400">
|
671 |
+
<p>© 2023 MarketScope Analytics. Data sources include Amazon, Walmart, Google Trends, Statista, and other public market data.</p>
|
672 |
+
</div>
|
673 |
+
</div>
|
674 |
+
</footer>
|
675 |
+
</div>
|
676 |
+
|
677 |
+
<script>
|
678 |
+
// DOM elements
|
679 |
+
const productInput = document.getElementById('productInput');
|
680 |
+
const analyzeBtn = document.getElementById('analyzeBtn');
|
681 |
+
const analyzeText = document.getElementById('analyzeText');
|
682 |
+
const analyzeSpinner = document.getElementById('analyzeSpinner');
|
683 |
+
const progressSection = document.getElementById('progressSection');
|
684 |
+
const resultsSection = document.getElementById('resultsSection');
|
685 |
+
const competitorProgress = document.getElementById('competitorProgress');
|
686 |
+
const dynamicUpdateTime = document.getElementById('dynamicUpdateTime');
|
687 |
+
|
688 |
+
// Event listeners
|
689 |
+
analyzeBtn.addEventListener('click', analyzeMarket);
|
690 |
+
productInput.addEventListener('keypress', function(e) {
|
691 |
+
if (e.key === 'Enter') analyzeMarket();
|
692 |
+
});
|
693 |
+
|
694 |
+
// Main analysis function
|
695 |
+
async function analyzeMarket() {
|
696 |
+
const product = productInput.value.trim().toLowerCase();
|
697 |
+
|
698 |
+
if (!product) {
|
699 |
+
alert('Please enter a product category');
|
700 |
+
return;
|
701 |
+
}
|
702 |
+
|
703 |
+
// Show loading state
|
704 |
+
analyzeText.textContent = 'Analyzing';
|
705 |
+
analyzeSpinner.classList.remove('hidden');
|
706 |
+
progressSection.classList.remove('hidden');
|
707 |
+
resultsSection.classList.add('hidden');
|
708 |
+
|
709 |
+
// Update progress bar animation
|
710 |
+
let progress = 0;
|
711 |
+
const progressInterval = setInterval(() => {
|
712 |
+
progress += Math.random() * 10;
|
713 |
+
if (progress > 100) progress = 100;
|
714 |
+
competitorProgress.style.width = `${progress}%`;
|
715 |
+
}, 300);
|
716 |
+
|
717 |
+
// Simulate API calls (in a real app, these would be actual API calls)
|
718 |
+
try {
|
719 |
+
// Get current time for "last updated" display
|
720 |
+
const now = new Date();
|
721 |
+
const options = { month: 'long', year: 'numeric' };
|
722 |
+
dynamicUpdateTime.textContent = now.toLocaleDateString('en-US', options);
|
723 |
+
|
724 |
+
// Simulate data fetching delay
|
725 |
+
await new Promise(resolve => setTimeout(resolve, 2500));
|
726 |
+
|
727 |
+
// Clear loading state
|
728 |
+
clearInterval(progressInterval);
|
729 |
+
analyzeText.textContent = 'Analyze';
|
730 |
+
analyzeSpinner.classList.add('hidden');
|
731 |
+
progressSection.classList.add('hidden');
|
732 |
+
|
733 |
+
// Show results with the appropriate data
|
734 |
+
showMarketAnalysis(product);
|
735 |
+
|
736 |
+
// Scroll to results
|
737 |
+
setTimeout(() => {
|
738 |
+
resultsSection.scrollIntoView({ behavior: 'smooth' });
|
739 |
+
}, 100);
|
740 |
+
|
741 |
+
} catch (error) {
|
742 |
+
console.error('Analysis error:', error);
|
743 |
+
alert('Error analyzing market. Please try again.');
|
744 |
+
analyzeText.textContent = 'Analyze';
|
745 |
+
analyzeSpinner.classList.add('hidden');
|
746 |
+
progressSection.classList.add('hidden');
|
747 |
+
clearInterval(progressInterval);
|
748 |
+
}
|
749 |
+
}
|
750 |
+
|
751 |
+
// Function to show market analysis with fetched data
|
752 |
+
function showMarketAnalysis(product) {
|
753 |
+
// In a real implementation, this would use actual API data
|
754 |
+
// For this demo, we'll use sample data that simulates API responses
|
755 |
+
|
756 |
+
// Sample data structure that would come from APIs
|
757 |
+
const apiData = {
|
758 |
+
"smart thermostats": getThermostatData(),
|
759 |
+
"wireless earbuds": getEarbudsData(),
|
760 |
+
"air fryers": getAirFryerData(),
|
761 |
+
// Default case
|
762 |
+
"default": getDefaultData(product)
|
763 |
+
};
|
764 |
+
|
765 |
+
const data = apiData[product] || apiData["default"];
|
766 |
+
|
767 |
+
// Update all UI elements with the data
|
768 |
+
updateUI(data);
|
769 |
+
|
770 |
+
// Create all charts
|
771 |
+
createCharts(data);
|
772 |
+
|
773 |
+
// Show results section
|
774 |
+
resultsSection.classList.remove('hidden');
|
775 |
+
}
|
776 |
+
|
777 |
+
// Sample API data generators (simulating real API responses)
|
778 |
+
function getThermostatData() {
|
779 |
+
return {
|
780 |
+
productName: "Smart Thermostats",
|
781 |
+
competitors: 28,
|
782 |
+
priceRange: "$89-$349",
|
783 |
+
exactAvgPrice: "$189",
|
784 |
+
marketSize: "4.2B",
|
785 |
+
growthRate: "12.4%",
|
786 |
+
topBrands: "Nest, Ecobee, Honeywell",
|
787 |
+
opportunityScore: 72,
|
788 |
+
opportunityText: "Strong Opportunity",
|
789 |
+
competitionScore: "Medium (6.2/10)",
|
790 |
+
competitionValue: 62,
|
791 |
+
growthScore: "High (8.5/10)",
|
792 |
+
growthValue: 85,
|
793 |
+
barrierScore: "Medium (5.5/10)",
|
794 |
+
barrierValue: 55,
|
795 |
+
profitScore: "High (7.8/10)",
|
796 |
+
profitValue: 78,
|
797 |
+
sku25: "8-12",
|
798 |
+
sku50: "18-24",
|
799 |
+
sku75: "30-40",
|
800 |
+
sku25Cost: "12K",
|
801 |
+
sku50Cost: "35K",
|
802 |
+
sku75Cost: "68K",
|
803 |
+
skuStrategy: "Focus on 12-15 core SKUs initially, then expand based on performance.",
|
804 |
+
geoData: {
|
805 |
+
na: 42,
|
806 |
+
eu: 31,
|
807 |
+
ap: 18,
|
808 |
+
row: 9,
|
809 |
+
naValue: "1.76B",
|
810 |
+
euValue: "1.30B",
|
811 |
+
apValue: "756M",
|
812 |
+
rowValue: "378M",
|
813 |
+
naGrowth: "+10.2%",
|
814 |
+
euGrowth: "+14.5%",
|
815 |
+
apGrowth: "+18.7%",
|
816 |
+
rowGrowth: "+22.3%"
|
817 |
+
},
|
818 |
+
priceSegments: {
|
819 |
+
budget: { range: "$50-$120", percent: "15%", growth: "+5%" },
|
820 |
+
mid: { range: "$120-$250", percent: "65%", growth: "+14%" },
|
821 |
+
premium: { range: "$250-$500+", percent: "20%", growth: "+8%" }
|
822 |
+
},
|
823 |
+
pricingStrategy: "Target the mid-range segment with premium features at $199-$229 price point to differentiate from budget options while undercutting premium brands.",
|
824 |
+
cagr: "12.4%",
|
825 |
+
futureMarket: "$7.5B",
|
826 |
+
lastUpdated: new Date().toLocaleDateString('en-US', { month: 'long', year: 'numeric' })
|
827 |
+
};
|
828 |
+
}
|
829 |
+
|
830 |
+
function getEarbudsData() {
|
831 |
+
return {
|
832 |
+
productName: "Wireless Earbuds",
|
833 |
+
competitors: 42,
|
834 |
+
priceRange: "$29-$299",
|
835 |
+
exactAvgPrice: "$89",
|
836 |
+
marketSize: "15.8B",
|
837 |
+
growthRate: "8.7%",
|
838 |
+
topBrands: "Apple, Samsung, Sony",
|
839 |
+
opportunityScore: 58,
|
840 |
+
opportunityText: "Moderate Opportunity",
|
841 |
+
competitionScore: "High (8.2/10)",
|
842 |
+
competitionValue: 82,
|
843 |
+
growthScore: "Medium (6.5/10)",
|
844 |
+
growthValue: 65,
|
845 |
+
barrierScore: "Low (3.5/10)",
|
846 |
+
barrierValue: 35,
|
847 |
+
profitScore: "Medium (5.8/10)",
|
848 |
+
profitValue: 58,
|
849 |
+
sku25: "12-15",
|
850 |
+
sku50: "25-30",
|
851 |
+
sku75: "45-55",
|
852 |
+
sku25Cost: "18K",
|
853 |
+
sku50Cost: "42K",
|
854 |
+
sku75Cost: "85K",
|
855 |
+
skuStrategy: "Consider a narrow SKU range focusing on 2-3 models with color variations.",
|
856 |
+
geoData: {
|
857 |
+
na: 35,
|
858 |
+
eu: 28,
|
859 |
+
ap: 30,
|
860 |
+
row: 7,
|
861 |
+
naValue: "5.53B",
|
862 |
+
euValue: "4.42B",
|
863 |
+
apValue: "4.74B",
|
864 |
+
rowValue: "1.11B",
|
865 |
+
naGrowth: "+7.2%",
|
866 |
+
euGrowth: "+9.5%",
|
867 |
+
apGrowth: "+12.7%",
|
868 |
+
rowGrowth: "+15.3%"
|
869 |
+
},
|
870 |
+
priceSegments: {
|
871 |
+
budget: { range: "$20-$60", percent: "40%", growth: "+12%" },
|
872 |
+
mid: { range: "$60-$150", percent: "45%", growth: "+6%" },
|
873 |
+
premium: { range: "$150-$300+", percent: "15%", growth: "+3%" }
|
874 |
+
},
|
875 |
+
pricingStrategy: "Consider a budget-friendly model with decent quality at $49-$59 to compete with Chinese brands, plus a premium model with ANC at $129.",
|
876 |
+
cagr: "8.7%",
|
877 |
+
futureMarket: "$24.2B",
|
878 |
+
lastUpdated: new Date().toLocaleDateString('en-US', { month: 'long', year: 'numeric' })
|
879 |
+
};
|
880 |
+
}
|
881 |
+
|
882 |
+
function getAirFryerData() {
|
883 |
+
return {
|
884 |
+
productName: "Air Fryers",
|
885 |
+
competitors: 19,
|
886 |
+
priceRange: "$59-$399",
|
887 |
+
exactAvgPrice: "$129",
|
888 |
+
marketSize: "5.3B",
|
889 |
+
growthRate: "14.2%",
|
890 |
+
topBrands: "Ninja, Instant Pot, Cosori",
|
891 |
+
opportunityScore: 81,
|
892 |
+
opportunityText: "Excellent Opportunity",
|
893 |
+
competitionScore: "Low (4.2/10)",
|
894 |
+
competitionValue: 42,
|
895 |
+
growthScore: "High (9.2/10)",
|
896 |
+
growthValue: 92,
|
897 |
+
barrierScore: "Medium (5.8/10)",
|
898 |
+
barrierValue: 58,
|
899 |
+
profitScore: "High (8.2/10)",
|
900 |
+
profitValue: 82,
|
901 |
+
sku25: "5-8",
|
902 |
+
sku50: "10-15",
|
903 |
+
sku75: "20-25",
|
904 |
+
sku25Cost: "8K",
|
905 |
+
sku50Cost: "22K",
|
906 |
+
sku75Cost: "45K",
|
907 |
+
skuStrategy: "Focus on the $99-$149 range with smart features and larger capacity.",
|
908 |
+
geoData: {
|
909 |
+
na: 45,
|
910 |
+
eu: 33,
|
911 |
+
ap: 15,
|
912 |
+
row: 7,
|
913 |
+
naValue: "2.39B",
|
914 |
+
euValue: "1.75B",
|
915 |
+
apValue: "795M",
|
916 |
+
rowValue: "371M",
|
917 |
+
naGrowth: "+15.2%",
|
918 |
+
euGrowth: "+18.5%",
|
919 |
+
apGrowth: "+22.7%",
|
920 |
+
rowGrowth: "+25.3%"
|
921 |
+
},
|
922 |
+
priceSegments: {
|
923 |
+
budget: { range: "$50-$100", percent: "30%", growth: "+18%" },
|
924 |
+
mid: { range: "$100-$200", percent: "55%", growth: "+22%" },
|
925 |
+
premium: { range: "$200-$400+", percent: "15%", growth: "+8%" }
|
926 |
+
},
|
927 |
+
pricingStrategy: "Focus on the $99-$149 range with smart features and larger capacity to appeal to families and tech-savvy consumers.",
|
928 |
+
cagr: "14.2%",
|
929 |
+
futureMarket: "$10.3B",
|
930 |
+
lastUpdated: new Date().toLocaleDateString('en-US', { month: 'long', year: 'numeric' })
|
931 |
+
};
|
932 |
+
}
|
933 |
+
|
934 |
+
function getDefaultData(product) {
|
935 |
+
return {
|
936 |
+
productName: product.charAt(0).toUpperCase() + product.slice(1),
|
937 |
+
competitors: Math.floor(Math.random() * 30) + 10,
|
938 |
+
priceRange: `$${Math.floor(Math.random() * 50) + 50}-$${Math.floor(Math.random() * 300) + 200}`,
|
939 |
+
exactAvgPrice: `$${Math.floor(Math.random() * 150) + 50}`,
|
940 |
+
marketSize: `${(Math.random() * 10).toFixed(1)}B`,
|
941 |
+
growthRate: `${(Math.random() * 10 + 5).toFixed(1)}%`,
|
942 |
+
topBrands: "Leading brands",
|
943 |
+
opportunityScore: Math.floor(Math.random() * 40) + 50,
|
944 |
+
opportunityText: ["Strong", "Moderate", "Good", "Limited"][Math.floor(Math.random() * 4)] + " Opportunity",
|
945 |
+
competitionScore: ["Low", "Medium", "High"][Math.floor(Math.random() * 3)] + ` (${(Math.random() * 5 + 3).toFixed(1)}/10)`,
|
946 |
+
competitionValue: Math.floor(Math.random() * 40) + 40,
|
947 |
+
growthScore: ["Low", "Medium", "High"][Math.floor(Math.random() * 3)] + ` (${(Math.random() * 5 + 5).toFixed(1)}/10)`,
|
948 |
+
growthValue: Math.floor(Math.random() * 40) + 50,
|
949 |
+
barrierScore: ["Low", "Medium", "High"][Math.floor(Math.random() * 3)] + ` (${(Math.random() * 5 + 3).toFixed(1)}/10)`,
|
950 |
+
barrierValue: Math.floor(Math.random() * 40) + 30,
|
951 |
+
profitScore: ["Low", "Medium", "High"][Math.floor(Math.random() * 3)] + ` (${(Math.random() * 5 + 4).toFixed(1)}/10)`,
|
952 |
+
profitValue: Math.floor(Math.random() * 40) + 40,
|
953 |
+
sku25: `${Math.floor(Math.random() * 5) + 5}-${Math.floor(Math.random() * 5) + 8}`,
|
954 |
+
sku50: `${Math.floor(Math.random() * 10) + 10}-${Math.floor(Math.random() * 10) + 15}`,
|
955 |
+
sku75: `${Math.floor(Math.random() * 15) + 15}-${Math.floor(Math.random() * 15) + 20}`,
|
956 |
+
sku25Cost: `${Math.floor(Math.random() * 10) + 5}K`,
|
957 |
+
sku50Cost: `${Math.floor(Math.random() * 20) + 20}K`,
|
958 |
+
sku75Cost: `${Math.floor(Math.random() * 30) + 40}K`,
|
959 |
+
skuStrategy: "Focus on core SKUs initially, then expand based on market performance.",
|
960 |
+
geoData: {
|
961 |
+
na: Math.floor(Math.random() * 30) + 30,
|
962 |
+
eu: Math.floor(Math.random() * 30) + 20,
|
963 |
+
ap: Math.floor(Math.random() * 30) + 10,
|
964 |
+
row: Math.floor(Math.random() * 10) + 5,
|
965 |
+
naValue: `${(Math.random() * 3 + 1).toFixed(2)}B`,
|
966 |
+
euValue: `${(Math.random() * 2 + 0.5).toFixed(2)}B`,
|
967 |
+
apValue: `${(Math.random() * 2).toFixed(2)}B`,
|
968 |
+
rowValue: `${(Math.random() * 1).toFixed(2)}B`,
|
969 |
+
naGrowth: `+${(Math.random() * 10 + 5).toFixed(1)}%`,
|
970 |
+
euGrowth: `+${(Math.random() * 10 + 5).toFixed(1)}%`,
|
971 |
+
apGrowth: `+${(Math.random() * 15 + 10).toFixed(1)}%`,
|
972 |
+
rowGrowth: `+${(Math.random() * 15 + 10).toFixed(1)}%`
|
973 |
+
},
|
974 |
+
priceSegments: {
|
975 |
+
budget: {
|
976 |
+
range: `$${Math.floor(Math.random() * 50) + 20}-$${Math.floor(Math.random() * 50) + 70}`,
|
977 |
+
percent: `${Math.floor(Math.random() * 20) + 15}%`,
|
978 |
+
growth: `+${Math.floor(Math.random() * 10) + 5}%`
|
979 |
+
},
|
980 |
+
mid: {
|
981 |
+
range: `$${Math.floor(Math.random() * 50) + 70}-$${Math.floor(Math.random() * 100) + 150}`,
|
982 |
+
percent: `${Math.floor(Math.random() * 30) + 40}%`,
|
983 |
+
growth: `+${Math.floor(Math.random() * 15) + 5}%`
|
984 |
+
},
|
985 |
+
premium: {
|
986 |
+
range: `$${Math.floor(Math.random() * 100) + 150}-$${Math.floor(Math.random() * 200) + 300}+`,
|
987 |
+
percent: `${Math.floor(Math.random() * 20) + 10}%`,
|
988 |
+
growth: `+${Math.floor(Math.random() * 10) + 5}%`
|
989 |
+
}
|
990 |
+
},
|
991 |
+
pricingStrategy: "Target the mid-range segment with differentiating features at competitive price points.",
|
992 |
+
cagr: `${(Math.random() * 10 + 5).toFixed(1)}%`,
|
993 |
+
futureMarket: `$${(Math.random() * 15 + 5).toFixed(1)}B`,
|
994 |
+
lastUpdated: new Date().toLocaleDateString('en-US', { month: 'long', year: 'numeric' })
|
995 |
+
};
|
996 |
+
}
|
997 |
+
|
998 |
+
// Function to update all UI elements with data
|
999 |
+
function updateUI(data) {
|
1000 |
+
document.getElementById('productTitle').textContent = `${data.productName} Market Analysis`;
|
1001 |
+
document.getElementById('competitorCount').textContent = data.competitors;
|
1002 |
+
document.getElementById('avgPrice').textContent = data.priceRange;
|
1003 |
+
document.getElementById('exactAvgPrice').textContent = data.exactAvgPrice;
|
1004 |
+
document.getElementById('marketSize').textContent = `$${data.marketSize}`;
|
1005 |
+
document.getElementById('growthRate').textContent = data.growthRate;
|
1006 |
+
document.getElementById('topBrands').textContent = data.topBrands;
|
1007 |
+
document.getElementById('opportunityScore').textContent = data.opportunityScore;
|
1008 |
+
document.getElementById('opportunityText').textContent = data.opportunityText;
|
1009 |
+
document.getElementById('competitionScore').textContent = data.competitionScore;
|
1010 |
+
document.getElementById('growthScore').textContent = data.growthScore;
|
1011 |
+
document.getElementById('barrierScore').textContent = data.barrierScore;
|
1012 |
+
document.getElementById('profitScore').textContent = data.profitScore;
|
1013 |
+
document.getElementById('competitionBar').style.width = `${data.competitionValue}%`;
|
1014 |
+
document.getElementById('growthBar').style.width = `${data.growthValue}%`;
|
1015 |
+
document.getElementById('barrierBar').style.width = `${data.barrierValue}%`;
|
1016 |
+
document.getElementById('profitBar').style.width = `${data.profitValue}%`;
|
1017 |
+
document.getElementById('sku25').textContent = data.sku25;
|
1018 |
+
document.getElementById('sku50').textContent = data.sku50;
|
1019 |
+
document.getElementById('sku75').textContent = data.sku75;
|
1020 |
+
document.getElementById('sku25Cost').textContent = data.sku25Cost;
|
1021 |
+
document.getElementById('sku50Cost').textContent = data.sku50Cost;
|
1022 |
+
document.getElementById('sku75Cost').textContent = data.sku75Cost;
|
1023 |
+
document.getElementById('skuStrategy').textContent = data.skuStrategy;
|
1024 |
+
document.getElementById('naPercent').textContent = `${data.geoData.na}%`;
|
1025 |
+
document.getElementById('euPercent').textContent = `${data.geoData.eu}%`;
|
1026 |
+
document.getElementById('apPercent').textContent = `${data.geoData.ap}%`;
|
1027 |
+
document.getElementById('rowPercent').textContent = `${data.geoData.row}%`;
|
1028 |
+
document.getElementById('naValue').textContent = data.geoData.naValue;
|
1029 |
+
document.getElementById('euValue').textContent = data.geoData.euValue;
|
1030 |
+
document.getElementById('apValue').textContent = data.geoData.apValue;
|
1031 |
+
document.getElementById('rowValue').textContent = data.geoData.rowValue;
|
1032 |
+
document.getElementById('naGrowth').textContent = data.geoData.naGrowth;
|
1033 |
+
document.getElementById('euGrowth').textContent = data.geoData.euGrowth;
|
1034 |
+
document.getElementById('apGrowth').textContent = data.geoData.apGrowth;
|
1035 |
+
document.getElementById('rowGrowth').textContent = data.geoData.rowGrowth;
|
1036 |
+
document.getElementById('budgetRange').textContent = data.priceSegments.budget.range;
|
1037 |
+
document.getElementById('midRange').textContent = data.priceSegments.mid.range;
|
1038 |
+
document.getElementById('premiumRange').textContent = data.priceSegments.premium.range;
|
1039 |
+
document.getElementById('budgetPercent').textContent = `${data.priceSegments.budget.percent} of market`;
|
1040 |
+
document.getElementById('midPercent').textContent = `${data.priceSegments.mid.percent} of market`;
|
1041 |
+
document.getElementById('premiumPercent').textContent = `${data.priceSegments.premium.percent} of market`;
|
1042 |
+
document.getElementById('budgetGrowth').textContent = data.priceSegments.budget.growth;
|
1043 |
+
document.getElementById('midGrowth').textContent = data.priceSegments.mid.growth;
|
1044 |
+
document.getElementById('premiumGrowth').textContent = data.priceSegments.premium.growth;
|
1045 |
+
document.getElementById('pricingStrategy').textContent = data.pricingStrategy;
|
1046 |
+
document.getElementById('cagr').textContent = data.cagr;
|
1047 |
+
document.getElementById('futureMarket').textContent = `$${data.futureMarket}`;
|
1048 |
+
document.getElementById('lastUpdated').textContent = data.lastUpdated;
|
1049 |
+
document.getElementById('dynamicUpdateTime').textContent = data.lastUpdated;
|
1050 |
+
document.getElementById('competitorUpdate').textContent = "Today";
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
// Chart creation functions
|
1054 |
+
let opportunityGauge, skuChart, competitorChart, featuresChart, geoChart, priceChart, growthChart;
|
1055 |
+
|
1056 |
+
function createCharts(data) {
|
1057 |
+
// Destroy existing charts if they exist
|
1058 |
+
if (opportunityGauge) opportunityGauge.destroy();
|
1059 |
+
if (skuChart) skuChart.destroy();
|
1060 |
+
if (competitorChart) competitorChart.destroy();
|
1061 |
+
if (featuresChart) featuresChart.destroy();
|
1062 |
+
if (geoChart) geoChart.destroy();
|
1063 |
+
if (priceChart) priceChart.destroy();
|
1064 |
+
if (growthChart) growthChart.destroy();
|
1065 |
+
|
1066 |
+
// Opportunity Gauge
|
1067 |
+
const opportunityCtx = document.getElementById('opportunityGauge').getContext('2d');
|
1068 |
+
opportunityGauge = new Chart(opportunityCtx, {
|
1069 |
+
type: 'doughnut',
|
1070 |
+
data: {
|
1071 |
+
labels: ['Score', 'Remaining'],
|
1072 |
+
datasets: [{
|
1073 |
+
data: [data.opportunityScore, 100 - data.opportunityScore],
|
1074 |
+
backgroundColor: [
|
1075 |
+
getOpportunityColor(data.opportunityScore),
|
1076 |
+
'#f3f4f6'
|
1077 |
+
],
|
1078 |
+
borderWidth: 0
|
1079 |
+
}]
|
1080 |
+
},
|
1081 |
+
options: {
|
1082 |
+
cutout: '80%',
|
1083 |
+
rotation: -90,
|
1084 |
+
circumference: 180,
|
1085 |
+
plugins: {
|
1086 |
+
legend: {
|
1087 |
+
display: false
|
1088 |
+
},
|
1089 |
+
tooltip: {
|
1090 |
+
enabled: false
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
}
|
1094 |
+
});
|
1095 |
+
|
1096 |
+
// SKU Chart
|
1097 |
+
const skuCtx = document.getElementById('skuChart').getContext('2d');
|
1098 |
+
skuChart = new Chart(skuCtx, {
|
1099 |
+
type: 'bar',
|
1100 |
+
data: {
|
1101 |
+
labels: ['25% Coverage', '50% Coverage', '75% Coverage'],
|
1102 |
+
datasets: [{
|
1103 |
+
label: 'SKUs Needed',
|
1104 |
+
data: [
|
1105 |
+
parseInt(data.sku25.split('-')[0]),
|
1106 |
+
parseInt(data.sku50.split('-')[0]),
|
1107 |
+
parseInt(data.sku75.split('-')[0])
|
1108 |
+
],
|
1109 |
+
backgroundColor: [
|
1110 |
+
'rgba(59, 130, 246, 0.7)',
|
1111 |
+
'rgba(59, 130, 246, 0.9)',
|
1112 |
+
'rgba(59, 130, 246, 1)'
|
1113 |
+
],
|
1114 |
+
borderColor: [
|
1115 |
+
'rgba(59, 130, 246, 1)',
|
1116 |
+
'rgba(59, 130, 246, 1)',
|
1117 |
+
'rgba(59, 130, 246, 1)'
|
1118 |
+
],
|
1119 |
+
borderWidth: 1
|
1120 |
+
}]
|
1121 |
+
},
|
1122 |
+
options: {
|
1123 |
+
responsive: true,
|
1124 |
+
plugins: {
|
1125 |
+
legend: {
|
1126 |
+
display: false
|
1127 |
+
},
|
1128 |
+
tooltip: {
|
1129 |
+
callbacks: {
|
1130 |
+
label: function(context) {
|
1131 |
+
let label = context.dataset.label || '';
|
1132 |
+
if (label) label += ': ';
|
1133 |
+
if (context.parsed.y !== null) {
|
1134 |
+
const ranges = [data.sku25, data.sku50, data.sku75];
|
1135 |
+
label += ranges[context.dataIndex];
|
1136 |
+
}
|
1137 |
+
return label;
|
1138 |
+
}
|
1139 |
+
}
|
1140 |
+
}
|
1141 |
+
},
|
1142 |
+
scales: {
|
1143 |
+
y: {
|
1144 |
+
beginAtZero: true,
|
1145 |
+
title: {
|
1146 |
+
display: true,
|
1147 |
+
text: 'Number of SKUs'
|
1148 |
+
}
|
1149 |
+
}
|
1150 |
+
}
|
1151 |
+
}
|
1152 |
+
});
|
1153 |
+
|
1154 |
+
// Competitor Chart (sample data)
|
1155 |
+
const competitorCtx = document.getElementById('competitorChart').getContext('2d');
|
1156 |
+
competitorChart = new Chart(competitorCtx, {
|
1157 |
+
type: 'bar',
|
1158 |
+
data: {
|
1159 |
+
labels: ['Brand A', 'Brand B', 'Brand C', 'Brand D', 'Brand E'],
|
1160 |
+
datasets: [{
|
1161 |
+
label: 'Market Share %',
|
1162 |
+
data: [22, 18, 15, 12, 8],
|
1163 |
+
backgroundColor: 'rgba(79, 70, 229, 0.7)',
|
1164 |
+
borderColor: 'rgba(79, 70, 229, 1)',
|
1165 |
+
borderWidth: 1
|
1166 |
+
}, {
|
1167 |
+
label: 'Avg. Price $',
|
1168 |
+
data: [249, 199, 179, 149, 99],
|
1169 |
+
backgroundColor: 'rgba(99, 102, 241, 0.7)',
|
1170 |
+
borderColor: 'rgba(99, 102, 241, 1)',
|
1171 |
+
borderWidth: 1,
|
1172 |
+
type: 'line',
|
1173 |
+
yAxisID: 'y1'
|
1174 |
+
}]
|
1175 |
+
},
|
1176 |
+
options: {
|
1177 |
+
responsive: true,
|
1178 |
+
plugins: {
|
1179 |
+
tooltip: {
|
1180 |
+
mode: 'index',
|
1181 |
+
intersect: true
|
1182 |
+
}
|
1183 |
+
},
|
1184 |
+
scales: {
|
1185 |
+
y: {
|
1186 |
+
type: 'linear',
|
1187 |
+
display: true,
|
1188 |
+
position: 'left',
|
1189 |
+
title: {
|
1190 |
+
display: true,
|
1191 |
+
text: 'Market Share %'
|
1192 |
+
}
|
1193 |
+
},
|
1194 |
+
y1: {
|
1195 |
+
type: 'linear',
|
1196 |
+
display: true,
|
1197 |
+
position: 'right',
|
1198 |
+
grid: {
|
1199 |
+
drawOnChartArea: false
|
1200 |
+
},
|
1201 |
+
title: {
|
1202 |
+
display: true,
|
1203 |
+
text: 'Price $'
|
1204 |
+
}
|
1205 |
+
}
|
1206 |
+
}
|
1207 |
+
}
|
1208 |
+
});
|
1209 |
+
|
1210 |
+
// Features Chart (sample data)
|
1211 |
+
const featuresCtx = document.getElementById('featuresChart').getContext('2d');
|
1212 |
+
featuresChart = new Chart(featuresCtx, {
|
1213 |
+
type: 'radar',
|
1214 |
+
data: {
|
1215 |
+
labels: ['WiFi', 'Voice Control', 'AI Learning', 'Energy Reports', 'Geofencing', 'Multi-Room', 'Remote Sensors'],
|
1216 |
+
datasets: [{
|
1217 |
+
label: 'Feature Adoption %',
|
1218 |
+
data: [92, 78, 65, 58, 45, 42, 32],
|
1219 |
+
backgroundColor: 'rgba(99, 102, 241, 0.2)',
|
1220 |
+
borderColor: 'rgba(99, 102, 241, 1)',
|
1221 |
+
pointBackgroundColor: 'rgba(99, 102, 241, 1)',
|
1222 |
+
pointBorderColor: '#fff',
|
1223 |
+
pointHoverBackgroundColor: '#fff',
|
1224 |
+
pointHoverBorderColor: 'rgba(99, 102, 241, 1)'
|
1225 |
+
}]
|
1226 |
+
},
|
1227 |
+
options: {
|
1228 |
+
elements: {
|
1229 |
+
line: {
|
1230 |
+
borderWidth: 3
|
1231 |
+
}
|
1232 |
+
},
|
1233 |
+
scales: {
|
1234 |
+
r: {
|
1235 |
+
angleLines: {
|
1236 |
+
display: true
|
1237 |
+
},
|
1238 |
+
suggestedMin: 0,
|
1239 |
+
suggestedMax: 100
|
1240 |
+
}
|
1241 |
+
}
|
1242 |
+
}
|
1243 |
+
});
|
1244 |
+
|
1245 |
+
// Geo Chart
|
1246 |
+
const geoCtx = document.getElementById('geoChart').getContext('2d');
|
1247 |
+
geoChart = new Chart(geoCtx, {
|
1248 |
+
type: 'doughnut',
|
1249 |
+
data: {
|
1250 |
+
labels: ['North America', 'Europe', 'Asia Pacific', 'Rest of World'],
|
1251 |
+
datasets: [{
|
1252 |
+
data: [data.geoData.na, data.geoData.eu, data.geoData.ap, data.geoData.row],
|
1253 |
+
backgroundColor: [
|
1254 |
+
'rgba(59, 130, 246, 0.7)',
|
1255 |
+
'rgba(16, 185, 129, 0.7)',
|
1256 |
+
'rgba(245, 158, 11, 0.7)',
|
1257 |
+
'rgba(124, 58, 237, 0.7)'
|
1258 |
+
],
|
1259 |
+
borderColor: [
|
1260 |
+
'rgba(59, 130, 246, 1)',
|
1261 |
+
'rgba(16, 185, 129, 1)',
|
1262 |
+
'rgba(245, 158, 11, 1)',
|
1263 |
+
'rgba(124, 58, 237, 1)'
|
1264 |
+
],
|
1265 |
+
borderWidth: 1
|
1266 |
+
}]
|
1267 |
+
},
|
1268 |
+
options: {
|
1269 |
+
plugins: {
|
1270 |
+
legend: {
|
1271 |
+
position: 'bottom'
|
1272 |
+
}
|
1273 |
+
}
|
1274 |
+
}
|
1275 |
+
});
|
1276 |
+
|
1277 |
+
// Price Chart
|
1278 |
+
const priceCtx = document.getElementById('priceChart').getContext('2d');
|
1279 |
+
priceChart = new Chart(priceCtx, {
|
1280 |
+
type: 'scatter',
|
1281 |
+
data: {
|
1282 |
+
datasets: [{
|
1283 |
+
label: 'Product Prices',
|
1284 |
+
data: generatePriceData(data),
|
1285 |
+
backgroundColor: 'rgba(79, 70, 229, 0.7)',
|
1286 |
+
borderColor: 'rgba(79, 70, 229, 1)',
|
1287 |
+
borderWidth: 1,
|
1288 |
+
pointRadius: 6
|
1289 |
+
}]
|
1290 |
+
},
|
1291 |
+
options: {
|
1292 |
+
responsive: true,
|
1293 |
+
plugins: {
|
1294 |
+
tooltip: {
|
1295 |
+
callbacks: {
|
1296 |
+
label: function(context) {
|
1297 |
+
return `Price: $${context.parsed.x}, Products: ${context.parsed.y}`;
|
1298 |
+
}
|
1299 |
+
}
|
1300 |
+
}
|
1301 |
+
},
|
1302 |
+
scales: {
|
1303 |
+
x: {
|
1304 |
+
title: {
|
1305 |
+
display: true,
|
1306 |
+
text: 'Price ($)'
|
1307 |
+
}
|
1308 |
+
},
|
1309 |
+
y: {
|
1310 |
+
title: {
|
1311 |
+
display: true,
|
1312 |
+
text: 'Number of Products'
|
1313 |
+
}
|
1314 |
+
}
|
1315 |
+
}
|
1316 |
+
}
|
1317 |
+
});
|
1318 |
+
|
1319 |
+
// Growth Chart
|
1320 |
+
const growthCtx = document.getElementById('growthChart').getContext('2d');
|
1321 |
+
growthChart = new Chart(growthCtx, {
|
1322 |
+
type: 'line',
|
1323 |
+
data: {
|
1324 |
+
labels: ['2023', '2024', '2025', '2026', '2027', '2028'],
|
1325 |
+
datasets: [{
|
1326 |
+
label: 'Market Size ($B)',
|
1327 |
+
data: generateGrowthData(data),
|
1328 |
+
backgroundColor: 'rgba(16, 185, 129, 0.1)',
|
1329 |
+
borderColor: 'rgba(16, 185, 129, 1)',
|
1330 |
+
borderWidth: 3,
|
1331 |
+
tension: 0.3,
|
1332 |
+
fill: true
|
1333 |
+
}]
|
1334 |
+
},
|
1335 |
+
options: {
|
1336 |
+
responsive: true,
|
1337 |
+
plugins: {
|
1338 |
+
tooltip: {
|
1339 |
+
callbacks: {
|
1340 |
+
label: function(context) {
|
1341 |
+
return `$${context.parsed.y.toFixed(1)}B`;
|
1342 |
+
}
|
1343 |
+
}
|
1344 |
+
}
|
1345 |
+
},
|
1346 |
+
scales: {
|
1347 |
+
y: {
|
1348 |
+
title: {
|
1349 |
+
display: true,
|
1350 |
+
text: 'Market Size ($B)'
|
1351 |
+
}
|
1352 |
+
}
|
1353 |
+
}
|
1354 |
+
}
|
1355 |
+
});
|
1356 |
+
}
|
1357 |
+
|
1358 |
+
// Helper functions for chart data generation
|
1359 |
+
function generatePriceData(data) {
|
1360 |
+
const priceData = [];
|
1361 |
+
const budgetRange = data.priceSegments.budget.range.replace('$', '').split('-');
|
1362 |
+
const midRange = data.priceSegments.mid.range.replace('$', '').split('-');
|
1363 |
+
const premiumRange = data.priceSegments.premium.range.replace('$', '').replace('+', '').split('-');
|
1364 |
+
|
1365 |
+
// Budget segment
|
1366 |
+
for (let i = parseInt(budgetRange[0]); i <= parseInt(budgetRange[1]); i += 10) {
|
1367 |
+
priceData.push({
|
1368 |
+
x: i,
|
1369 |
+
y: Math.floor(Math.random() * 5) + 5
|
1370 |
+
});
|
1371 |
+
}
|
1372 |
+
|
1373 |
+
// Mid segment
|
1374 |
+
for (let i = parseInt(midRange[0]); i <= parseInt(midRange[1]); i += 15) {
|
1375 |
+
priceData.push({
|
1376 |
+
x: i,
|
1377 |
+
y: Math.floor(Math.random() * 8) + 8
|
1378 |
+
});
|
1379 |
+
}
|
1380 |
+
|
1381 |
+
// Premium segment
|
1382 |
+
for (let i = parseInt(premiumRange[0]); i <= parseInt(premiumRange[1]); i += 25) {
|
1383 |
+
priceData.push({
|
1384 |
+
x: i,
|
1385 |
+
y: Math.floor(Math.random() * 3) + 1
|
1386 |
+
});
|
1387 |
+
}
|
1388 |
+
|
1389 |
+
// Add some premium+ products
|
1390 |
+
if (premiumRange[1].includes('+')) {
|
1391 |
+
const maxPrice = parseInt(premiumRange[1].replace('+', '')) + 200;
|
1392 |
+
for (let i = parseInt(premiumRange[1].replace('+', '')) + 50; i <= maxPrice; i += 50) {
|
1393 |
+
priceData.push({
|
1394 |
+
x: i,
|
1395 |
+
y: Math.floor(Math.random() * 2)
|
1396 |
+
});
|
1397 |
+
}
|
1398 |
+
}
|
1399 |
+
|
1400 |
+
return priceData;
|
1401 |
+
}
|
1402 |
+
|
1403 |
+
function generateGrowthData(data) {
|
1404 |
+
const growthData = [];
|
1405 |
+
const currentMarket = parseFloat(data.marketSize);
|
1406 |
+
const cagr = parseFloat(data.cagr) / 100;
|
1407 |
+
const futureMarket = parseFloat(data.futureMarket.replace('$', '').replace('B', ''));
|
1408 |
+
|
1409 |
+
growthData.push(currentMarket);
|
1410 |
+
|
1411 |
+
// Generate intermediate years
|
1412 |
+
for (let i = 1; i <= 4; i++) {
|
1413 |
+
growthData.push(currentMarket * Math.pow(1 + cagr, i));
|
1414 |
+
}
|
1415 |
+
|
1416 |
+
growthData.push(futureMarket);
|
1417 |
+
|
1418 |
+
return growthData;
|
1419 |
+
}
|
1420 |
+
|
1421 |
+
// Helper function to get color based on opportunity score
|
1422 |
+
function getOpportunityColor(score) {
|
1423 |
+
if (score >= 80) return 'rgba(16, 185, 129, 0.7)'; // Green
|
1424 |
+
if (score >= 60) return 'rgba(234, 179, 8, 0.7)'; // Yellow
|
1425 |
+
if (score >=
|
1426 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
I would like to build a website where you enter in a product type (for example thermostats) and the website will then provide you a key breakdown of the current market landscape including competitors, average costs, unique features, sales by country and estimated growth along with a rating of the potetnial opportunity if you were to try to get into that category and an estimate of total SKU count to acheive certain coverage percentages
|
2 |
+
This website should be able to pull data from the collective internet to pull together this analysis
|