skeleton.html 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  1. <!DOCTYPE html>
  2. <!--
  3. data-viz-report skeleton
  4. ------------------------
  5. Copy this file, edit the <!-- PLACEHOLDER --> tokens and the chart
  6. datasets at the bottom of <script>, then render with Chrome headless:
  7. "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
  8. --headless=new --disable-gpu --no-sandbox --hide-scrollbars \
  9. --virtual-time-budget=15000 \
  10. --run-all-compositor-stages-before-draw \
  11. --no-pdf-header-footer \
  12. --print-to-pdf="out.pdf" "file://$PWD/page.html"
  13. Component primitives (drop-in, all carried in this file):
  14. .cover full-bleed gradient hero page
  15. .section-num + h2.section part eyebrow + title + accent rule
  16. .lead left-bordered intro paragraph
  17. .kpis > .kpi.{blue|green|orange|purple} 4-up stat grid
  18. .timeline > .gen.{g1..g4} generation / phase progression strip
  19. .chart-card.avoid-break chart wrapper with title + sub
  20. table.data + .pill.{bad|warn|ok|good|best} reference table + status
  21. .versus > .vs-card.{apple|nvidia} head-to-head 2-up comparison
  22. .recommend-grid > .rec-card.{entry|recommend|premium} 3-tier picks
  23. .insight yellow callout (one-line takeaway)
  24. .conclusion dark conclusion block
  25. .takeaway numbered finding row
  26. .footer-meta reference / version footer
  27. -->
  28. <html lang="zh-CN">
  29. <head>
  30. <meta charset="UTF-8">
  31. <title><!-- REPORT_TITLE --></title>
  32. <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
  33. <style>
  34. /* === @page + universal print color fidelity ============================ */
  35. @page { size: A4 portrait; margin: 14mm 12mm; }
  36. * { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  37. /* === Tokens (re-skin per subject — see README §7 diversification table) */
  38. :root {
  39. --ink: #1d1d1f;
  40. --ink-2: #424245;
  41. --ink-3: #6e6e73;
  42. --ink-4: #86868b;
  43. --hairline: #e5e5ea;
  44. --rule: #d2d2d7;
  45. --surface: #fff;
  46. --mute: #f5f5f7;
  47. --accent: <!-- ACCENT_HEX -->; /* e.g. #007AFF */
  48. --cover-1: <!-- COVER_GRAD_1 -->; /* e.g. #0a1628 */
  49. --cover-2: <!-- COVER_GRAD_2 -->; /* e.g. #1d3557 */
  50. --cover-3: <!-- COVER_GRAD_3 -->; /* e.g. #2a5298 */
  51. }
  52. html, body {
  53. margin: 0; padding: 0;
  54. font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
  55. "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  56. color: var(--ink); background: var(--surface);
  57. font-size: 10.5pt; line-height: 1.55;
  58. -webkit-font-smoothing: antialiased;
  59. }
  60. .content { padding: 14mm 12mm; }
  61. .page-break { page-break-after: always; }
  62. .avoid-break { page-break-inside: avoid; }
  63. /* === Cover (full-bleed gradient hero) ================================== */
  64. .cover {
  65. height: 268mm;
  66. background: linear-gradient(135deg, var(--cover-1) 0%, var(--cover-2) 50%, var(--cover-3) 100%);
  67. color: #fff; padding: 30mm 18mm; position: relative; overflow: hidden;
  68. page-break-after: always;
  69. }
  70. .cover::before {
  71. content: ""; position: absolute; top: -100px; right: -100px;
  72. width: 500px; height: 500px; border-radius: 50%;
  73. background: radial-gradient(circle, rgba(99,179,237,0.30), transparent 70%);
  74. }
  75. .cover::after {
  76. content: ""; position: absolute; bottom: -150px; left: -150px;
  77. width: 600px; height: 600px; border-radius: 50%;
  78. background: radial-gradient(circle, rgba(168,85,247,0.20), transparent 70%);
  79. }
  80. .cover-tag {
  81. display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.4);
  82. border-radius: 20px; font-size: 10pt; letter-spacing: 2px; opacity: 0.85;
  83. }
  84. .cover h1 {
  85. font-size: 38pt; font-weight: 700; margin: 28px 0 18px; line-height: 1.15;
  86. letter-spacing: -1px; position: relative; z-index: 2;
  87. }
  88. .cover .subtitle {
  89. font-size: 13pt; opacity: 0.85; max-width: 520px;
  90. line-height: 1.7; position: relative; z-index: 2;
  91. }
  92. .cover-meta {
  93. position: absolute; bottom: 30mm; left: 18mm; right: 18mm;
  94. display: flex; justify-content: space-between; align-items: flex-end; z-index: 2;
  95. }
  96. .meta-stats { display: flex; gap: 32px; }
  97. .meta-stat .num { font-size: 28pt; font-weight: 700; line-height: 1; }
  98. .meta-stat .lbl { font-size: 9pt; opacity: 0.7; margin-top: 4px; letter-spacing: 1px; }
  99. .cover-info { text-align: right; opacity: 0.7; font-size: 9pt; line-height: 1.8; }
  100. /* === Section header (eyebrow + H2 + accent rule) ======================= */
  101. h2.section {
  102. font-size: 20pt; font-weight: 700; margin: 0 0 4px;
  103. color: var(--ink); letter-spacing: -0.5px;
  104. }
  105. .section-num {
  106. display: inline-block; font-size: 10pt; font-weight: 600;
  107. color: var(--accent); letter-spacing: 3px; margin-bottom: 8px;
  108. }
  109. .section-line {
  110. width: 50px; height: 3px; background: var(--accent);
  111. border-radius: 2px; margin: 12px 0 24px;
  112. }
  113. h3 { font-size: 13pt; font-weight: 600; margin: 22px 0 10px; color: var(--ink); letter-spacing: -0.3px; }
  114. h3 .num { color: var(--ink-4); font-weight: 500; margin-right: 8px; }
  115. p { margin: 8px 0; }
  116. .lead {
  117. font-size: 11pt; color: var(--ink-2); line-height: 1.75;
  118. border-left: 3px solid var(--accent);
  119. background: linear-gradient(90deg, rgba(0,122,255,0.04), transparent);
  120. padding: 14px 16px; border-radius: 4px; margin: 16px 0 22px;
  121. }
  122. /* === KPI grid (4-up with 4 color variants) ============================= */
  123. .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
  124. .kpi {
  125. padding: 14px; border-radius: 12px;
  126. background: linear-gradient(135deg, #f5f5f7, #ebebef);
  127. border: 1px solid var(--rule);
  128. }
  129. .kpi.blue { background: linear-gradient(135deg, #e3f0ff, #d4e6ff); border-color: #b8d4ff; }
  130. .kpi.green { background: linear-gradient(135deg, #e8f7ee, #d4f0e0); border-color: #b3e0c2; }
  131. .kpi.orange { background: linear-gradient(135deg, #fff0e0, #ffe0c4); border-color: #ffc89b; }
  132. .kpi.purple { background: linear-gradient(135deg, #f0e8ff, #e2d4ff); border-color: #c9b3ff; }
  133. .kpi .label { font-size: 8.5pt; color: var(--ink-3); letter-spacing: 0.5px;
  134. text-transform: uppercase; font-weight: 500; }
  135. .kpi .value { font-size: 22pt; font-weight: 700; color: var(--ink); line-height: 1.1; margin-top: 4px; }
  136. .kpi .unit { font-size: 11pt; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
  137. .kpi .desc { font-size: 8.5pt; color: var(--ink-3); margin-top: 4px; }
  138. /* === Chart card (every chart MUST be wrapped in .avoid-break) ========== */
  139. .chart-card {
  140. background: #fff; border: 1px solid var(--hairline);
  141. border-radius: 12px; padding: 16px; margin: 18px 0;
  142. box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  143. }
  144. .chart-title {
  145. font-size: 11pt; font-weight: 600; color: var(--ink);
  146. margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
  147. }
  148. .chart-title::before {
  149. content: ""; width: 4px; height: 14px; background: var(--accent); border-radius: 2px;
  150. }
  151. .chart-sub { font-size: 9pt; color: var(--ink-4); margin: 0 0 12px; padding-left: 12px; }
  152. .chart-wrap { position: relative; height: 280px; }
  153. .chart-wrap.tall { height: 380px; }
  154. .chart-wrap.short { height: 200px; }
  155. /* === Reference data table + 5-level pill badges ======================== */
  156. table.data {
  157. width: 100%; border-collapse: collapse; font-size: 9pt;
  158. margin: 12px 0; background: #fff;
  159. border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline);
  160. }
  161. table.data thead th {
  162. background: linear-gradient(180deg, #f5f5f7, #ebebef);
  163. padding: 9px 10px; text-align: left;
  164. font-weight: 600; color: var(--ink);
  165. border-bottom: 1px solid var(--rule);
  166. font-size: 8.5pt; letter-spacing: 0.3px;
  167. }
  168. table.data tbody td { padding: 7px 10px; border-bottom: 1px solid var(--mute); color: var(--ink-2); }
  169. table.data tbody tr:last-child td { border-bottom: 0; }
  170. table.data tbody tr:nth-child(even) { background: #fbfbfd; }
  171. table.data tbody td.bold { font-weight: 600; color: var(--ink); }
  172. .pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 8pt; font-weight: 500; }
  173. .pill-bad { background: #ffebee; color: #c62828; }
  174. .pill-warn { background: #fff3e0; color: #e65100; }
  175. .pill-ok { background: #e8f5e9; color: #2e7d32; }
  176. .pill-good { background: #e3f2fd; color: #1565c0; }
  177. .pill-best { background: #f3e5f5; color: #6a1b9a; }
  178. /* === Versus comparison cards =========================================== */
  179. .versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  180. align-items: stretch; margin: 16px 0; }
  181. .vs-card { padding: 16px; border-radius: 12px; border: 1px solid; }
  182. .vs-card.apple { background: linear-gradient(160deg, #f5f5f7, #fff); border-color: var(--rule); }
  183. .vs-card.nvidia { background: linear-gradient(160deg, #f0f9ec, #fff); border-color: #c5e0a5; }
  184. .vs-divider { display: flex; align-items: center; justify-content: center;
  185. font-size: 16pt; font-weight: 700; color: var(--ink-4); }
  186. .vs-card h4 { margin: 0 0 8px; font-size: 13pt; font-weight: 700; }
  187. .vs-card.apple h4 { color: var(--ink); }
  188. .vs-card.nvidia h4 { color: #5a8a3a; }
  189. .vs-card .tag { display: inline-block; font-size: 8pt; padding: 2px 8px;
  190. border-radius: 10px; background: rgba(0,0,0,0.06); margin-bottom: 6px; }
  191. .vs-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 9.5pt; line-height: 1.7; }
  192. /* === Recommend triple (entry / recommended / premium) ================== */
  193. .recommend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
  194. .rec-card { padding: 16px; border-radius: 12px; border: 1px solid; position: relative; }
  195. .rec-card .level { display: inline-block; padding: 2px 10px; border-radius: 12px;
  196. font-size: 8pt; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 8px; }
  197. .rec-card.entry { background: #f0f7ff; border-color: #b8d4ff; }
  198. .rec-card.entry .level { background: #007AFF; color: #fff; }
  199. .rec-card.recommend { background: #f0fff4; border-color: #a8d5b8; }
  200. .rec-card.recommend .level { background: #34a853; color: #fff; }
  201. .rec-card.premium { background: #fdf4ff; border-color: #d9b8ff; }
  202. .rec-card.premium .level { background: #9333ea; color: #fff; }
  203. .rec-card h4 { margin: 0 0 6px; font-size: 11pt; font-weight: 700; color: var(--ink); }
  204. .rec-card .price{ font-size: 9pt; color: var(--ink-3); margin-bottom: 8px; font-weight: 500; }
  205. .rec-card .desc { font-size: 9pt; color: var(--ink-2); line-height: 1.6; }
  206. /* === Insight callout (yellow takeaway) ================================= */
  207. .insight {
  208. background: linear-gradient(135deg, #fff8e1, #fff3c4);
  209. border: 1px solid #ffe082;
  210. border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-size: 10pt;
  211. }
  212. .insight .label {
  213. display: inline-block; font-weight: 700; color: #b8860b;
  214. font-size: 9pt; letter-spacing: 1px; margin-right: 8px;
  215. }
  216. /* === Dark conclusion blocks + takeaways ================================ */
  217. .conclusion {
  218. background: linear-gradient(135deg, #1a1a2e, #16213e);
  219. color: #fff; padding: 24px; border-radius: 14px; margin: 20px 0;
  220. }
  221. .conclusion h3 { color: #fff; margin-top: 0; }
  222. .conclusion h3 .num { color: #64b5f6; }
  223. .takeaway {
  224. display: flex; gap: 8px; margin: 8px 0;
  225. padding: 10px 12px; border-radius: 8px; background: var(--mute); font-size: 9.5pt;
  226. }
  227. .takeaway .icon { font-weight: 700; color: var(--accent); min-width: 18px; }
  228. /* === Timeline strip (3-5 generation stops) ============================= */
  229. .timeline { display: flex; gap: 0; margin: 16px 0;
  230. background: var(--mute); border-radius: 12px; padding: 14px; }
  231. .gen { flex: 1; text-align: center; padding: 10px 6px; position: relative; }
  232. .gen + .gen::before {
  233. content: "→"; position: absolute; left: -6px; top: 14px;
  234. color: #c7c7cc; font-size: 12pt;
  235. }
  236. .gen .tag { display: inline-block; padding: 3px 10px; border-radius: 12px;
  237. color: #fff; font-size: 8pt; font-weight: 700; }
  238. .gen.g1 .tag { background: #8e8e93; }
  239. .gen.g2 .tag { background: #5ac8fa; }
  240. .gen.g3 .tag { background: #007AFF; }
  241. .gen.g4 .tag { background: #5e5ce6; }
  242. .gen .year { font-size: 8.5pt; color: var(--ink-3); margin-top: 4px; }
  243. .gen .key { font-size: 9pt; font-weight: 600; color: var(--ink); margin-top: 4px; line-height: 1.4; }
  244. /* === Footer-meta (references) ========================================== */
  245. .footer-meta {
  246. border-top: 1px solid var(--hairline); margin-top: 30px; padding-top: 16px;
  247. font-size: 8.5pt; color: var(--ink-4);
  248. }
  249. .footer-meta h4 { color: var(--ink-2); font-size: 10pt; margin: 0 0 8px; }
  250. .footer-meta ul { margin: 6px 0; padding-left: 18px; line-height: 1.7; }
  251. /* === Screen-emulation: open in browser → looks like the A4 PDF =========== */
  252. @media screen {
  253. html { background: #d0d0d0; }
  254. body { margin: 0; padding: 20px 0; }
  255. body > section {
  256. width: 210mm; min-height: 297mm; margin: 0 auto 20px;
  257. background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  258. box-sizing: border-box; overflow: hidden;
  259. }
  260. }
  261. </style>
  262. </head>
  263. <body>
  264. <!-- ============================================================ -->
  265. <!-- COVER PAGE -->
  266. <!-- ============================================================ -->
  267. <section class="cover">
  268. <span class="cover-tag"><!-- COVER_TAG --></span>
  269. <h1><!-- REPORT_TITLE --></h1>
  270. <p class="subtitle"><!-- REPORT_SUBTITLE --></p>
  271. <div class="cover-meta">
  272. <div class="meta-stats">
  273. <div class="meta-stat"><div class="num"><!-- META_STAT_1_NUM --></div><div class="lbl"><!-- META_STAT_1_LABEL --></div></div>
  274. <div class="meta-stat"><div class="num"><!-- META_STAT_2_NUM --></div><div class="lbl"><!-- META_STAT_2_LABEL --></div></div>
  275. <div class="meta-stat"><div class="num"><!-- META_STAT_3_NUM --></div><div class="lbl"><!-- META_STAT_3_LABEL --></div></div>
  276. </div>
  277. <div class="cover-info">
  278. <div><!-- DOC_TYPE --></div>
  279. <div><!-- DOC_VERSION --></div>
  280. </div>
  281. </div>
  282. </section>
  283. <!-- ============================================================ -->
  284. <!-- PROLOGUE / INTRO -->
  285. <!-- ============================================================ -->
  286. <section class="content page-break">
  287. <span class="section-num">PROLOGUE · <!-- PROLOGUE_LABEL --></span>
  288. <h2 class="section"><!-- PROLOGUE_TITLE --></h2>
  289. <div class="section-line"></div>
  290. <p class="lead"><!-- PROLOGUE_LEAD --></p>
  291. <!-- 4-up KPI grid (one per color variant; drop unused) -->
  292. <div class="kpis">
  293. <div class="kpi blue">
  294. <div class="label"><!-- KPI_1_LABEL --></div>
  295. <div class="value"><!-- KPI_1_VALUE --></div>
  296. <div class="desc"><!-- KPI_1_DESC --></div>
  297. </div>
  298. <div class="kpi green">
  299. <div class="label"><!-- KPI_2_LABEL --></div>
  300. <div class="value"><!-- KPI_2_VALUE --></div>
  301. <div class="desc"><!-- KPI_2_DESC --></div>
  302. </div>
  303. <div class="kpi purple">
  304. <div class="label"><!-- KPI_3_LABEL --></div>
  305. <div class="value"><!-- KPI_3_VALUE --></div>
  306. <div class="desc"><!-- KPI_3_DESC --></div>
  307. </div>
  308. <div class="kpi orange">
  309. <div class="label"><!-- KPI_4_LABEL --></div>
  310. <div class="value"><!-- KPI_4_VALUE --><span class="unit"> <!-- KPI_4_UNIT --></span></div>
  311. <div class="desc"><!-- KPI_4_DESC --></div>
  312. </div>
  313. </div>
  314. </section>
  315. <!-- ============================================================ -->
  316. <!-- PART 01 — first analytical section -->
  317. <!-- Includes: timeline strip + dual-axis evolution chart -->
  318. <!-- ============================================================ -->
  319. <section class="content page-break">
  320. <span class="section-num">PART 01 · <!-- PART_1_EYEBROW --></span>
  321. <h2 class="section"><!-- PART_1_TITLE --></h2>
  322. <div class="section-line"></div>
  323. <h3><span class="num">1.1</span><!-- SUB_1_1_TITLE --></h3>
  324. <!-- Timeline strip (3–5 stops) -->
  325. <div class="timeline">
  326. <div class="gen g1"><div class="tag"><!-- GEN_1_TAG --></div><div class="year"><!-- GEN_1_YEAR --></div><div class="key"><!-- GEN_1_KEY --></div></div>
  327. <div class="gen g2"><div class="tag"><!-- GEN_2_TAG --></div><div class="year"><!-- GEN_2_YEAR --></div><div class="key"><!-- GEN_2_KEY --></div></div>
  328. <div class="gen g3"><div class="tag"><!-- GEN_3_TAG --></div><div class="year"><!-- GEN_3_YEAR --></div><div class="key"><!-- GEN_3_KEY --></div></div>
  329. <div class="gen g4"><div class="tag"><!-- GEN_4_TAG --></div><div class="year"><!-- GEN_4_YEAR --></div><div class="key"><!-- GEN_4_KEY --></div></div>
  330. </div>
  331. <!-- Chart 1 — dual-axis bar+line (evolution / progression) -->
  332. <div class="chart-card avoid-break">
  333. <div class="chart-title"><!-- CHART_1_TITLE --></div>
  334. <div class="chart-sub"><!-- CHART_1_SUB --></div>
  335. <div class="chart-wrap"><canvas id="chart_1_evolution"></canvas></div>
  336. </div>
  337. </section>
  338. <!-- ============================================================ -->
  339. <!-- PART 01 cont. — benchmark / KPI page -->
  340. <!-- Includes: KPI row + horizontal bar + grouped vertical bar -->
  341. <!-- ============================================================ -->
  342. <section class="content page-break">
  343. <h3><span class="num">1.2</span><!-- SUB_1_2_TITLE --></h3>
  344. <div class="kpis">
  345. <div class="kpi blue"><div class="label"><!-- BENCH_KPI_1_LABEL --></div><div class="value"><!-- BENCH_KPI_1_VALUE --></div><div class="desc"><!-- BENCH_KPI_1_DESC --></div></div>
  346. <div class="kpi green"><div class="label"><!-- BENCH_KPI_2_LABEL --></div><div class="value"><!-- BENCH_KPI_2_VALUE --></div><div class="desc"><!-- BENCH_KPI_2_DESC --></div></div>
  347. <div class="kpi purple"><div class="label"><!-- BENCH_KPI_3_LABEL --></div><div class="value"><!-- BENCH_KPI_3_VALUE --></div><div class="desc"><!-- BENCH_KPI_3_DESC --></div></div>
  348. <div class="kpi orange"><div class="label"><!-- BENCH_KPI_4_LABEL --></div><div class="value"><!-- BENCH_KPI_4_VALUE --><span class="unit"> <!-- BENCH_KPI_4_UNIT --></span></div><div class="desc"><!-- BENCH_KPI_4_DESC --></div></div>
  349. </div>
  350. <!-- Chart 2 — horizontal grouped bar (long category list) -->
  351. <div class="chart-card avoid-break">
  352. <div class="chart-title"><!-- CHART_2_TITLE --></div>
  353. <div class="chart-sub"><!-- CHART_2_SUB --></div>
  354. <div class="chart-wrap tall"><canvas id="chart_2_horizontal"></canvas></div>
  355. </div>
  356. <!-- Chart 3 — grouped vertical bar (cross-tab) -->
  357. <div class="chart-card avoid-break">
  358. <div class="chart-title"><!-- CHART_3_TITLE --></div>
  359. <div class="chart-sub"><!-- CHART_3_SUB --></div>
  360. <div class="chart-wrap"><canvas id="chart_3_grouped"></canvas></div>
  361. </div>
  362. <div class="insight">
  363. <span class="label">⚡ <!-- INSIGHT_1_LABEL --></span>
  364. <!-- INSIGHT_1_BODY -->
  365. </div>
  366. </section>
  367. <!-- ============================================================ -->
  368. <!-- PART 01 cont. — full reference table + scatter matrix -->
  369. <!-- ============================================================ -->
  370. <section class="content page-break">
  371. <h3><span class="num">1.3</span><!-- SUB_1_3_TITLE --></h3>
  372. <table class="data">
  373. <thead>
  374. <tr>
  375. <th><!-- COL_1 --></th><th><!-- COL_2 --></th><th><!-- COL_3 --></th>
  376. <th><!-- COL_4 --></th><th><!-- COL_5 --></th><th><!-- COL_6 --></th>
  377. </tr>
  378. </thead>
  379. <tbody>
  380. <!-- Repeat per row; first cell uses .bold for entity name -->
  381. <tr><td class="bold"><!-- ROW_1_NAME --></td><td><!-- ROW_1_C2 --></td><td><!-- ROW_1_C3 --></td><td><!-- ROW_1_C4 --></td><td><!-- ROW_1_C5 --></td><td><!-- ROW_1_C6 --></td></tr>
  382. <tr><td class="bold"><!-- ROW_2_NAME --></td><td><!-- ROW_2_C2 --></td><td><!-- ROW_2_C3 --></td><td><!-- ROW_2_C4 --></td><td><!-- ROW_2_C5 --></td><td><!-- ROW_2_C6 --></td></tr>
  383. <!-- … duplicate rows as needed … -->
  384. </tbody>
  385. </table>
  386. <!-- Chart 4 — scatter matrix (X = capacity, Y = bandwidth, color = generation) -->
  387. <div class="chart-card avoid-break">
  388. <div class="chart-title"><!-- CHART_4_TITLE --></div>
  389. <div class="chart-sub"><!-- CHART_4_SUB --></div>
  390. <div class="chart-wrap tall"><canvas id="chart_4_scatter"></canvas></div>
  391. </div>
  392. </section>
  393. <!-- ============================================================ -->
  394. <!-- PART 02 — feasibility / fit analysis -->
  395. <!-- Includes: stacked bar + reference table with status pills -->
  396. <!-- ============================================================ -->
  397. <section class="content page-break">
  398. <span class="section-num">PART 02 · <!-- PART_2_EYEBROW --></span>
  399. <h2 class="section"><!-- PART_2_TITLE --></h2>
  400. <div class="section-line"></div>
  401. <p class="lead"><!-- PART_2_LEAD --></p>
  402. <h3><span class="num">2.1</span><!-- SUB_2_1_TITLE --></h3>
  403. <div class="kpis">
  404. <div class="kpi orange"><div class="label"><!-- REQ_KPI_1_LABEL --></div><div class="value"><!-- REQ_KPI_1_VALUE --><span class="unit"> <!-- REQ_KPI_1_UNIT --></span></div><div class="desc"><!-- REQ_KPI_1_DESC --></div></div>
  405. <div class="kpi blue"><div class="label"><!-- REQ_KPI_2_LABEL --></div><div class="value"><!-- REQ_KPI_2_VALUE --><span class="unit"> <!-- REQ_KPI_2_UNIT --></span></div><div class="desc"><!-- REQ_KPI_2_DESC --></div></div>
  406. <div class="kpi green"><div class="label"><!-- REQ_KPI_3_LABEL --></div><div class="value"><!-- REQ_KPI_3_VALUE --><span class="unit"> <!-- REQ_KPI_3_UNIT --></span></div><div class="desc"><!-- REQ_KPI_3_DESC --></div></div>
  407. <div class="kpi purple"><div class="label"><!-- REQ_KPI_4_LABEL --></div><div class="value"><!-- REQ_KPI_4_VALUE --><span class="unit"> <!-- REQ_KPI_4_UNIT --></span></div><div class="desc"><!-- REQ_KPI_4_DESC --></div></div>
  408. </div>
  409. <!-- Chart 5 — stacked bar (component A + component B vs total budget) -->
  410. <div class="chart-card avoid-break">
  411. <div class="chart-title"><!-- CHART_5_TITLE --></div>
  412. <div class="chart-sub"><!-- CHART_5_SUB --></div>
  413. <div class="chart-wrap"><canvas id="chart_5_stacked"></canvas></div>
  414. </div>
  415. <h3><span class="num">2.2</span><!-- SUB_2_2_TITLE --></h3>
  416. <table class="data">
  417. <thead>
  418. <tr><th><!-- FIT_COL_1 --></th><th><!-- FIT_COL_2 --></th><th><!-- FIT_COL_3 --></th><th><!-- FIT_COL_4 --></th></tr>
  419. </thead>
  420. <tbody>
  421. <tr><td class="bold"><!-- FIT_R1_NAME --></td><td><!-- FIT_R1_CAPACITY --></td><td><span class="pill pill-bad">❌ <!-- FIT_R1_VERDICT --></span></td><td><!-- FIT_R1_NOTE --></td></tr>
  422. <tr><td class="bold"><!-- FIT_R2_NAME --></td><td><!-- FIT_R2_CAPACITY --></td><td><span class="pill pill-warn">⚠️ <!-- FIT_R2_VERDICT --></span></td><td><!-- FIT_R2_NOTE --></td></tr>
  423. <tr><td class="bold"><!-- FIT_R3_NAME --></td><td><!-- FIT_R3_CAPACITY --></td><td><span class="pill pill-ok">✓ <!-- FIT_R3_VERDICT --></span></td><td><!-- FIT_R3_NOTE --></td></tr>
  424. <tr><td class="bold"><!-- FIT_R4_NAME --></td><td><!-- FIT_R4_CAPACITY --></td><td><span class="pill pill-good">★ <!-- FIT_R4_VERDICT --></span></td><td><!-- FIT_R4_NOTE --></td></tr>
  425. <tr><td class="bold"><!-- FIT_R5_NAME --></td><td><!-- FIT_R5_CAPACITY --></td><td><span class="pill pill-best">★★ <!-- FIT_R5_VERDICT --></span></td><td><!-- FIT_R5_NOTE --></td></tr>
  426. </tbody>
  427. </table>
  428. </section>
  429. <!-- ============================================================ -->
  430. <!-- PART 02 cont. — recommend triple + framework callout -->
  431. <!-- ============================================================ -->
  432. <section class="content page-break">
  433. <h3><span class="num">2.3</span><!-- SUB_2_3_TITLE --></h3>
  434. <div class="recommend-grid">
  435. <div class="rec-card entry">
  436. <span class="level"><!-- REC_ENTRY_LEVEL --></span>
  437. <h4><!-- REC_ENTRY_TITLE --></h4>
  438. <div class="price"><!-- REC_ENTRY_PRICE --></div>
  439. <div class="desc"><!-- REC_ENTRY_DESC --></div>
  440. </div>
  441. <div class="rec-card recommend">
  442. <span class="level">★ <!-- REC_REC_LEVEL --></span>
  443. <h4><!-- REC_REC_TITLE --></h4>
  444. <div class="price"><!-- REC_REC_PRICE --></div>
  445. <div class="desc"><!-- REC_REC_DESC --></div>
  446. </div>
  447. <div class="rec-card premium">
  448. <span class="level"><!-- REC_PREMIUM_LEVEL --></span>
  449. <h4><!-- REC_PREMIUM_TITLE --></h4>
  450. <div class="price"><!-- REC_PREMIUM_PRICE --></div>
  451. <div class="desc"><!-- REC_PREMIUM_DESC --></div>
  452. </div>
  453. </div>
  454. <div class="insight">
  455. <span class="label">🛠 <!-- INSIGHT_2_LABEL --></span>
  456. <!-- INSIGHT_2_BODY -->
  457. </div>
  458. </section>
  459. <!-- ============================================================ -->
  460. <!-- PART 03 — head-to-head versus + radar + log-axis chart -->
  461. <!-- ============================================================ -->
  462. <section class="content page-break">
  463. <span class="section-num">PART 03 · <!-- PART_3_EYEBROW --></span>
  464. <h2 class="section"><!-- PART_3_TITLE --></h2>
  465. <div class="section-line"></div>
  466. <h3><span class="num">3.1</span><!-- SUB_3_1_TITLE --></h3>
  467. <div class="versus">
  468. <div class="vs-card apple">
  469. <span class="tag"><!-- VS_LEFT_TAG --></span>
  470. <h4><!-- VS_LEFT_TITLE --></h4>
  471. <ul>
  472. <li><!-- VS_LEFT_LI_1 --></li>
  473. <li><!-- VS_LEFT_LI_2 --></li>
  474. <li><!-- VS_LEFT_LI_3 --></li>
  475. <li><!-- VS_LEFT_LI_4 --></li>
  476. </ul>
  477. </div>
  478. <div class="vs-divider">VS</div>
  479. <div class="vs-card nvidia">
  480. <span class="tag"><!-- VS_RIGHT_TAG --></span>
  481. <h4><!-- VS_RIGHT_TITLE --></h4>
  482. <ul>
  483. <li><!-- VS_RIGHT_LI_1 --></li>
  484. <li><!-- VS_RIGHT_LI_2 --></li>
  485. <li><!-- VS_RIGHT_LI_3 --></li>
  486. <li><!-- VS_RIGHT_LI_4 --></li>
  487. </ul>
  488. </div>
  489. </div>
  490. <h3><span class="num">3.2</span><!-- SUB_3_2_TITLE --></h3>
  491. <!-- Chart 6 — logarithmic axis (when values span 2+ decades, e.g. 80 vs 5841) -->
  492. <div class="chart-card avoid-break">
  493. <div class="chart-title"><!-- CHART_6_TITLE --></div>
  494. <div class="chart-sub"><!-- CHART_6_SUB --></div>
  495. <div class="chart-wrap"><canvas id="chart_6_logaxis"></canvas></div>
  496. </div>
  497. <div class="insight">
  498. <span class="label">📊 <!-- INSIGHT_3_LABEL --></span>
  499. <!-- INSIGHT_3_BODY -->
  500. </div>
  501. <!-- Chart 7 — radar (multi-dimensional positioning, 5–7 axes) -->
  502. <div class="chart-card avoid-break">
  503. <div class="chart-title"><!-- CHART_7_TITLE --></div>
  504. <div class="chart-sub"><!-- CHART_7_SUB --></div>
  505. <div class="chart-wrap tall"><canvas id="chart_7_radar"></canvas></div>
  506. </div>
  507. </section>
  508. <!-- ============================================================ -->
  509. <!-- PART 03 cont. — cost / power dual-axis + decision tree -->
  510. <!-- ============================================================ -->
  511. <section class="content page-break">
  512. <h3><span class="num">3.3</span><!-- SUB_3_3_TITLE --></h3>
  513. <div class="kpis">
  514. <div class="kpi blue"><div class="label"><!-- COST_KPI_1_LABEL --></div><div class="value"><!-- COST_KPI_1_VALUE --></div><div class="desc"><!-- COST_KPI_1_DESC --></div></div>
  515. <div class="kpi green"><div class="label"><!-- COST_KPI_2_LABEL --></div><div class="value"><!-- COST_KPI_2_VALUE --></div><div class="desc"><!-- COST_KPI_2_DESC --></div></div>
  516. <div class="kpi orange"><div class="label"><!-- COST_KPI_3_LABEL --></div><div class="value"><!-- COST_KPI_3_VALUE --><span class="unit"> <!-- COST_KPI_3_UNIT --></span></div><div class="desc"><!-- COST_KPI_3_DESC --></div></div>
  517. <div class="kpi purple"><div class="label"><!-- COST_KPI_4_LABEL --></div><div class="value"><!-- COST_KPI_4_VALUE --><span class="unit"> <!-- COST_KPI_4_UNIT --></span></div><div class="desc"><!-- COST_KPI_4_DESC --></div></div>
  518. </div>
  519. <!-- Chart 8 — dual-axis bars (price + power, two units) -->
  520. <div class="chart-card avoid-break">
  521. <div class="chart-title"><!-- CHART_8_TITLE --></div>
  522. <div class="chart-sub"><!-- CHART_8_SUB --></div>
  523. <div class="chart-wrap"><canvas id="chart_8_dualaxis"></canvas></div>
  524. </div>
  525. <h3><span class="num">3.4</span><!-- SUB_3_4_TITLE --></h3>
  526. <!-- Decision-tree pair (mirrors versus card; second axis = persona) -->
  527. <div class="versus">
  528. <div class="vs-card apple">
  529. <span class="tag">→ <!-- DT_LEFT_PICK --></span>
  530. <h4><!-- DT_LEFT_PERSONA --></h4>
  531. <ul>
  532. <li><!-- DT_LEFT_LI_1 --></li>
  533. <li><!-- DT_LEFT_LI_2 --></li>
  534. <li><!-- DT_LEFT_LI_3 --></li>
  535. <li><!-- DT_LEFT_LI_4 --></li>
  536. </ul>
  537. </div>
  538. <div class="vs-divider">→</div>
  539. <div class="vs-card nvidia">
  540. <span class="tag">→ <!-- DT_RIGHT_PICK --></span>
  541. <h4><!-- DT_RIGHT_PERSONA --></h4>
  542. <ul>
  543. <li><!-- DT_RIGHT_LI_1 --></li>
  544. <li><!-- DT_RIGHT_LI_2 --></li>
  545. <li><!-- DT_RIGHT_LI_3 --></li>
  546. <li><!-- DT_RIGHT_LI_4 --></li>
  547. </ul>
  548. </div>
  549. </div>
  550. </section>
  551. <!-- ============================================================ -->
  552. <!-- EPILOGUE — dark conclusion blocks + takeaway list + footer -->
  553. <!-- ============================================================ -->
  554. <section class="content page-break">
  555. <span class="section-num">EPILOGUE · <!-- EPILOGUE_LABEL --></span>
  556. <h2 class="section"><!-- EPILOGUE_TITLE --></h2>
  557. <div class="section-line"></div>
  558. <div class="conclusion">
  559. <h3><span class="num">01.</span><!-- CONC_1_TITLE --></h3>
  560. <p style="opacity: 0.92;"><!-- CONC_1_BODY --></p>
  561. </div>
  562. <div class="conclusion">
  563. <h3><span class="num">02.</span><!-- CONC_2_TITLE --></h3>
  564. <p style="opacity: 0.92;"><!-- CONC_2_BODY --></p>
  565. </div>
  566. <div class="conclusion">
  567. <h3><span class="num">03.</span><!-- CONC_3_TITLE --></h3>
  568. <p style="opacity: 0.92;"><!-- CONC_3_BODY --></p>
  569. </div>
  570. <h3 style="margin-top: 30px;"><span class="num">📋</span><!-- TAKEAWAY_HEADING --></h3>
  571. <div class="takeaway"><span class="icon">①</span><span><strong><!-- TAKE_1_HEAD --></strong>:<!-- TAKE_1_BODY --></span></div>
  572. <div class="takeaway"><span class="icon">②</span><span><strong><!-- TAKE_2_HEAD --></strong>:<!-- TAKE_2_BODY --></span></div>
  573. <div class="takeaway"><span class="icon">③</span><span><strong><!-- TAKE_3_HEAD --></strong>:<!-- TAKE_3_BODY --></span></div>
  574. <div class="footer-meta">
  575. <h4><!-- REFERENCES_HEADING --></h4>
  576. <ul>
  577. <li><!-- REF_1 --></li>
  578. <li><!-- REF_2 --></li>
  579. <li><!-- REF_3 --></li>
  580. </ul>
  581. <p style="margin-top: 12px; text-align: center; opacity: 0.6;">— END OF REPORT —</p>
  582. </div>
  583. </section>
  584. <!-- ============================================================ -->
  585. <!-- CHART INITIALIZATION -->
  586. <!-- Order matches the canvas IDs above. Edit labels + datasets -->
  587. <!-- only; leave the options blocks intact for consistent look. -->
  588. <!-- ============================================================ -->
  589. <script>
  590. Chart.defaults.font.family = '-apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif';
  591. Chart.defaults.font.size = 10;
  592. Chart.defaults.color = '#424245';
  593. Chart.defaults.animation = false; /* CRITICAL: avoid mid-animation snapshot */
  594. /* === Chart 1 — dual-axis bar+line evolution =========================== */
  595. new Chart(document.getElementById('chart_1_evolution'), {
  596. type: 'bar',
  597. data: {
  598. labels: [/* GEN_1, GEN_2, GEN_3, GEN_4 */],
  599. datasets: [
  600. { type: 'bar', label: '<!-- DS_BAR_LABEL -->', data: [/* … */],
  601. backgroundColor: 'rgba(0,122,255,0.18)', borderColor: '#007AFF',
  602. borderWidth: 1.5, yAxisID: 'y1', order: 3, borderRadius: 4 },
  603. { type: 'line', label: '<!-- DS_LINE_A_LABEL -->', data: [/* … */],
  604. borderColor: '#34a853', backgroundColor: 'rgba(52,168,83,0.10)',
  605. borderWidth: 2.5, fill: true, tension: 0.35,
  606. yAxisID: 'y', order: 1, pointRadius: 5, pointBackgroundColor: '#34a853' },
  607. { type: 'line', label: '<!-- DS_LINE_B_LABEL -->', data: [/* … */],
  608. borderColor: '#ff9500', borderWidth: 2.5, fill: false, tension: 0.35,
  609. yAxisID: 'y2', order: 2, pointRadius: 5, pointBackgroundColor: '#ff9500' }
  610. ]
  611. },
  612. options: {
  613. responsive: true, maintainAspectRatio: false,
  614. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } } },
  615. scales: {
  616. y: { type: 'linear', position: 'left', title: { display: true, text: '<!-- Y_LEFT_LABEL -->' }, beginAtZero: true },
  617. y1: { type: 'linear', position: 'right', title: { display: true, text: '<!-- Y_RIGHT_LABEL -->' }, beginAtZero: true, grid: { display: false } },
  618. y2: { display: false } /* hidden third axis for the second line */
  619. }
  620. }
  621. });
  622. /* === Chart 2 — horizontal grouped bar (long category list) ============ */
  623. new Chart(document.getElementById('chart_2_horizontal'), {
  624. type: 'bar',
  625. data: {
  626. labels: [/* 10–20 entity names */],
  627. datasets: [
  628. { label: '<!-- DS_2A_LABEL -->', data: [/* … */], backgroundColor: '#5AC8FA', borderRadius: 4 },
  629. { label: '<!-- DS_2B_LABEL -->', data: [/* … */], backgroundColor: '#007AFF', borderRadius: 4 }
  630. ]
  631. },
  632. options: {
  633. responsive: true, maintainAspectRatio: false, indexAxis: 'y',
  634. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } } },
  635. scales: {
  636. x: { beginAtZero: true, title: { display: true, text: '<!-- X_LABEL -->' } },
  637. y: { ticks: { font: { size: 9 } } }
  638. }
  639. }
  640. });
  641. /* === Chart 3 — grouped vertical bar (cross-tab) ======================= */
  642. new Chart(document.getElementById('chart_3_grouped'), {
  643. type: 'bar',
  644. data: {
  645. labels: [/* tier names: e.g. Base, Pro, Max, Ultra */],
  646. datasets: [
  647. { label: '<!-- DS_3A -->', data: [/* … */], backgroundColor: '#8e8e93', borderRadius: 4 },
  648. { label: '<!-- DS_3B -->', data: [/* … */], backgroundColor: '#5AC8FA', borderRadius: 4 },
  649. { label: '<!-- DS_3C -->', data: [/* … */], backgroundColor: '#007AFF', borderRadius: 4 },
  650. { label: '<!-- DS_3D -->', data: [/* … */], backgroundColor: '#5e5ce6', borderRadius: 4 }
  651. ]
  652. },
  653. options: {
  654. responsive: true, maintainAspectRatio: false,
  655. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } } },
  656. scales: {
  657. x: { title: { display: true, text: '<!-- X_LABEL -->' } },
  658. y: { beginAtZero: true, title: { display: true, text: '<!-- Y_LABEL -->' } }
  659. }
  660. }
  661. });
  662. /* === Chart 4 — scatter matrix (X = capacity, Y = bandwidth) =========== */
  663. new Chart(document.getElementById('chart_4_scatter'), {
  664. type: 'scatter',
  665. data: {
  666. datasets: [
  667. { label: '<!-- GROUP_1 -->', backgroundColor: '#8e8e93', pointRadius: 8,
  668. data: [{ x: 0, y: 0, label: '' } /* … */] },
  669. { label: '<!-- GROUP_2 -->', backgroundColor: '#5AC8FA', pointRadius: 8,
  670. data: [{ x: 0, y: 0, label: '' } /* … */] },
  671. { label: '<!-- GROUP_3 -->', backgroundColor: '#007AFF', pointRadius: 8,
  672. data: [{ x: 0, y: 0, label: '' } /* … */] },
  673. { label: '<!-- GROUP_4 -->', backgroundColor: '#5e5ce6', pointRadius: 9,
  674. data: [{ x: 0, y: 0, label: '' } /* … */] }
  675. ]
  676. },
  677. options: {
  678. responsive: true, maintainAspectRatio: false,
  679. plugins: {
  680. legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } },
  681. tooltip: { callbacks: { label: (c) => `${c.raw.label}: ${c.parsed.x} · ${c.parsed.y}` } }
  682. },
  683. scales: {
  684. x: { title: { display: true, text: '<!-- X_LABEL -->' }, beginAtZero: true },
  685. y: { title: { display: true, text: '<!-- Y_LABEL -->' }, beginAtZero: true }
  686. }
  687. }
  688. });
  689. /* === Chart 5 — stacked bar (component A + component B vs total) ======= */
  690. new Chart(document.getElementById('chart_5_stacked'), {
  691. type: 'bar',
  692. data: {
  693. labels: [/* mode names: e.g. Full / INT8 / INT4 */],
  694. datasets: [
  695. { label: '<!-- DS_5A_LABEL -->', data: [/* … */], backgroundColor: '#007AFF', borderRadius: 4, stack: 'a' },
  696. { label: '<!-- DS_5B_LABEL -->', data: [/* … */], backgroundColor: '#FF9500', borderRadius: 4, stack: 'a' }
  697. ]
  698. },
  699. options: {
  700. responsive: true, maintainAspectRatio: false,
  701. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } }, tooltip: { mode: 'index' } },
  702. scales: {
  703. x: { stacked: true, title: { display: true, text: '<!-- X_LABEL -->' } },
  704. y: { stacked: true, beginAtZero: true, title: { display: true, text: '<!-- Y_LABEL -->' } }
  705. }
  706. }
  707. });
  708. /* === Chart 6 — logarithmic axis (values spanning 2+ decades) ========== */
  709. new Chart(document.getElementById('chart_6_logaxis'), {
  710. type: 'bar',
  711. data: {
  712. labels: ['<!-- LEFT_NAME -->', '<!-- RIGHT_NAME -->'],
  713. datasets: [{ label: '<!-- METRIC -->', data: [/* small, large */],
  714. backgroundColor: ['#007AFF', '#34a853'], borderRadius: 6 }]
  715. },
  716. options: {
  717. responsive: true, maintainAspectRatio: false, indexAxis: 'y',
  718. plugins: { legend: { display: false },
  719. tooltip: { callbacks: { label: (c) => `${c.parsed.x.toLocaleString()}` } } },
  720. scales: { x: { type: 'logarithmic', title: { display: true, text: '<!-- METRIC --> (log scale)' } } }
  721. }
  722. });
  723. /* === Chart 7 — radar (5–7 axes, 2 entities) =========================== */
  724. new Chart(document.getElementById('chart_7_radar'), {
  725. type: 'radar',
  726. data: {
  727. labels: [/* 5–7 dimension names */],
  728. datasets: [
  729. { label: '<!-- ENTITY_A -->', data: [/* 0–10 each */],
  730. backgroundColor: 'rgba(0,122,255,0.20)', borderColor: '#007AFF', borderWidth: 2,
  731. pointBackgroundColor: '#007AFF', pointRadius: 4 },
  732. { label: '<!-- ENTITY_B -->', data: [/* 0–10 each */],
  733. backgroundColor: 'rgba(118,185,0,0.20)', borderColor: '#76b900', borderWidth: 2,
  734. pointBackgroundColor: '#76b900', pointRadius: 4 }
  735. ]
  736. },
  737. options: {
  738. responsive: true, maintainAspectRatio: false,
  739. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } } },
  740. scales: {
  741. r: { min: 0, max: 10, ticks: { stepSize: 2, backdropColor: 'transparent' },
  742. pointLabels: { font: { size: 10, weight: '600' } } }
  743. }
  744. }
  745. });
  746. /* === Chart 8 — dual-axis bar (price + power, two units) =============== */
  747. new Chart(document.getElementById('chart_8_dualaxis'), {
  748. type: 'bar',
  749. data: {
  750. labels: ['<!-- ENTITY_A -->', '<!-- ENTITY_B -->'],
  751. datasets: [
  752. { label: '<!-- METRIC_A_LABEL -->', data: [/* both */], backgroundColor: '#5AC8FA', borderRadius: 4, yAxisID: 'y' },
  753. { label: '<!-- METRIC_B_LABEL -->', data: [/* both */], backgroundColor: '#FF3B30', borderRadius: 4, yAxisID: 'y1' }
  754. ]
  755. },
  756. options: {
  757. responsive: true, maintainAspectRatio: false,
  758. plugins: { legend: { position: 'top', labels: { boxWidth: 14, padding: 14 } } },
  759. scales: {
  760. y: { type: 'linear', position: 'left', title: { display: true, text: '<!-- METRIC_A_AXIS -->' }, beginAtZero: true },
  761. y1: { type: 'linear', position: 'right', title: { display: true, text: '<!-- METRIC_B_AXIS -->' }, beginAtZero: true, grid: { display: false } }
  762. }
  763. }
  764. });
  765. </script>
  766. </body>
  767. </html>