import Chart from "../../../src/chart/line/ChartLine9/ChartLine9"; // import bar15 from "./ChartBar15_1eba2"; const consoleWarn = window.console.warn; window.console.warn = function() { const string = arguments[0]; const filterStrings = [ 'is not power of two', 'image is too big', 'marked for update', 'can\'t invert matrix' ]; // filter warnings containing above strings const shouldBeFiltered = filterStrings.some(string => ( arguments[0].includes('THREE') && arguments[0].includes(string) )); if (shouldBeFiltered) { // console.log("find",arguments[0]) // log it to console without second argument, which contains reference to `image` // consoleWarn.call(null, arguments[0]); } else { // pass other warnings without changes consoleWarn.apply(null, arguments); } }; // let bar =new bar15(document.querySelector(".c1"),{}) let line=new Chart(document.querySelector(".c1"),{}); window.addEventListener("resize",function () { // console.log("???") line.resize() }) // setTimeout(()=>{ // line.setOption({ // color: ['#0a73dc', '#04a2ae', '#424a95', '#2a7ebe', '#113b85', '#a2f9ff', '#01a0c8', '#5879c0', '#74e9f2', '#126087', '#99b5da'], // bg: { // backgroundColor: "#000000" // }, // legend: { // show: true, // left: "70%", // top: '5%', // orient: 'horizontal', // itemWidth: 8, // itemHeight: 8, // borderRadius: 0, // textStyle: { // fontSize: 14, // color: "#ffffff" // } // }, // tooltip: { // show: true, // paddingW: 10, // paddingH: 10, // itemGap: 2, // //距目标的偏移值 // offsetX: 15, // offsetY: 0, // titleFontSize: 14, // titleColor: '#ffff00', // itemFontSize: 12, // itemColor: "#ffffff", // borderColor: '#cccccc', // borderWidth: 1, // backgroundColor: 'rgba(0,0,0,0.4)', // }, // grid: { // left: "30%", // right: "20", // top: "30%", // bottom: "20%" // }, // yAxis: { // type:"value", // splitNumber:5, // textStyle: { // fontSize: 12, // color: "#ffffff", // shadowBlur: 0, // shadowColor: "#ffffff" // } // }, // xAxis: { // type:"category", // textStyle: { // fontSize: 14, // color: "#ffffff", // shadowBlur: 0, // shadowColor: "#ffffff" // }, // data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"], // }, // series: [{ // name: '一期销量', // data: [20, 20, 36, 10, 10, 40] // }, // { // name: '二期销量', // data: [14, 10, 26, 20, 30, 30] // }, // { // name: '三期销量', // data: [15, 20, 15, 10, 10, 20] // } // ], // }) // },3000);