| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="shortcut icon" href="/img/logo.png" />
- <link rel="bookmark" href="/img/logo.png" />
- <link href="/Plugins/animate/animate.min.css" rel="stylesheet" />
- <link rel="stylesheet" href="../DashBoard.css?v3" />
- <script src="/Plugins/jquery-3.4.1/jquery-3.4.1.min.js"></script>
- <script src="/Plugins/animate/xanimate.js"></script>
- <script src="/Plugins/xrequest/xrequest.min.js"></script>
- <title>东科软件</title>
- </head>
- <body style="background-color:black;">
- <div class="box_1920_1080">
- <div class="box_title">
- 功能看板 <span class="box_title_arrow">>>></span>
- </div>
- <div class="box_body" style="display: flex; flex-direction: column;">
- <!--测漏气-->
- <div style="width:1840px;height:480px;display:flex;flex-direction:row;">
- <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_title_warning">
- <td colspan="9" style="color:white;">测漏气产量合格率</td>
- </tr>
- <tr class="tr_title_warning">
- <td>测漏气线</td>
- <td>日生产量</td>
- <td>日合格数</td>
- <td>日合格率</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">1</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">2</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">3</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">4</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">5</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">6</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">7</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">8</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- </table>
- </div>
- <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: column; ">
- <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气1</div>
- <canvas id="canvasDefectA1" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气2</div>
- <canvas id="canvasDefectA2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气3</div>
- <canvas id="canvasDefectA3" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气4</div>
- <canvas id="canvasDefectA4" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气5</div>
- <canvas id="canvasDefectA5" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气6</div>
- <canvas id="canvasDefectA6" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气7</div>
- <canvas id="canvasDefectA7" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">测漏气8</div>
- <canvas id="canvasDefectA8" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- </div>
- </div>
- <!--试水-->
- <div style="width: 1840px; height: 480px; display: flex; flex-direction: row;">
- <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
- <tr class="tr_title_warning">
- <td colspan="9" style="color:white;">试水产量合格率</td>
- </tr>
- <tr class="tr_title_warning">
- <td>试水线号</td>
- <td>日生产量</td>
- <td>日合格数</td>
- <td>日合格率</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">1</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">2</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">3</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- <tr class="tr_bg_light_warning" style="height:30px;">
- <td style="font-size: 18px; width: 11%">4</td>
- <td style="font-size: 18px; width: 11%">1314</td>
- <td style="font-size: 18px; width: 11%">1169</td>
- <td style="font-size: 18px; width: 11%">80%</td>
- </tr>
- </table>
- </div>
- <div style="width: 920px; height: 480px; padding-right: 20px; display: flex; flex-direction: column; ">
- <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <div style="width: 50%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水1</div>
- <canvas id="canvasDefectB1" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 50%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水2</div>
- <canvas id="canvasDefectB2" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- <div style="width: 100%; height: 480px; padding-right: 20px; display: flex; flex-direction: row; ">
- <div style="width: 50%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水3</div>
- <canvas id="canvasDefectB3" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 50%; height: 250px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">试水4</div>
- <canvas id="canvasDefectB4" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(document).ready(function () {
- initData();
- doGetData = setInterval(function () { timeUpdate(); }, 2000);
- });
- function timeUpdate() {
- loadData();
- }
- function loadData() {
- window.DefectA1.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA1.update();
- window.DefectA2.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA2.update();
- window.DefectA3.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA3.update();
- window.DefectA4.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA4.update();
-
- window.DefectB1.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectB1.update();
- window.DefectB2.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectB2.update();
- window.DefectB3.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectB3.update();
- window.DefectB4.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectB4.update();
- window.DefectA5.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA5.update();
- window.DefectA6.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA6.update();
- window.DefectA7.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA7.update();
- window.DefectA8.data.datasets[0].data = [
- randomScalingFactor(8),
- randomScalingFactor(8)
- ];
- window.DefectA8.update();
- //产量计划达成
- window.MonthCL.data.datasets[0].data = [
- randomScalingFactor(1000),
- randomScalingFactor(1000)
- ];
- window.MonthCL.update();
- }
- function initData() {
- window.chartColors = {
- red: 'rgb(255, 99, 132)',
- orange: 'rgb(255, 159, 64)',
- yellow: 'rgb(255, 250, 86)',
- green: 'rgb(75, 192, 192)',
- blue: 'rgb(54, 162, 250)',
- purple: 'rgb(153, 102, 255)',
- grey: 'rgb(231,233,237)'
- };
- var color = Chart.helpers.color;
- window.randomScalingFactor = function (num) {
- return Math.round(Math.random() * num);
- }
- Chart.defaults.global.defaultFontColor = 'white';
- Chart.defaults.global.defaultFontSize = 18;
- Chart.defaults.global.legend.display = false;
- //测漏气设备OEE===========================================
- window.configDefectA1 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气1"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA1 = document.getElementById("canvasDefectA1").getContext("2d");
- window.DefectA1 = new Chart(ctxDefectA1, configDefectA1);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA2 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气2"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA2 = document.getElementById("canvasDefectA2").getContext("2d");
- window.DefectA2 = new Chart(ctxDefectA2, configDefectA2);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA3 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气3"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA3 = document.getElementById("canvasDefectA3").getContext("2d");
- window.DefectA3 = new Chart(ctxDefectA3, configDefectA3);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA4 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气4"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA4 = document.getElementById("canvasDefectA4").getContext("2d");
- window.DefectA4 = new Chart(ctxDefectA4, configDefectA4);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA5 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气5"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA5 = document.getElementById("canvasDefectA5").getContext("2d");
- window.DefectA5 = new Chart(ctxDefectA5, configDefectA5);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA6 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气6"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA6 = document.getElementById("canvasDefectA6").getContext("2d");
- window.DefectA6 = new Chart(ctxDefectA6, configDefectA6);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA7 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气7"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA7 = document.getElementById("canvasDefectA7").getContext("2d");
- window.DefectA7 = new Chart(ctxDefectA7, configDefectA7);
- //===================================================
- //测漏气设备OEE===========================================
- window.configDefectA8 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "测漏气8"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA8 = document.getElementById("canvasDefectA8").getContext("2d");
- window.DefectA8 = new Chart(ctxDefectA8, configDefectA8);
- //===================================================
- //试水设备OEE===========================================
- window.configDefectB1 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "试水1"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectB1 = document.getElementById("canvasDefectB1").getContext("2d");
- window.DefectB1 = new Chart(ctxDefectB1, configDefectB1);
- //===================================================
- //试水设备OEE===========================================
- window.configDefectB2 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "试水2"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectB2 = document.getElementById("canvasDefectB2").getContext("2d");
- window.DefectB2 = new Chart(ctxDefectB2, configDefectB2);
- //===================================================
- //试水设备OEE===========================================
- window.configDefectB3 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "试水3"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectB3 = document.getElementById("canvasDefectB3").getContext("2d");
- window.DefectB3 = new Chart(ctxDefectB3, configDefectB3);
- //===================================================
- //试水设备OEE===========================================
- window.configDefectB4 = {
- data: {
- labels: ['工作时间', '故障时间'],
- datasets: [{
- label: 'OEE',
- backgroundColor: [
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.green,
- window.chartColors.orange
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "试水4"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectB4 = document.getElementById("canvasDefectB4").getContext("2d");
- window.DefectB4 = new Chart(ctxDefectB4, configDefectB4);
- //===================================================
- }
- </script>
- <script src="/Plugins/chartjs-2.8.0/chart-2.8.min.js"></script>
- <script src="/Plugins/chartjs-2.8.0/chartjs-plugin-datalabels.js"></script>
- <script src="/Plugins/chartjs-2.8.0/utils.js"></script>
- <script src="/Plugins/circleChart/circleChart.min.js"></script>
- </body>
- </html>
|