| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371 |
- <!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>
- <style>
- .container {
- display: flex;
- flex-direction: column; /* 设置子元素竖排排列 */
- width: 500px;
- }
- .containerson {
- height: 500px;
- }
- </style>
- </head>
- <body style="background-color:black;">
- <div class="box_1920_1080">
- <div class="box_title" style="display:flex;flex-direction:row;">
- <div style="width:30%;text-align:left;"></div>
- <div style="width: 40%; text-align: center; font-size: 38px; font-weight: 700">施釉车间看板</div>
- <div style="width:30%;text-align:right;"><span class="box_title_loading" style="font-size:32px;" id="报表加载"></span></div>
- </div>
- <div class="box_body" style="display: flex; flex-direction: column;">
- <!--注浆数据表格-->
- <div style="width:1840px;height:680px;display:flex;flex-direction:row;">
- <!--施釉设备重要数据-->
- <!--<div style="width: 48%; height: 680px;">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 99.8%;">
- <tr class="tr_title_warning">
- <td colspan="10" style="color: white;">施釉设备重要数据</td>
- </tr>
- <tr class="tr_title_warning" style="height: 50px;">
- <td style="width: 12%; font-size: 10px; padding: 0px 0px 0px 0px;">产品条码</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">产品型号</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">施釉产线</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">施釉前重</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px; ">施釉后重</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">施釉房号</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">施釉流量</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px;">施釉喷幅</td>
- <td style="width: 10%; font-size: 10px; padding: 0px 0px 0px 0px; ">釉浆温度</td>
- <td style="width: 8%; font-size: 10px; padding: 0px 0px 0px 0px; ">施釉压力</td>
- </tr>
- </table>
- <div style=" height: 522px; overflow: hidden; width: 100%;">
- <div>
- <table id="dayTable_template" style="display:none;">
- <tr class="tr_title_warning" style="height: 50px;">
- <td style="width: 12%; font-size: 10px; padding: 0px 0px 0px 0px;">{产品条码}</td>
- <td style="width: 10%; font-size: 10px;">{产品型号}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉产线}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉前重}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉后重}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉房号}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉流量}</td>
- <td style="width: 10%; font-size: 10px; ">{施釉喷幅}</td>
- <td style="width: 10%; font-size: 10px; ">{釉浆温度}</td>
- <td style="width: 8%; font-size: 10px;">{施釉压力}</td>
- </tr>
- </table>
- </div>
- <table id="dayTable" style="width: 100%; ">
- </table>
- </div>
- </div>-->
- <div class="container">
- <div class="containerson">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉每日成品合格率</div>
- <canvas id="canvasDayZLA" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div class="containerson">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉每月成品合格率</div>
- <canvas id="canvasDayZLB" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div class="containerson">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉每日成品冷补缺陷率</div>
- <canvas id="canvasDayZLC" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div class="containerson">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉每日半成品损坯率</div>
- <canvas id="canvasDayZL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- <div style="width: 70%; height: 340px; position: absolute; right: 40px; ">
- <div class="d-flex justify-content-center">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉线24小时产量</div>
- <canvas id="canvasHourCL" style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; height:340px;width:100%"></canvas>
- </div>
- </div>
- <div style="width: 30%; height: 340px; margin-top:365px;margin-left:200px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉工号产量</div>
- <canvas id="canvasDayCL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 280px; width: 100%;margin-top:-38px;"></canvas>
- </div>
- <div style="width: 30%; height: 380px; right: 40px; margin-top: 365px; ">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉七日产量</div>
- <canvas id="canvasDayCC" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 280px; width: 100%;margin-top:-38px;"></canvas>
- </div>
- </div>
- <!--缺陷统计-->
- <div style="max-width: 1340px; height: 230px; display: flex; flex-direction: row; margin-left: auto; ">
- <!--<div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">施釉质量七日趋势图</div>
- <canvas id="canvasDayZL" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>-->
- <div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">归属施釉缺陷(今日TOP3)</div>
- <canvas id="canvasDefectA" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:15px;font-weight:600; text-align:center">SSY001-SSY005</div>
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">日成品缺陷(今日TOP5)</div>
- <canvas id="canvasDefectC" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:15px;font-weight:600; text-align:center">SSY002-SSY004</div>
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">日成品缺陷(今日TOP5)</div>
- <canvas id="canvasDefectD" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center">釉坯库库存</div>
- <canvas id="canvasDefectB" style="-moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- <div style="width: 25%; height: 230px;">
- <div style="color:white;font-size:20px;font-weight:600; text-align:center;">精坯库库存</div>
- <canvas id="canvasJPKC" style="margin-top:15px; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; height: 200px; width: 100%"></canvas>
- </div>
- </div>
- </div>
- </div>
- <script>
- var mainInterval;
- var mainRowCount = 0;
- function loadMainTable() {
- if (mainInterval) {
- clearInterval(mainInterval);
- //console.log("Interval Stop!");
- }
- //$.get("demo.ashx?m=MonthTable", function (data){
- // var json = JSON.parse(data);
- // if (json["success"] == true) {
- // $("#dayTable").html("");
- // for (var i = 0; i < json["rows"].length; i++) {
- // var temp = $("#dayTable_template").html();
- // //temp = temp.replace("<tbody>", "").replace("</tbody>", "");
- // temp = temp.replace('{产品条码}', json["rows"][i]['产品条码']);
- // temp = temp.replace('{产品型号}', json["rows"][i]['产品型号']);
- // temp = temp.replace('{施釉产线}', json["rows"][i]['施釉产线']);
- // temp = temp.replace('{施釉前重}', json["rows"][i]['施釉前重']);
- // temp = temp.replace('{施釉后重}', json["rows"][i]['施釉后重']);
- // temp = temp.replace('{施釉房号}', json["rows"][i]['施釉房号']);
- // temp = temp.replace('{施釉流量}', json["rows"][i]['施釉流量']);
- // temp = temp.replace('{施釉喷幅}', json["rows"][i]['施釉喷幅']);
- // temp = temp.replace('{釉浆温度}', json["rows"][i]['釉浆温度']);
- // temp = temp.replace('{施釉压力}', json["rows"][i]['施釉压力']);
- // $("#dayTable").append(temp);
- // }
- // mainRowCount = json["rows"].length;
- // mainInterval = setInterval(mainScroll, 3000);
- // }
- //});
- }
- function mainScroll() {
- var scrollHeight = $("#dayTable").find("tr").outerHeight();
- $("#dayTable").animate({ marginTop: -scrollHeight, }, 500,
- function () {
- $(this).css({ marginTop: "0px", }).find("tr:first").appendTo(this);
- if (--mainRowCount == -1) loadMainTable();
- }
- );
- }
- $(document).ready(function () {
- initData();
- loadMainTable();
- setInterval(function () { loadMainTable(); }, 600000);
- DdfectData();
- setInterval(function () { DdfectData(); }, 180000);
- DdfectDataB();
- setInterval(function () { DdfectDataB(); }, 180000);
- //ZxData();
- //setInterval(function () { ZxData(); }, 180000);
- ClData();
- setInterval(function () { ClData(); }, 180000);
- ZxDataH();
- setInterval(function () { ZxDataH(); }, 180000);
- CCData();
- setInterval(function () { CCData(); }, 180000);
- DataKC();
- setInterval(function () { DataKC(); }, 180000);
- DailypassrateDayData();
- setInterval(function () { DailypassrateDayData(); }, 180000);
- DailypassrateMonthData();
- setInterval(function () { DailypassrateMonthData(); }, 180000);
- DailypassrateRepairData();
- setInterval(function () { DailypassrateRepairData(); }, 180000);
- DailypassrateSemifinishedData();
- setInterval(function () { DailypassrateSemifinishedData(); }, 180000);
- });
- //精坯库库存
- function DataKC() {
- $.get("demo.ashx?m=kc", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- var count1 = parseFloat(json["rows"][0]["数量"]);
- var count2 = parseFloat(json["rows"][1]["数量"]);
- var goodtype1 = json["rows"][0]["产品类别"];
- var goodtype2 = json["rows"][1]["产品类别"];
- window.Defectjpkc.data.datasets[0].data = [count1, count2];
- window.Defectjpkc.data.labels = [goodtype1, goodtype2]
- window.Defectjpkc.update();
- }
- });
- }
- ////施釉七日趋势图
- //function ZxData(){
- // $.get("demo.ashx?m=zx", function (data) {
- // var json = JSON.parse(data);
- // if (json["success"] == true) {
- // var BJ1 = parseFloat(json["rows"][0]["施釉合格率"]);
- // var BJ2 = parseFloat(json["rows"][1]["施釉合格率"]);
- // var BJ3 = parseFloat(json["rows"][2]["施釉合格率"]);
- // var BJ4 = parseFloat(json["rows"][3]["施釉合格率"]);
- // var BJ5 = parseFloat(json["rows"][4]["施釉合格率"]);
- // var BJ6 = parseFloat(json["rows"][5]["施釉合格率"]);
- // var BJ7 = parseFloat(json["rows"][6]["施釉合格率"]);
- // var day1 = json["rows"][0]["日期"];
- // var day2 = json["rows"][1]["日期"];
- // var day3 = json["rows"][2]["日期"];
- // var day4 = json["rows"][3]["日期"];
- // var day5 = json["rows"][4]["日期"];
- // var day6 = json["rows"][5]["日期"];
- // var day7 = json["rows"][6]["日期"];
- // var count1 = parseFloat(json["rows"][0]["出窑数"]);
- // var count2 = parseFloat(json["rows"][1]["出窑数"]);
- // var count3 = parseFloat(json["rows"][2]["出窑数"]);
- // var count4 = parseFloat(json["rows"][3]["出窑数"]);
- // var count5 = parseFloat(json["rows"][4]["出窑数"]);
- // var count6 = parseFloat(json["rows"][5]["出窑数"]);
- // var count7 = parseFloat(json["rows"][6]["出窑数"]);
- // window.DayZL.data.datasets[0].data = [BJ1, BJ2, BJ3, BJ4, BJ5, BJ6, BJ7];
- // window.DayZL.data.datasets[1].data = [count1, count2, count3, count4, count5, count6, count7];
- // window.DayZL.data.labels = [day1, day2, day3, day4, day5, day6, day7];
- // window.DayZL.update();
- // }
- // });
- //}
- //施釉每日成品合格率
- function DailypassrateDayData() {
- $.get("demo.ashx?m=Dailypassrate&type=day&repair=false", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- console.log(json, '施釉每日成品合格率')
- // 存储施釉合格率
- let bjRates = [];
- // 存储出窑数
- let counts = [];
- // 存储日期
- let days = [];
- for (let i = 0; i < json["rows"].length; i++) {
- let row = json["rows"][i];
- // 添加施釉合格率
- bjRates.push(parseFloat(row["施釉合格率"]));
- // 添加出窑数
- counts.push(parseFloat(row["出窑数"]));
- // 添加日期
- days.push(row["日期"]);
- }
- window.DayZLA.data.datasets[0].data = bjRates;
- window.DayZLA.data.datasets[1].data = counts;
- window.DayZLA.data.labels = days;
- window.DayZLA.update();
- }
- });
- }
- //施釉每月成品合格率
- function DailypassrateMonthData() {
- $.get("demo.ashx?m=Dailypassrate&type=month&repair=false", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- console.log(json, '施釉每月成品合格率')
- // 存储施釉合格率
- let bjRates = [];
- // 存储出窑数
- let counts = [];
- // 存储日期
- let days = [];
- for (let i = 0; i < json["rows"].length; i++) {
- let row = json["rows"][i];
- // 添加施釉合格率
- bjRates.push(parseFloat(row["施釉合格率"]));
- // 添加出窑数
- counts.push(parseFloat(row["出窑数"]));
- // 添加日期
- days.push(row["日期"]);
- }
- window.DayZLB.data.datasets[0].data = bjRates;
- window.DayZLB.data.datasets[1].data = counts;
- window.DayZLB.data.labels = days;
- window.DayZLB.update();
- }
- });
- }
- //施釉每日成品冷补缺陷率
- function DailypassrateRepairData() {
- $.get("demo.ashx?m=Dailypassrate&type=day&repair=true", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- console.log(json, '施釉每日成品冷补缺陷率')
- // 存储施釉合格率
- let bjRates = [];
- // 存储出窑数
- let counts = [];
- // 存储日期
- let days = [];
- for (let i = 0; i < json["rows"].length; i++) {
- let row = json["rows"][i];
- // 添加施釉合格率
- bjRates.push(parseFloat(row["施釉合格率"]));
- // 添加出窑数
- counts.push(parseFloat(row["出窑数"]));
- // 添加日期
- days.push(row["日期"]);
- }
- window.DayZLC.data.datasets[0].data = bjRates;
- window.DayZLC.data.datasets[1].data = counts;
- window.DayZLC.data.labels = days;
- window.DayZLC.update();
- }
- });
- }
- //施釉每日半成品损坯率
- function DailypassrateSemifinishedData() {
- $.get("demo.ashx?m=DailypassrateSemifinished", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- console.log(json, '施釉每日半成品损坯率')
- // 存储施釉合格率
- let bjRates = [];
- // 存储出窑数
- let counts = [];
- // 存储日期
- let days = [];
- for (let i = 0; i < json["rows"].length; i++) {
- let row = json["rows"][i];
- // 添加施釉合格率
- bjRates.push(parseFloat(row["损坯率"]));
- // 添加出窑数
- counts.push(parseFloat(row["出窑数"]));
- // 添加日期
- days.push(row["日期"]);
- }
- window.DayZL.data.datasets[0].data = bjRates;
- window.DayZL.data.datasets[1].data = counts;
- window.DayZL.data.labels = days;
- window.DayZL.update();
- }
- });
- }
- //每小时产量折线图
- function ZxDataH() {
- $.get("demo.ashx?m=h", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- var SY1 = parseFloat(json["rows"][0]["一线施釉数量"]);
- var SY2 = parseFloat(json["rows"][1]["一线施釉数量"]);
- var SY3 = parseFloat(json["rows"][2]["一线施釉数量"]);
- var SY4 = parseFloat(json["rows"][3]["一线施釉数量"]);
- var SY5 = parseFloat(json["rows"][4]["一线施釉数量"]);
- var SY6 = parseFloat(json["rows"][5]["一线施釉数量"]);
- var SY7 = parseFloat(json["rows"][6]["一线施釉数量"]);
- var SY8 = parseFloat(json["rows"][7]["一线施釉数量"]);
- var SY9 = parseFloat(json["rows"][8]["一线施釉数量"]);
- var SY10 = parseFloat(json["rows"][9]["一线施釉数量"]);
- var SY11 = parseFloat(json["rows"][10]["一线施釉数量"]);
- var SY12 = parseFloat(json["rows"][11]["一线施釉数量"]);
- var SY13 = parseFloat(json["rows"][12]["一线施釉数量"]);
- var SY14 = parseFloat(json["rows"][13]["一线施釉数量"]);
- var SY15 = parseFloat(json["rows"][14]["一线施釉数量"]);
- var SY16 = parseFloat(json["rows"][15]["一线施釉数量"]);
- var SY17 = parseFloat(json["rows"][16]["一线施釉数量"]);
- var SY18 = parseFloat(json["rows"][17]["一线施釉数量"]);
- var SY19 = parseFloat(json["rows"][18]["一线施釉数量"]);
- var SY20 = parseFloat(json["rows"][19]["一线施釉数量"]);
- var SY21 = parseFloat(json["rows"][20]["一线施釉数量"]);
- var SY22 = parseFloat(json["rows"][21]["一线施釉数量"]);
- var SY23 = parseFloat(json["rows"][22]["一线施釉数量"]);
- var SY24 = parseFloat(json["rows"][23]["一线施釉数量"]);
- var SYX1 = parseFloat(json["rows"][0]["二线施釉数量"]);
- var SYX2 = parseFloat(json["rows"][1]["二线施釉数量"]);
- var SYX3 = parseFloat(json["rows"][2]["二线施釉数量"]);
- var SYX4 = parseFloat(json["rows"][3]["二线施釉数量"]);
- var SYX5 = parseFloat(json["rows"][4]["二线施釉数量"]);
- var SYX6 = parseFloat(json["rows"][5]["二线施釉数量"]);
- var SYX7 = parseFloat(json["rows"][6]["二线施釉数量"]);
- var SYX8 = parseFloat(json["rows"][7]["二线施釉数量"]);
- var SYX9 = parseFloat(json["rows"][8]["二线施釉数量"]);
- var SYX10 = parseFloat(json["rows"][9]["二线施釉数量"]);
- var SYX11 = parseFloat(json["rows"][10]["二线施釉数量"]);
- var SYX12 = parseFloat(json["rows"][11]["二线施釉数量"]);
- var SYX13 = parseFloat(json["rows"][12]["二线施釉数量"]);
- var SYX14 = parseFloat(json["rows"][13]["二线施釉数量"]);
- var SYX15 = parseFloat(json["rows"][14]["二线施釉数量"]);
- var SYX16 = parseFloat(json["rows"][15]["二线施釉数量"]);
- var SYX17 = parseFloat(json["rows"][16]["二线施釉数量"]);
- var SYX18 = parseFloat(json["rows"][17]["二线施釉数量"]);
- var SYX19 = parseFloat(json["rows"][18]["二线施釉数量"]);
- var SYX20 = parseFloat(json["rows"][19]["二线施釉数量"]);
- var SYX21 = parseFloat(json["rows"][20]["二线施釉数量"]);
- var SYX22 = parseFloat(json["rows"][21]["二线施釉数量"]);
- var SYX23 = parseFloat(json["rows"][22]["二线施釉数量"]);
- var SYX24 = parseFloat(json["rows"][23]["二线施釉数量"]);
- var day1 = json["rows"][0]["日期"];
- var day2 = json["rows"][1]["日期"];
- var day3 = json["rows"][2]["日期"];
- var day4 = json["rows"][3]["日期"];
- var day5 = json["rows"][4]["日期"];
- var day6 = json["rows"][5]["日期"];
- var day7 = json["rows"][6]["日期"];
- var day8 = json["rows"][7]["日期"];
- var day9 = json["rows"][8]["日期"];
- var day10 = json["rows"][9]["日期"];
- var day11 = json["rows"][10]["日期"];
- var day12 = json["rows"][11]["日期"];
- var day13 = json["rows"][12]["日期"];
- var day14 = json["rows"][13]["日期"];
- var day15 = json["rows"][14]["日期"];
- var day16 = json["rows"][15]["日期"];
- var day17 = json["rows"][16]["日期"];
- var day18 = json["rows"][17]["日期"];
- var day19 = json["rows"][18]["日期"];
- var day20 = json["rows"][19]["日期"];
- var day21 = json["rows"][20]["日期"];
- var day22 = json["rows"][21]["日期"];
- var day23 = json["rows"][22]["日期"];
- var day24 = json["rows"][23]["日期"];
- window.DayCLH.data.datasets[0].data = [SY1, SY2, SY3, SY4, SY5, SY6, SY7, SY8, SY9, SY10, SY11, SY12, SY13, SY14, SY15, SY16, SY17, SY18, SY19, SY20, SY21, SY22, SY23, SY24];
- window.DayCLH.data.datasets[1].data = [SYX1, SYX2, SYX3, SYX4, SYX5, SYX6, SYX7, SYX8, SYX9, SYX10, SYX11, SYX12, SYX13, SYX14, SYX15, SYX16, SYX17, SYX18, SYX19, SYX20, SYX21, SYX22, SYX23, SYX24];
- window.DayCLH.data.labels = [day1, day2, day3, day4, day5, day6, day7, day8, day9, day10, day11, day12, day13, day14, day15, day16, day17, day18, day19, day20, day21, day22, day23, day24];
- window.DayCLH.update();
- }
- });
- }
- //吹尘工号产量
- function CCData() {
- $.get("demo.ashx?m=cc", function (data) {
- var json = JSON.parse(data);
- let a = [];
- let b = [];
- if (json["success"] == true) {
- //var num = parseInt(json["rows"][0]["ROWNUM"]);
- var num = parseInt(json["rows"].length);
- for (var i = 0; i < num; i++) {
- a.push(parseInt(json["rows"][i]["产量"]));
- b.push(json["rows"][i]["日期"]);
- }
- window.DayCC.data.datasets[0].data = a;
- window.DayCC.data.labels = b;
- window.DayCC.update();
- }
- });
- }
- //施釉工号产量
- function ClData() {
- $.get("demo.ashx?m=cl", function (data) {
- var json = JSON.parse(data);
- let a = [];
- let b = [];
- if (json["success"] == true) {
- //var num = parseInt(json["rows"][0]["ROWNUM"]);
- var num = parseInt(json["rows"].length);
- for (var i = 0; i < num; i++) {
- a.push(parseInt(json["rows"][i]["产量"]));
- b.push(json["rows"][i]["工号"]);
- }
- window.DayCL.data.datasets[0].data = a;
- window.DayCL.data.labels = b;
- window.DayCL.update();
- }
- });
- }
- /**
- * 归属施釉缺陷(今日TOP3)
- * SY001 - SSY005 月成品缺陷(每月TOP5)
- * SSY002-SSY004 月成品缺陷(每月TOP5)
- * **/
- function DdfectData() {
- $.get("demo.ashx?m=defect", function (data) {
- var json = JSON.parse(data);
- let a1 = [];
- let b1 = [];
- let a2 = [];
- let b2 = [];
- let a3 = [];
- let b3 = [];
- if (json["success"] == true) {
- //var num = parseInt(json["rows"][0]["ROWNUM"]);
- //归属施釉缺陷(今日TOP3)数据装载
- var num1 = parseInt(json["rows"]["Table1"].length);
- for (var i = 0; i < num1; i++) {
- a1.push(parseInt(json["rows"]["Table1"][i]["数量"]));
- b1.push(json["rows"]["Table1"][i]["缺陷名称"]);
- }
- window.DefectA.data.datasets[0].data = a1;
- window.DefectA.data.labels = b1;
- window.DefectA.update();
- //SSY001-SSY005 月成品缺陷(每月TOP5)数据装载
- var num2 = parseInt(json["rows"]["Table2"].length);
- for (var i = 0; i < num2; i++) {
- a2.push(parseInt(json["rows"]["Table2"][i]["数量"]));
- b2.push(json["rows"]["Table2"][i]["缺陷名称"]);
- }
- window.DefectC.data.datasets[0].data = a2;
- window.DefectC.data.labels = b2;
- window.DefectC.update();
- //SSY002-SSY004 月成品缺陷(每月TOP5)数据装载
- var num3 = parseInt(json["rows"]["Table3"].length);
- for (var i = 0; i < num3; i++) {
- a3.push(parseInt(json["rows"]["Table3"][i]["数量"]));
- b3.push(json["rows"]["Table3"][i]["缺陷名称"]);
- }
- window.DefectD.data.datasets[0].data = a3;
- window.DefectD.data.labels = b3;
- window.DefectD.update();
- }
- });
- }
- function DdfectDataB() {
- $.get("demo.ashx?m=defectb", function (data) {
- var json = JSON.parse(data);
- if (json["success"] == true) {
- var count1 = parseFloat(json["rows"][0]["数量"]);
- var count2 = parseFloat(json["rows"][1]["数量"]);
- var goodtype1 = json["rows"][0]["产品类别"];
- var goodtype2 = json["rows"][1]["产品类别"];
- window.DefectB.data.datasets[0].data = [count1, count2];
- window.DefectB.data.labels = [goodtype1, goodtype2]
- window.DefectB.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;
- //半检一检各项趋势图=====================================
- window.configDayZLA = {
- data: {
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [{
- type: 'line',
- label: "合格率",
- yAxesGroup: 'A',
- yAxisID: 'A',
- backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }, {
- label: '产量',
- yAxesGroup: 'B',
- yAxisID: 'B',
- backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: '质量统计'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- id: 'B',
- name: 'B',
- scalePositionLeft: true,
- position: 'left',
- scaleLabel: {
- display: false,
- labelString: 'Value'
- },
- ticks: {
- min: 0,
- stepSize: 500,
- max: 3000
- }
- }
- , {
- display: true,
- id: 'A',
- name: 'A',
- scalePositionLeft: false,
- position: 'right',
- scaleLabel: {
- display: false,
- labelString: 'Value2'
- },
- ticks: {
- min: 80,
- stepSize: 5,
- max: 100
- }
- }]
- }
- }
- };
- var ctxDayZLA = document.getElementById("canvasDayZLA").getContext("2d");
- window.DayZLA = new Chart(ctxDayZLA, configDayZLA);
- window.configDayZLB = {
- data: {
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [{
- type: 'line',
- label: "合格率",
- yAxesGroup: 'A',
- yAxisID: 'A',
- backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }, {
- label: '产量',
- yAxesGroup: 'B',
- yAxisID: 'B',
- backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: '质量统计'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- id: 'B',
- name: 'B',
- scalePositionLeft: true,
- position: 'left',
- scaleLabel: {
- display: false,
- labelString: 'Value'
- },
- ticks: {
- min: 0,
- stepSize: 15000,
- max: 90000
- }
- }
- , {
- display: true,
- id: 'A',
- name: 'A',
- scalePositionLeft: false,
- position: 'right',
- scaleLabel: {
- display: false,
- labelString: 'Value2'
- },
- ticks: {
- min: 80,
- stepSize: 5,
- max: 100
- }
- }]
- }
- }
- };
- var ctxDayZLB = document.getElementById("canvasDayZLB").getContext("2d");
- window.DayZLB = new Chart(ctxDayZLB, configDayZLB);
- window.configDayZLC = {
- data: {
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [{
- type: 'line',
- label: "合格率",
- yAxesGroup: 'A',
- yAxisID: 'A',
- backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }, {
- label: '产量',
- yAxesGroup: 'B',
- yAxisID: 'B',
- backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: '质量统计'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- id: 'B',
- name: 'B',
- scalePositionLeft: true,
- position: 'left',
- scaleLabel: {
- display: false,
- labelString: 'Value'
- },
- ticks: {
- min: 0,
- stepSize: 500,
- max: 3000
- }
- }
- , {
- display: true,
- id: 'A',
- name: 'A',
- scalePositionLeft: false,
- position: 'right',
- scaleLabel: {
- display: false,
- labelString: 'Value2'
- },
- ticks: {
- min: 80,
- stepSize: 5,
- max: 100
- }
- }]
- }
- }
- };
- var ctxDayZLC = document.getElementById("canvasDayZLC").getContext("2d");
- window.DayZLC = new Chart(ctxDayZLC, configDayZLC);
- window.configDayZL = {
- data: {
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [{
- type: 'line',
- label: "合格率",
- yAxesGroup: 'A',
- yAxisID: 'A',
- backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(),
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }, {
- label: '产量',
- yAxesGroup: 'B',
- yAxisID: 'B',
- backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 1,
- data: [0, 0, 0, 0, 0, 0, 0],
- fill: false
- }]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: '质量统计'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- id: 'B',
- name: 'B',
- scalePositionLeft: true,
- position: 'left',
- scaleLabel: {
- display: false,
- labelString: 'Value'
- },
- ticks: {
- min: 0,
- stepSize: 500,
- max: 3000
- }
- }
- , {
- display: true,
- id: 'A',
- name: 'A',
- scalePositionLeft: false,
- position: 'right',
- scaleLabel: {
- display: false,
- labelString: 'Value2'
- },
- ticks: {
- min: 80,
- stepSize: 5,
- max: 100
- }
- }]
- }
- }
- };
- var ctxDayZL = document.getElementById("canvasDayZL").getContext("2d");
- window.DayZL = new Chart(ctxDayZL, configDayZL);
- //===================================================
- //归属施釉缺陷(今日TOP3===========================================
- window.configDefectA = {
- data: {
- labels: ['1', '2', '3'],
- datasets: [{
- label: '工序',
- backgroundColor: [
- color(window.chartColors.red).alpha(0.35).rgbString(),
- color(window.chartColors.blue).alpha(0.35).rgbString(),
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString(),
- color(window.chartColors.purple).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.red,
- window.chartColors.blue,
- window.chartColors.green,
- window.chartColors.orange,
- window.chartColors.purple
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "甲班缺陷"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectA = document.getElementById("canvasDefectA").getContext("2d");
- window.DefectA = new Chart(ctxDefectA, configDefectA);
- //SSY001-SSY005 月成品缺陷(每月TOP5)===========================================
- window.configDefectC = {
- data: {
- labels: ['1', '2', '3', '4', '5'],
- datasets: [{
- label: '工序',
- backgroundColor: [
- color(window.chartColors.red).alpha(0.35).rgbString(),
- color(window.chartColors.blue).alpha(0.35).rgbString(),
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString(),
- color(window.chartColors.purple).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.red,
- window.chartColors.blue,
- window.chartColors.green,
- window.chartColors.orange,
- window.chartColors.purple
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0, 0, 0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "甲班缺陷"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectC = document.getElementById("canvasDefectC").getContext("2d");
- window.DefectC = new Chart(ctxDefectC, configDefectC);
- //SSY002-SSY004 月成品缺陷(每月TOP5)==============================================
- window.configDefectD = {
- data: {
- labels: ['1', '2', '3', '4', '5'],
- datasets: [{
- label: '工序',
- backgroundColor: [
- color(window.chartColors.red).alpha(0.35).rgbString(),
- color(window.chartColors.blue).alpha(0.35).rgbString(),
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString(),
- color(window.chartColors.purple).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.red,
- window.chartColors.blue,
- window.chartColors.green,
- window.chartColors.orange,
- window.chartColors.purple
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0, 0, 0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "甲班缺陷"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectD = document.getElementById("canvasDefectD").getContext("2d");
- window.DefectD = new Chart(ctxDefectD, configDefectD);
- //===================================================
- //成检缺陷TOP5===========================================
- window.configDefectB = {
- data: {
- labels: ['缺陷1', '缺陷2', '缺陷3'],
- datasets: [{
- label: '工序',
- backgroundColor: [
- color(window.chartColors.red).alpha(0.35).rgbString(),
- color(window.chartColors.blue).alpha(0.35).rgbString(),
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString(),
- color(window.chartColors.purple).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.red,
- window.chartColors.blue,
- window.chartColors.green,
- window.chartColors.orange,
- window.chartColors.purple
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "甲班缺陷"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectB = document.getElementById("canvasDefectB").getContext("2d");
- window.DefectB = new Chart(ctxDefectB, configDefectB);
- //===================================================
- //侧漏气产量柱状图=====================================
- window.canvasDayCL = {
- data: {
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [
- {
- label: "产量",
- fill: false,
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 15,
- data: [0, 0, 0, 0, 0, 0, 0, 0]
- }
- ]
- },
- type: 'bar',
- options: {
- legend: {
- display: true
- },
- title: {
- display: true,
- text: ""
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- stacked: false,
- barThickness: 40
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- min: 0,
- //stepSize: 200,
- //max: 1000
- }
- }]
- }
- }
- };
- var ctxDayCL = document.getElementById("canvasDayCL").getContext("2d");
- window.DayCL = new Chart(ctxDayCL, canvasDayCL);
- //===================================================
- //每小时产量=========================================
- window.canvasHourCL = {
- data: {
- labels: [],
- datasets: [{
- label: "施釉4+1",
- fill: false,
- backgroundColor: color(window.chartColors.red).alpha(0.6).rgbString(),
- borderColor: window.chartColors.red,
- borderWidth: 2,
- pointRadius: 12,
- data: []
- }, {
- label: "施釉6+1",
- fill: false,
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 12,
- data: []
- }]
- },
- type: 'line',
- options: {
- responsive: true,
- legend: {
- display: true
- },
- title: {
- display: true,
- text: '每小时产量'
- },
- tooltips: {
- mode: 'index',
- intersect: false,
- },
- hover: {
- mode: 'nearest',
- intersect: true
- },
- scales: {
- xAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: ''
- }
- }],
- yAxes: [{
- display: true,
- scaleLabel: {
- display: false,
- labelString: 'Value'
- },
- ticks: {
- min: 0,
- stepSize: 50,
- max: 300
- }
- }]
- }
- }
- };
- var ctxHourCL = document.getElementById("canvasHourCL").getContext("2d");
- window.DayCLH = new Chart(ctxHourCL, canvasHourCL);
- //===================================================
- //吹尘产量===========================================
- window.canvasDayCC = {
- barWidth: 10,
- data: {
- barWidth: 10,
- labels: ["01", "02", "03", "04", "05", "06", "07"],
- datasets: [
- {
- label: "产量",
- fill: false,
- backgroundColor: color(window.chartColors.blue).alpha(0.6).rgbString(),
- borderColor: window.chartColors.blue,
- borderWidth: 2,
- pointRadius: 15,
- barWidth: 10,
- categoryPercentage: 0.5,
- data: [0, 0, 0, 0, 0, 0, 0, 0]
- }
- ]
- },
- type: 'bar',
- barWidth: 10,
- options: {
- legend: {
- display: true
- },
- barWidth: 10,
- title: {
- display: true,
- text: ""
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true,
- scales: {
- xAxes: [{
- barWidth: 10,
- stacked: false,
- barThickness: 40
- }],
- yAxes: [{
- display: true,
- stacked: false,
- ticks: {
- min: 0,
- //barWidth: 10,
- //stepSize: 200,
- //max: 1000
- }
- }]
- }
- }
- };
- var ctxDayCC = document.getElementById("canvasDayCC").getContext("2d");
- window.DayCC = new Chart(ctxDayCC, canvasDayCC);
- //===================================================
- //精坯库库存===========================================
- window.canvasJPKC = {
- data: {
- labels: ['1', '2', '3'],
- datasets: [{
- label: '工序',
- backgroundColor: [
- color(window.chartColors.red).alpha(0.35).rgbString(),
- color(window.chartColors.blue).alpha(0.35).rgbString(),
- color(window.chartColors.green).alpha(0.35).rgbString(),
- color(window.chartColors.orange).alpha(0.35).rgbString(),
- color(window.chartColors.purple).alpha(0.35).rgbString()
- ],
- fill: false,
- borderColor: [
- window.chartColors.red,
- window.chartColors.blue,
- window.chartColors.green,
- window.chartColors.orange,
- window.chartColors.purple
- ],
- borderWidth: 2,
- pointRadius: 30,
- data: [0, 0, 0]
- }]
- },
- type: 'pie',
- options: {
- legend: {
- display: true
- },
- title: {
- display: false,
- text: "甲班缺陷"
- },
- tooltips: {
- mode: 'point',
- intersect: false
- },
- responsive: true
- }
- };
- var ctxDefectJpkc = document.getElementById("canvasJPKC").getContext("2d");
- window.Defectjpkc = new Chart(ctxDefectJpkc, canvasJPKC);
- //===================================================
- }
- </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>
|