index3.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844
  1. <!DOCTYPE html>
  2. <html lang="zh-TW">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge, Chrome=1">
  7. <meta http-equiv="Cache-Control" content="no-cache">
  8. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
  9. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
  10. integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
  11. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
  12. integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  13. <link rel="preconnect" href="https://fonts.googleapis.com">
  14. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  15. <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
  16. <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
  17. integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.min.css">
  19. <link rel="stylesheet" href="./style.css">
  20. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  21. <title>Microfilm</title>
  22. </head>
  23. <body>
  24. <section class='Analytics-report'>
  25. <div class='Analytics-report-page'>
  26. <div class='container-fluid'>
  27. <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
  28. <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
  29. <div class='text-end'>
  30. <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
  31. </div>
  32. <div class='Analytics-report-title'>
  33. <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
  34. <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
  35. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
  36. architecto esse unde eum quas quis quaerat,</p>
  37. </div>
  38. </div>
  39. <div class='Analytics-chart mt-3'>
  40. <div class="row px-0 mx-0">
  41. <div class="col-6">
  42. <!-- <div>
  43. <h4 class='fw-bold'>Company Overview & its approach</h4>
  44. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
  45. architecto esse unde eum quas quis quaerat,</p>
  46. </div>
  47. <div class='mt-3'>
  48. <h4 class='fw-bold'>Company Overview & its approach</h4>
  49. <ul>
  50. <li style="list-style-type: disc">
  51. Lorem ipsum dolor sit amet.
  52. </li>
  53. <li>
  54. consectetur adipisicing elit.
  55. </li>
  56. <li>
  57. amus voluptate labore sapienten.
  58. </li>
  59. </ul>
  60. </div> -->
  61. <!-- <canvas id="myChart" width="200" height="200"></canvas> -->
  62. <h2 class='Data-h2 fw-bold'>觀眾較常收看之影音類型</h2>
  63. <canvas id="myChart2" width="200" height="200"></canvas>
  64. <div>
  65. <h2 class='Data-h2 fw-bold'>台灣微電影發展模式之建構</h2>
  66. <table class="table-1 table table-bordered">
  67. <thead>
  68. <tr>
  69. <th scope="col"></th>
  70. <th scope="col">廣告</th>
  71. <th scope="col">微電影</th>
  72. <th scope="col">電影</th>
  73. </tr>
  74. </thead>
  75. <tbody>
  76. <tr>
  77. <th scope="row">時間</th>
  78. <td>10分-60分</td>
  79. <td>1分-30分</td>
  80. <td>90分-120分</td>
  81. </tr>
  82. <tr>
  83. <th scope="row">平台</th>
  84. <td>主要為電視,延伸至網路</td>
  85. <td>主要為網路,延伸至電視或電影院</td>
  86. <td>主要為電影院延伸至電視以及網路</td>
  87. </tr>
  88. <tr>
  89. <th scope="row">內容</th>
  90. <td>以傳達產品與品牌為主</td>
  91. <td>透過劇情來傳達品牌認同度</td>
  92. <td>著重故事情節,無明顯商業宣傳</td>
  93. </tr>
  94. <tr>
  95. <th scope="row">喜好程度</th>
  96. <td>低</td>
  97. <td>中</td>
  98. <td>高</td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </div>
  103. </div>
  104. <div class="col-6">
  105. <h2 class='Data-h2 fw-bold'>微電影廣告吸引力面向</h2>
  106. <canvas id="myChart" width="200" height="200"></canvas>
  107. <h2 class='Data-h2 fw-bold mt-1'>廣告時長與故事類型</h2>
  108. <div class='border mb-2 pb-3'>
  109. <div class="row px-0 mx-0">
  110. <div class="col-6">
  111. <div class='adv-type'>
  112. <div class='row mx-0 px-0'>
  113. <div class="col-6">
  114. <i style="font-size: 48px; color:#920783;" class="fas fa-laugh-beam"></i>
  115. </div>
  116. <div class='col-6 px-0'>
  117. <p>搞笑</p>
  118. <p>0~5分鐘</p>
  119. </div>
  120. </div>
  121. </div>
  122. <div class='adv-type'>
  123. <div class='row mx-0 px-0'>
  124. <div class="col-6">
  125. <i style="font-size: 48px; color:#920783;" class="fas fa-house-user"></i>
  126. </div>
  127. <div class='col-6 px-0'>
  128. <p>親情</p>
  129. <p>0~5分鐘</p>
  130. </div>
  131. </div>
  132. </div>
  133. <div class='adv-type'>
  134. <div class='row mx-0 px-0'>
  135. <div class="col-6">
  136. <i style="font-size: 48px; color:#920783;" class="fas fa-heart"></i>
  137. </div>
  138. <div class='col-6 px-0'>
  139. <p>愛情</p>
  140. <p>5~10分鐘</p>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <div class="col-6">
  146. <div class='adv-type'>
  147. <div class='row mx-0 px-0'>
  148. <div class="col-6">
  149. <i style="font-size: 48px; color:#920783;" class="fas fa-ghost"></i>
  150. </div>
  151. <div class='col-6 px-0'>
  152. <p>懸疑</p>
  153. <p>5~10分鐘</p>
  154. </div>
  155. </div>
  156. </div>
  157. <div class='adv-type'>
  158. <div class='row mx-0 px-0'>
  159. <div class="col-6">
  160. <i style="font-size: 48px; color:#920783" class="fas fa-hand-holding-heart"></i>
  161. </div>
  162. <div class='col-6 px-0'>
  163. <p>公益</p>
  164. <p>0~16分鐘</p>
  165. </div>
  166. </div>
  167. </div>
  168. <div class='adv-type'>
  169. <div class='row mx-0 px-0'>
  170. <div class="col-6">
  171. <i style="font-size: 48px; color:#920783;" class="fas fa-rocket"></i>
  172. </div>
  173. <div class='col-6 px-0'>
  174. <p>夢想</p>
  175. <p>0~16分鐘</p>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <!-- <canvas id="myChart3" width="200" height="200"></canvas> -->
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. </div>
  187. <div class='Analytics-report-page mt-5'>
  188. <div class='container-fluid'>
  189. <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
  190. <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
  191. <div class='text-end'>
  192. <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
  193. </div>
  194. <div class='Analytics-report-title'>
  195. <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
  196. <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
  197. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
  198. architecto esse unde eum quas quis quaerat,</p>
  199. </div>
  200. </div>
  201. <div class='Analytics-chart mt-3'>
  202. <div class="row px-0 mx-0">
  203. <div class="col-6">
  204. <h2 class='Data-h2 fw-bold mt-1'>廣告主演是否為明星佔比</h2>
  205. <canvas id="myChart-pie" width="200" height="200"></canvas>
  206. </div>
  207. <div class="col-6">
  208. <div class="mt-4">
  209. <h4 class='fw-bold'>微電影廣告吸引力面向</h4>
  210. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
  211. architecto esse unde eum quas quis quaerat,</p>
  212. <div class="mt-3">
  213. <h4 class='fw-bold'>台灣微電影發展模式之建構</h4>
  214. <ul>
  215. <li style="list-style-type: disc">
  216. Lorem ipsum dolor sit amet.
  217. </li>
  218. <li>
  219. consectetur adipisicing elit.
  220. </li>
  221. <li>
  222. amus voluptate labore sapienten.
  223. </li>
  224. </ul>
  225. </div>
  226. </div>
  227. </div>
  228. <div class="col-6 mt-5">
  229. <h2 class='Data-h2 fw-bold mt-1'>廣告類型與主演是否為明星佔比</h2>
  230. <div class="row px-0 mx-0">
  231. <div class="Doughnut-box col-6 px-0 border-end border-bottom">
  232. <canvas id="myChart-Doughnut1" width="200" height="200"></canvas>
  233. <p>產品廣告</p>
  234. </div>
  235. <div class="Doughnut-box col-6 px-0 border-start border-bottom">
  236. <canvas id="myChart-Doughnut2" width="200" height="200"></canvas>
  237. <p>品牌形象廣告</p>
  238. </div>
  239. <div class="Doughnut-box col-6 px-0 border-end border-top">
  240. <canvas id="myChart-Doughnut3" width="200" height="200"></canvas>
  241. <p>觀念廣告</p>
  242. </div>
  243. <div class="Doughnut-box col-6 px-0 border-start border-top">
  244. <canvas id="myChart-Doughnut4" width="200" height="200"></canvas>
  245. <p>政府公益</p>
  246. </div>
  247. </div>
  248. </div>
  249. <div class="col-6">
  250. <h2 class='Data-h2 fw-bold mt-5'>微電影與其他的影像形式比較分析(FB)</h2>
  251. <canvas id="myChart-bar" width="200" height="200"></canvas>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. <div class='Analytics-report-page mt-5'>
  257. <div class='container-fluid'>
  258. <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
  259. <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
  260. <div class='text-end'>
  261. <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
  262. </div>
  263. <div class='Analytics-report-title'>
  264. <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
  265. <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
  266. <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
  267. architecto esse unde eum quas quis quaerat,</p>
  268. </div>
  269. </div>
  270. <div class='Analytics-chart mt-3'>
  271. <div class="row px-0 mx-0">
  272. <div class="col-6">
  273. <h2 class='Data-h2 fw-bold mt-1'>微電影與其他的影像形式比較分析</h2>
  274. <table class="table-1 table table-bordered">
  275. <thead>
  276. <tr>
  277. <th scope="col" style="width: 18%;"></th>
  278. <th scope="col" class='text-center'>微電影<br>(工研院))</th>
  279. <th scope="col" class='text-center'>網紅<br>(howhow)</th>
  280. <th scope="col" class='text-center'>新聞專題<br>(眼球中央、科技新報)</th>
  281. </tr>
  282. </thead>
  283. <tbody>
  284. <tr>
  285. <th scope="row">時間長短</th>
  286. <td class='text-center'>1分鐘-5分鐘</td>
  287. <td class='text-center'>1分鐘-10分鐘</td>
  288. <td class='text-center'>2分鐘-15分鐘</td>
  289. </tr>
  290. <tr>
  291. <th scope="row">播放平台</th>
  292. <td>Facebook、YouTube</td>
  293. <td>Facebook、YouTube</td>
  294. <td>Facebook、YouTube</td>
  295. </tr>
  296. <tr>
  297. <th scope="row">內容</th>
  298. <td>透過劇情傳達該產品的用途與涵義</td>
  299. <td>以無釐頭搞笑短劇的脚本結合品牌概念(業配)</td>
  300. <td>關心社會的趨勢與新聞</td>
  301. </tr>
  302. <tr>
  303. <th scope="row">評估方式</th>
  304. <td class='text-center'>點擊率</td>
  305. <td class='text-center'>點擊率</td>
  306. <td class='text-center'>點擊率</td>
  307. </tr>
  308. <tr>
  309. <th scope="row">置入</th>
  310. <td class='text-center'>高</td>
  311. <td class='text-center'>高</td>
  312. <td class='text-center'>低</td>
  313. </tr>
  314. <tr>
  315. <th scope="row">喜好程度</th>
  316. <td class='text-center'>中</td>
  317. <td class='text-center'>高</td>
  318. <td class='text-center'> 中</td>
  319. </tr>
  320. <tr>
  321. <th scope="row">製片預算</th>
  322. <td class='text-center'>中</td>
  323. <td class='text-center'>高</td>
  324. <td class='text-center'>中</td>
  325. </tr>
  326. <tr>
  327. <th scope="row">不受時空限制</th>
  328. <td class='text-center'>低</td>
  329. <td class='text-center'>低</td>
  330. <td class='text-center'>低</td>
  331. </tr>
  332. <tr>
  333. <th scope="row">故事性強</th>
  334. <td class='text-center'>高</td>
  335. <td class='text-center'>中</td>
  336. <td class='text-center'>中</td>
  337. </tr>
  338. <tr>
  339. <th scope="row">趣味性</th>
  340. <td class='text-center'>中</td>
  341. <td class='text-center'>高</td>
  342. <td class='text-center'>中</td>
  343. </tr>
  344. <tr>
  345. <th scope="row">品質</th>
  346. <td class='text-center'>中</td>
  347. <td class='text-center'>中</td>
  348. <td class='text-center'>中</td>
  349. </tr>
  350. <tr>
  351. <th scope="row">話題性</th>
  352. <td class='text-center'>低</td>
  353. <td class='text-center'>高</td>
  354. <td class='text-center'>中</td>
  355. </tr>
  356. </tbody>
  357. </table>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362. </section>
  363. <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.6.2/chart.min.js"
  364. integrity="sha512-tMabqarPtykgDtdtSqCL3uLVM0gS1ZkUAVhRFu1vSEFgvB73niFQWJuvviDyBGBH22Lcau4rHB5p2K2T0Xvr6Q=="
  365. crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  366. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  367. <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
  368. <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
  369. integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
  370. crossorigin="anonymous"></script>
  371. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
  372. integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
  373. crossorigin="anonymous"></script>
  374. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.all.min.js"></script>
  375. <script src="https://kit.fontawesome.com/0b8ff4e055.js" crossorigin="anonymous"></script>
  376. <script>
  377. var ctx = document.getElementById('myChart');
  378. // var ctx = document.getElementById('myChart');
  379. var myChart = new Chart(ctx, {
  380. type: 'bar', //圖表類型
  381. data: {
  382. //標題
  383. labels: ['情感共鳴', '故事出乎意料', '劇情與產品設計巧妙', '製作精良場面浩大', '用戶體驗度高', '其他', '未選'],
  384. datasets: [{
  385. label: '', //標籤
  386. data: [59.13, 59.13, 45.22, 25.22, 10.43, 10.43, 6.96], //資料
  387. //圖表背景色
  388. backgroundColor: [
  389. 'rgba(255, 99, 132, 0.2)',
  390. 'rgba(54, 162, 235, 0.2)',
  391. 'rgba(255, 206, 86, 0.2)',
  392. 'rgba(75, 192, 192, 0.2)',
  393. 'rgba(153, 102, 255, 0.2)',
  394. 'rgba(255, 159, 64, 0.2)'
  395. ],
  396. //圖表外框線色
  397. borderColor: [
  398. 'rgba(255, 99, 132, 1)',
  399. 'rgba(54, 162, 235, 1)',
  400. 'rgba(255, 206, 86, 1)',
  401. 'rgba(75, 192, 192, 1)',
  402. 'rgba(153, 102, 255, 1)',
  403. 'rgba(255, 159, 64, 1)'
  404. ],
  405. //外框線寬度
  406. borderWidth: 1,
  407. }]
  408. },
  409. options: {
  410. plugins: {
  411. legend: {
  412. display: false,
  413. labels: {
  414. font: {
  415. display: false,
  416. size: 24,
  417. },
  418. },
  419. },
  420. },
  421. scales: {
  422. x: {
  423. ticks: {
  424. font: {
  425. size: 9,
  426. }
  427. },
  428. title: {
  429. display: false,
  430. text: '%',
  431. font: {
  432. family: 'Times',
  433. size: 32,
  434. },
  435. },
  436. },
  437. y: {
  438. title: {
  439. display: true,
  440. text: '%',
  441. },
  442. min: 0,
  443. max: 80,
  444. beginAtZero: true,
  445. }
  446. }
  447. }
  448. });
  449. var ctx2 = document.getElementById('myChart2');
  450. var myChart2 = new Chart(ctx2, {
  451. type: 'bar', //圖表類型
  452. data: {
  453. //標題
  454. labels: ['電影/微電影', '音樂/MV', '連續劇/偶像劇', '美食/旅遊', '綜藝/八卦', '笑話趣味影片', '影集', '電玩/動漫'],
  455. datasets: [{
  456. label: '# test', //標籤
  457. data: [40.8, 37.6, 37.2, 32.0, 27.8, 27.7, 27.6, 25.6], //資料
  458. //圖表背景色
  459. backgroundColor: [
  460. 'rgba(255, 99, 132, 0.2)',
  461. 'rgba(54, 162, 235, 0.2)',
  462. 'rgba(255, 206, 86, 0.2)',
  463. 'rgba(75, 192, 192, 0.2)',
  464. 'rgba(153, 102, 255, 0.2)',
  465. 'rgba(255, 159, 64, 0.2)'
  466. ],
  467. //圖表外框線色
  468. borderColor: [
  469. 'rgba(255, 99, 132, 1)',
  470. 'rgba(54, 162, 235, 1)',
  471. 'rgba(255, 206, 86, 1)',
  472. 'rgba(75, 192, 192, 1)',
  473. 'rgba(153, 102, 255, 1)',
  474. 'rgba(255, 159, 64, 1)'
  475. ],
  476. //外框線寬度
  477. borderWidth: 1
  478. }]
  479. },
  480. options: {
  481. indexAxis: 'y',
  482. plugins: {
  483. legend: {
  484. display: false,
  485. labels: {
  486. font: {
  487. display: false,
  488. size: 24,
  489. },
  490. },
  491. },
  492. },
  493. scales: {
  494. x: {
  495. min: 0,
  496. max: 50,
  497. title: {
  498. display: true,
  499. text: '%',
  500. },
  501. },
  502. y: {
  503. ticks: {
  504. beginAtZero: true,
  505. responsive: true,//符合響應式
  506. font: {
  507. size: 12,
  508. }
  509. }
  510. }
  511. }
  512. }
  513. });
  514. var ctx3 = document.getElementById('myChart-pie');
  515. var myChart2 = new Chart(ctx3, {
  516. type: 'pie', //圖表類型
  517. data: {
  518. //標題
  519. datasets: [{
  520. data: [31, 18, 1], //資料
  521. //圖表背景色
  522. backgroundColor: [
  523. 'rgba(255, 206, 86, 1)',
  524. 'rgba(255, 99, 132, 1)',
  525. 'rgba(54, 162, 235, 1)',
  526. 'rgba(75, 192, 192, 1)',
  527. 'rgba(153, 102, 255, 1)',
  528. 'rgba(255, 159, 64, 1)'
  529. ],
  530. //圖表外框線色
  531. borderColor: [
  532. 'rgba(255, 206, 86, 1)',
  533. 'rgba(255, 99, 132, 1)',
  534. 'rgba(54, 162, 235, 1)',
  535. 'rgba(75, 192, 192, 1)',
  536. 'rgba(153, 102, 255, 1)',
  537. 'rgba(255, 159, 64, 1)'
  538. ],
  539. //外框線寬度
  540. borderWidth: 1
  541. }],
  542. labels: [
  543. '明星',
  544. '素人',
  545. '虛擬人',
  546. ]
  547. },
  548. options: {
  549. responsive: true,
  550. },
  551. });
  552. // Doughnut1-產品廣告
  553. var ctx4 = document.getElementById('myChart-Doughnut1').getContext('2d');
  554. var myChart3 = new Chart(ctx4, {
  555. type: 'doughnut', //圖表類型
  556. data: {
  557. //標題
  558. datasets: [{
  559. data: [10, 3, 1], //資料
  560. //圖表背景色
  561. backgroundColor: [
  562. 'rgba(255, 206, 86, 1)',
  563. 'rgba(255, 99, 132, 1)',
  564. 'rgba(54, 162, 235, 1)',
  565. 'rgba(75, 192, 192, 1)',
  566. 'rgba(153, 102, 255, 1)',
  567. 'rgba(255, 159, 64, 1)'
  568. ],
  569. //圖表外框線色
  570. borderColor: [
  571. 'rgba(255, 206, 86, 1)',
  572. 'rgba(255, 99, 132, 1)',
  573. 'rgba(54, 162, 235, 1)',
  574. 'rgba(75, 192, 192, 1)',
  575. 'rgba(153, 102, 255, 1)',
  576. 'rgba(255, 159, 64, 1)'
  577. ],
  578. //外框線寬度
  579. borderWidth: 1
  580. }],
  581. labels: [
  582. '明星',
  583. '素人',
  584. '虛擬人',
  585. ]
  586. },
  587. options: {
  588. responsive: true,
  589. plugins: {
  590. legend: {
  591. labels: {
  592. padding: 10,
  593. font: {
  594. size: 10,
  595. },
  596. },
  597. },
  598. },
  599. },
  600. });
  601. // Doughnut2-品牌形象廣告
  602. var ctx5 = document.getElementById('myChart-Doughnut2').getContext('2d');
  603. var myChart4 = new Chart(ctx5, {
  604. type: 'doughnut', //圖表類型
  605. data: {
  606. //標題
  607. datasets: [{
  608. data: [15, 13, 0], //資料
  609. //圖表背景色
  610. backgroundColor: [
  611. 'rgba(255, 206, 86, 1)',
  612. 'rgba(255, 99, 132, 1)',
  613. 'rgba(54, 162, 235, 1)',
  614. 'rgba(75, 192, 192, 1)',
  615. 'rgba(153, 102, 255, 1)',
  616. 'rgba(255, 159, 64, 1)'
  617. ],
  618. //圖表外框線色
  619. borderColor: [
  620. 'rgba(255, 206, 86, 1)',
  621. 'rgba(255, 99, 132, 1)',
  622. 'rgba(54, 162, 235, 1)',
  623. 'rgba(75, 192, 192, 1)',
  624. 'rgba(153, 102, 255, 1)',
  625. 'rgba(255, 159, 64, 1)'
  626. ],
  627. //外框線寬度
  628. borderWidth: 1
  629. }],
  630. labels: [
  631. '明星',
  632. '素人',
  633. '虛擬人',
  634. ]
  635. },
  636. options: {
  637. responsive: true,
  638. plugins: {
  639. legend: {
  640. labels: {
  641. padding: 10,
  642. font: {
  643. size: 10,
  644. },
  645. },
  646. },
  647. },
  648. },
  649. });
  650. // Doughnut3-觀念廣告
  651. var ctx6 = document.getElementById('myChart-Doughnut3').getContext('2d');
  652. var myChart5 = new Chart(ctx6, {
  653. type: 'doughnut', //圖表類型
  654. data: {
  655. //標題
  656. datasets: [{
  657. data: [1, 1, 0], //資料
  658. //圖表背景色
  659. backgroundColor: [
  660. 'rgba(255, 206, 86, 1)',
  661. 'rgba(255, 99, 132, 1)',
  662. 'rgba(54, 162, 235, 1)',
  663. 'rgba(75, 192, 192, 1)',
  664. 'rgba(153, 102, 255, 1)',
  665. 'rgba(255, 159, 64, 1)'
  666. ],
  667. //圖表外框線色
  668. borderColor: [
  669. 'rgba(255, 206, 86, 1)',
  670. 'rgba(255, 99, 132, 1)',
  671. 'rgba(54, 162, 235, 1)',
  672. 'rgba(75, 192, 192, 1)',
  673. 'rgba(153, 102, 255, 1)',
  674. 'rgba(255, 159, 64, 1)'
  675. ],
  676. //外框線寬度
  677. borderWidth: 1
  678. }],
  679. labels: [
  680. '明星',
  681. '素人',
  682. '虛擬人',
  683. ]
  684. },
  685. options: {
  686. responsive: true,
  687. plugins: {
  688. legend: {
  689. labels: {
  690. padding: 10,
  691. font: {
  692. size: 10,
  693. },
  694. },
  695. },
  696. },
  697. },
  698. });
  699. // Doughnut4-公益廣告
  700. var ctx7 = document.getElementById('myChart-Doughnut4').getContext('2d');
  701. var myChart6 = new Chart(ctx7, {
  702. type: 'doughnut', //圖表類型
  703. data: {
  704. //標題
  705. datasets: [{
  706. data: [2, 1, 0], //資料
  707. //圖表背景色
  708. backgroundColor: [
  709. 'rgba(255, 206, 86, 1)',
  710. 'rgba(255, 99, 132, 1)',
  711. 'rgba(54, 162, 235, 1)',
  712. 'rgba(75, 192, 192, 1)',
  713. 'rgba(153, 102, 255, 1)',
  714. 'rgba(255, 159, 64, 1)'
  715. ],
  716. //圖表外框線色
  717. borderColor: [
  718. 'rgba(255, 206, 86, 1)',
  719. 'rgba(255, 99, 132, 1)',
  720. 'rgba(54, 162, 235, 1)',
  721. 'rgba(75, 192, 192, 1)',
  722. 'rgba(153, 102, 255, 1)',
  723. 'rgba(255, 159, 64, 1)'
  724. ],
  725. //外框線寬度
  726. borderWidth: 1
  727. }],
  728. labels: [
  729. '明星',
  730. '素人',
  731. '虛擬人',
  732. ]
  733. },
  734. options: {
  735. responsive: true,
  736. plugins: {
  737. legend: {
  738. labels: {
  739. padding: 10,
  740. font: {
  741. size: 10,
  742. },
  743. },
  744. },
  745. },
  746. },
  747. });
  748. var ctx8 = document.getElementById('myChart-bar');
  749. var myChart7 = new Chart(ctx8, {
  750. type: 'bar', //圖表類型
  751. data: {
  752. //標題
  753. labels: ['黑手阿爸', '微電影 激「立」預告片', '那些足球教我的事','愛是最短的距離---織足藏樂館', 'GreenCampus 綠光篇1', 'GreenCampus 綠光篇2'],
  754. datasets: [
  755. {
  756. label: 'like',
  757. data: [88.7,20.4,55.15,4.5,12.4,9.7],
  758. borderColor:'rgba(255, 206, 86, 1)',
  759. backgroundColor: 'rgba(255, 206, 86, 1)',
  760. },
  761. {
  762. label: 'views',
  763. data: [55.71,15.7,97.1,0,17.1,2.9],
  764. borderColor:'rgba(255, 99, 132, 1)',
  765. backgroundColor: 'rgba(255, 99, 132, 1)',
  766. },
  767. {
  768. label: 'comment',
  769. data: [94.5,2.2,97.7,0.5,2.3,0.1],
  770. borderColor:'rgba(54, 162, 235, 1)',
  771. backgroundColor:'rgba(54, 162, 235, 1)',
  772. },
  773. ],
  774. },
  775. options: {
  776. indexAxis: 'y',
  777. plugins: {
  778. legend: {
  779. display: false,
  780. labels: {
  781. font: {
  782. display: false,
  783. size: 24,
  784. },
  785. },
  786. },
  787. },
  788. scales: {
  789. x: {
  790. ticks: {
  791. font: {
  792. size: 9,
  793. }
  794. },
  795. title: {
  796. display: false,
  797. font: {
  798. family: 'Times',
  799. size: 32,
  800. },
  801. },
  802. },
  803. y: {
  804. title: {
  805. display: true,
  806. },
  807. min: 0,
  808. max: 80,
  809. beginAtZero: true,
  810. }
  811. }
  812. }
  813. });
  814. </script>
  815. </body>
  816. </html>