123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844 |
- <!DOCTYPE html>
- <html lang="zh-TW">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge, Chrome=1">
- <meta http-equiv="Cache-Control" content="no-cache">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
- integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css"
- integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet">
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
- integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.min.css">
- <link rel="stylesheet" href="./style.css">
- <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
- <title>Microfilm</title>
- </head>
- <body>
- <section class='Analytics-report'>
- <div class='Analytics-report-page'>
- <div class='container-fluid'>
- <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
- <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
- <div class='text-end'>
- <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
- </div>
- <div class='Analytics-report-title'>
- <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
- <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
- architecto esse unde eum quas quis quaerat,</p>
- </div>
- </div>
- <div class='Analytics-chart mt-3'>
- <div class="row px-0 mx-0">
- <div class="col-6">
- <!-- <div>
- <h4 class='fw-bold'>Company Overview & its approach</h4>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
- architecto esse unde eum quas quis quaerat,</p>
- </div>
- <div class='mt-3'>
- <h4 class='fw-bold'>Company Overview & its approach</h4>
- <ul>
- <li style="list-style-type: disc">
- Lorem ipsum dolor sit amet.
- </li>
- <li>
- consectetur adipisicing elit.
- </li>
- <li>
- amus voluptate labore sapienten.
- </li>
- </ul>
- </div> -->
- <!-- <canvas id="myChart" width="200" height="200"></canvas> -->
- <h2 class='Data-h2 fw-bold'>觀眾較常收看之影音類型</h2>
- <canvas id="myChart2" width="200" height="200"></canvas>
- <div>
- <h2 class='Data-h2 fw-bold'>台灣微電影發展模式之建構</h2>
- <table class="table-1 table table-bordered">
- <thead>
- <tr>
- <th scope="col"></th>
- <th scope="col">廣告</th>
- <th scope="col">微電影</th>
- <th scope="col">電影</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">時間</th>
- <td>10分-60分</td>
- <td>1分-30分</td>
- <td>90分-120分</td>
- </tr>
- <tr>
- <th scope="row">平台</th>
- <td>主要為電視,延伸至網路</td>
- <td>主要為網路,延伸至電視或電影院</td>
- <td>主要為電影院延伸至電視以及網路</td>
- </tr>
- <tr>
- <th scope="row">內容</th>
- <td>以傳達產品與品牌為主</td>
- <td>透過劇情來傳達品牌認同度</td>
- <td>著重故事情節,無明顯商業宣傳</td>
- </tr>
- <tr>
- <th scope="row">喜好程度</th>
- <td>低</td>
- <td>中</td>
- <td>高</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="col-6">
- <h2 class='Data-h2 fw-bold'>微電影廣告吸引力面向</h2>
- <canvas id="myChart" width="200" height="200"></canvas>
- <h2 class='Data-h2 fw-bold mt-1'>廣告時長與故事類型</h2>
- <div class='border mb-2 pb-3'>
- <div class="row px-0 mx-0">
- <div class="col-6">
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783;" class="fas fa-laugh-beam"></i>
- </div>
- <div class='col-6 px-0'>
- <p>搞笑</p>
- <p>0~5分鐘</p>
- </div>
- </div>
- </div>
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783;" class="fas fa-house-user"></i>
- </div>
- <div class='col-6 px-0'>
- <p>親情</p>
- <p>0~5分鐘</p>
- </div>
- </div>
- </div>
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783;" class="fas fa-heart"></i>
- </div>
- <div class='col-6 px-0'>
- <p>愛情</p>
- <p>5~10分鐘</p>
- </div>
- </div>
- </div>
- </div>
- <div class="col-6">
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783;" class="fas fa-ghost"></i>
- </div>
- <div class='col-6 px-0'>
- <p>懸疑</p>
- <p>5~10分鐘</p>
- </div>
- </div>
- </div>
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783" class="fas fa-hand-holding-heart"></i>
- </div>
- <div class='col-6 px-0'>
- <p>公益</p>
- <p>0~16分鐘</p>
- </div>
- </div>
- </div>
- <div class='adv-type'>
- <div class='row mx-0 px-0'>
- <div class="col-6">
- <i style="font-size: 48px; color:#920783;" class="fas fa-rocket"></i>
- </div>
- <div class='col-6 px-0'>
- <p>夢想</p>
- <p>0~16分鐘</p>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <canvas id="myChart3" width="200" height="200"></canvas> -->
- </div>
- </div>
-
- </div>
- </div>
- </div>
- <div class='Analytics-report-page mt-5'>
- <div class='container-fluid'>
- <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
- <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
- <div class='text-end'>
- <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
- </div>
- <div class='Analytics-report-title'>
- <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
- <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
- architecto esse unde eum quas quis quaerat,</p>
- </div>
- </div>
- <div class='Analytics-chart mt-3'>
- <div class="row px-0 mx-0">
- <div class="col-6">
- <h2 class='Data-h2 fw-bold mt-1'>廣告主演是否為明星佔比</h2>
- <canvas id="myChart-pie" width="200" height="200"></canvas>
- </div>
- <div class="col-6">
- <div class="mt-4">
- <h4 class='fw-bold'>微電影廣告吸引力面向</h4>
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
- architecto esse unde eum quas quis quaerat,</p>
- <div class="mt-3">
- <h4 class='fw-bold'>台灣微電影發展模式之建構</h4>
- <ul>
- <li style="list-style-type: disc">
- Lorem ipsum dolor sit amet.
- </li>
- <li>
- consectetur adipisicing elit.
- </li>
- <li>
- amus voluptate labore sapienten.
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-6 mt-5">
- <h2 class='Data-h2 fw-bold mt-1'>廣告類型與主演是否為明星佔比</h2>
- <div class="row px-0 mx-0">
- <div class="Doughnut-box col-6 px-0 border-end border-bottom">
- <canvas id="myChart-Doughnut1" width="200" height="200"></canvas>
- <p>產品廣告</p>
- </div>
- <div class="Doughnut-box col-6 px-0 border-start border-bottom">
- <canvas id="myChart-Doughnut2" width="200" height="200"></canvas>
- <p>品牌形象廣告</p>
- </div>
- <div class="Doughnut-box col-6 px-0 border-end border-top">
- <canvas id="myChart-Doughnut3" width="200" height="200"></canvas>
- <p>觀念廣告</p>
- </div>
- <div class="Doughnut-box col-6 px-0 border-start border-top">
- <canvas id="myChart-Doughnut4" width="200" height="200"></canvas>
- <p>政府公益</p>
- </div>
- </div>
- </div>
- <div class="col-6">
- <h2 class='Data-h2 fw-bold mt-5'>微電影與其他的影像形式比較分析(FB)</h2>
- <canvas id="myChart-bar" width="200" height="200"></canvas>
- </div>
- </div>
- </div>
- </div>
- <div class='Analytics-report-page mt-5'>
- <div class='container-fluid'>
- <img style="position: absolute;" class='Orange' src="./img/背景橘.png" alt="">
- <img style="position: absolute;" class='Purple' src="./img/背景紫.png" alt="">
- <div class='text-end'>
- <img class='choozmo mt-1' src="./img/logo_choozmo.webp" alt="">
- </div>
- <div class='Analytics-report-title'>
- <h1 class='fw-bold'>微電影網路聲量調查報告</h1>
- <!-- <h1 class='fw-bold'>Preformance One Pager Template</h1> -->
- <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat ratione maiores quasi cum itaque,
- architecto esse unde eum quas quis quaerat,</p>
- </div>
- </div>
- <div class='Analytics-chart mt-3'>
- <div class="row px-0 mx-0">
- <div class="col-6">
- <h2 class='Data-h2 fw-bold mt-1'>微電影與其他的影像形式比較分析</h2>
- <table class="table-1 table table-bordered">
- <thead>
- <tr>
- <th scope="col" style="width: 18%;"></th>
- <th scope="col" class='text-center'>微電影<br>(工研院))</th>
- <th scope="col" class='text-center'>網紅<br>(howhow)</th>
- <th scope="col" class='text-center'>新聞專題<br>(眼球中央、科技新報)</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th scope="row">時間長短</th>
- <td class='text-center'>1分鐘-5分鐘</td>
- <td class='text-center'>1分鐘-10分鐘</td>
- <td class='text-center'>2分鐘-15分鐘</td>
- </tr>
- <tr>
- <th scope="row">播放平台</th>
- <td>Facebook、YouTube</td>
- <td>Facebook、YouTube</td>
- <td>Facebook、YouTube</td>
- </tr>
- <tr>
- <th scope="row">內容</th>
- <td>透過劇情傳達該產品的用途與涵義</td>
- <td>以無釐頭搞笑短劇的脚本結合品牌概念(業配)</td>
- <td>關心社會的趨勢與新聞</td>
- </tr>
- <tr>
- <th scope="row">評估方式</th>
- <td class='text-center'>點擊率</td>
- <td class='text-center'>點擊率</td>
- <td class='text-center'>點擊率</td>
- </tr>
- <tr>
- <th scope="row">置入</th>
- <td class='text-center'>高</td>
- <td class='text-center'>高</td>
- <td class='text-center'>低</td>
- </tr>
- <tr>
- <th scope="row">喜好程度</th>
- <td class='text-center'>中</td>
- <td class='text-center'>高</td>
- <td class='text-center'> 中</td>
- </tr>
- <tr>
- <th scope="row">製片預算</th>
- <td class='text-center'>中</td>
- <td class='text-center'>高</td>
- <td class='text-center'>中</td>
- </tr>
- <tr>
- <th scope="row">不受時空限制</th>
- <td class='text-center'>低</td>
- <td class='text-center'>低</td>
- <td class='text-center'>低</td>
- </tr>
- <tr>
- <th scope="row">故事性強</th>
- <td class='text-center'>高</td>
- <td class='text-center'>中</td>
- <td class='text-center'>中</td>
- </tr>
- <tr>
- <th scope="row">趣味性</th>
- <td class='text-center'>中</td>
- <td class='text-center'>高</td>
- <td class='text-center'>中</td>
- </tr>
- <tr>
- <th scope="row">品質</th>
- <td class='text-center'>中</td>
- <td class='text-center'>中</td>
- <td class='text-center'>中</td>
- </tr>
- <tr>
- <th scope="row">話題性</th>
- <td class='text-center'>低</td>
- <td class='text-center'>高</td>
- <td class='text-center'>中</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.6.2/chart.min.js"
- integrity="sha512-tMabqarPtykgDtdtSqCL3uLVM0gS1ZkUAVhRFu1vSEFgvB73niFQWJuvviDyBGBH22Lcau4rHB5p2K2T0Xvr6Q=="
- crossorigin="anonymous" referrerpolicy="no-referrer"></script>
- <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
- <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
- <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"
- integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
- crossorigin="anonymous"></script>
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js"
- integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT"
- crossorigin="anonymous"></script>
- <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.all.min.js"></script>
- <script src="https://kit.fontawesome.com/0b8ff4e055.js" crossorigin="anonymous"></script>
- <script>
- var ctx = document.getElementById('myChart');
- // var ctx = document.getElementById('myChart');
- var myChart = new Chart(ctx, {
- type: 'bar', //圖表類型
- data: {
- //標題
- labels: ['情感共鳴', '故事出乎意料', '劇情與產品設計巧妙', '製作精良場面浩大', '用戶體驗度高', '其他', '未選'],
- datasets: [{
- label: '', //標籤
- data: [59.13, 59.13, 45.22, 25.22, 10.43, 10.43, 6.96], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 99, 132, 0.2)',
- 'rgba(54, 162, 235, 0.2)',
- 'rgba(255, 206, 86, 0.2)',
- 'rgba(75, 192, 192, 0.2)',
- 'rgba(153, 102, 255, 0.2)',
- 'rgba(255, 159, 64, 0.2)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(255, 206, 86, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1,
- }]
- },
- options: {
- plugins: {
- legend: {
- display: false,
- labels: {
- font: {
- display: false,
- size: 24,
- },
- },
- },
- },
- scales: {
- x: {
- ticks: {
- font: {
- size: 9,
- }
- },
- title: {
- display: false,
- text: '%',
- font: {
- family: 'Times',
- size: 32,
- },
- },
- },
- y: {
- title: {
- display: true,
- text: '%',
- },
- min: 0,
- max: 80,
- beginAtZero: true,
- }
- }
- }
- });
- var ctx2 = document.getElementById('myChart2');
- var myChart2 = new Chart(ctx2, {
- type: 'bar', //圖表類型
- data: {
- //標題
- labels: ['電影/微電影', '音樂/MV', '連續劇/偶像劇', '美食/旅遊', '綜藝/八卦', '笑話趣味影片', '影集', '電玩/動漫'],
- datasets: [{
- label: '# test', //標籤
- data: [40.8, 37.6, 37.2, 32.0, 27.8, 27.7, 27.6, 25.6], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 99, 132, 0.2)',
- 'rgba(54, 162, 235, 0.2)',
- 'rgba(255, 206, 86, 0.2)',
- 'rgba(75, 192, 192, 0.2)',
- 'rgba(153, 102, 255, 0.2)',
- 'rgba(255, 159, 64, 0.2)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(255, 206, 86, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }]
- },
- options: {
- indexAxis: 'y',
- plugins: {
- legend: {
- display: false,
- labels: {
- font: {
- display: false,
- size: 24,
- },
- },
- },
- },
- scales: {
- x: {
- min: 0,
- max: 50,
- title: {
- display: true,
- text: '%',
- },
- },
- y: {
- ticks: {
- beginAtZero: true,
- responsive: true,//符合響應式
- font: {
- size: 12,
- }
- }
- }
- }
- }
- });
- var ctx3 = document.getElementById('myChart-pie');
- var myChart2 = new Chart(ctx3, {
- type: 'pie', //圖表類型
- data: {
- //標題
- datasets: [{
- data: [31, 18, 1], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }],
- labels: [
- '明星',
- '素人',
- '虛擬人',
- ]
- },
- options: {
- responsive: true,
- },
- });
- // Doughnut1-產品廣告
- var ctx4 = document.getElementById('myChart-Doughnut1').getContext('2d');
- var myChart3 = new Chart(ctx4, {
- type: 'doughnut', //圖表類型
- data: {
- //標題
- datasets: [{
- data: [10, 3, 1], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }],
- labels: [
- '明星',
- '素人',
- '虛擬人',
- ]
- },
- options: {
- responsive: true,
- plugins: {
- legend: {
- labels: {
- padding: 10,
- font: {
- size: 10,
- },
- },
- },
- },
- },
- });
- // Doughnut2-品牌形象廣告
- var ctx5 = document.getElementById('myChart-Doughnut2').getContext('2d');
- var myChart4 = new Chart(ctx5, {
- type: 'doughnut', //圖表類型
- data: {
- //標題
- datasets: [{
- data: [15, 13, 0], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }],
- labels: [
- '明星',
- '素人',
- '虛擬人',
- ]
- },
- options: {
- responsive: true,
- plugins: {
- legend: {
- labels: {
- padding: 10,
- font: {
- size: 10,
- },
- },
- },
- },
- },
- });
- // Doughnut3-觀念廣告
- var ctx6 = document.getElementById('myChart-Doughnut3').getContext('2d');
- var myChart5 = new Chart(ctx6, {
- type: 'doughnut', //圖表類型
- data: {
- //標題
- datasets: [{
- data: [1, 1, 0], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }],
- labels: [
- '明星',
- '素人',
- '虛擬人',
- ]
- },
- options: {
- responsive: true,
- plugins: {
- legend: {
- labels: {
- padding: 10,
- font: {
- size: 10,
- },
- },
- },
- },
- },
- });
- // Doughnut4-公益廣告
- var ctx7 = document.getElementById('myChart-Doughnut4').getContext('2d');
- var myChart6 = new Chart(ctx7, {
- type: 'doughnut', //圖表類型
- data: {
- //標題
- datasets: [{
- data: [2, 1, 0], //資料
- //圖表背景色
- backgroundColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //圖表外框線色
- borderColor: [
- 'rgba(255, 206, 86, 1)',
- 'rgba(255, 99, 132, 1)',
- 'rgba(54, 162, 235, 1)',
- 'rgba(75, 192, 192, 1)',
- 'rgba(153, 102, 255, 1)',
- 'rgba(255, 159, 64, 1)'
- ],
- //外框線寬度
- borderWidth: 1
- }],
- labels: [
- '明星',
- '素人',
- '虛擬人',
- ]
- },
- options: {
- responsive: true,
- plugins: {
- legend: {
- labels: {
- padding: 10,
- font: {
- size: 10,
- },
- },
- },
- },
- },
- });
- var ctx8 = document.getElementById('myChart-bar');
- var myChart7 = new Chart(ctx8, {
- type: 'bar', //圖表類型
- data: {
- //標題
- labels: ['黑手阿爸', '微電影 激「立」預告片', '那些足球教我的事','愛是最短的距離---織足藏樂館', 'GreenCampus 綠光篇1', 'GreenCampus 綠光篇2'],
- datasets: [
- {
- label: 'like',
- data: [88.7,20.4,55.15,4.5,12.4,9.7],
- borderColor:'rgba(255, 206, 86, 1)',
- backgroundColor: 'rgba(255, 206, 86, 1)',
- },
- {
- label: 'views',
- data: [55.71,15.7,97.1,0,17.1,2.9],
- borderColor:'rgba(255, 99, 132, 1)',
- backgroundColor: 'rgba(255, 99, 132, 1)',
- },
- {
- label: 'comment',
- data: [94.5,2.2,97.7,0.5,2.3,0.1],
- borderColor:'rgba(54, 162, 235, 1)',
- backgroundColor:'rgba(54, 162, 235, 1)',
- },
- ],
- },
- options: {
- indexAxis: 'y',
- plugins: {
- legend: {
- display: false,
- labels: {
- font: {
- display: false,
- size: 24,
- },
- },
- },
- },
- scales: {
- x: {
- ticks: {
- font: {
- size: 9,
- }
- },
- title: {
- display: false,
- font: {
- family: 'Times',
- size: 32,
- },
- },
- },
- y: {
- title: {
- display: true,
- },
- min: 0,
- max: 80,
- beginAtZero: true,
- }
- }
- }
- });
- </script>
- </body>
- </html>
|