摘要: Echarts双y轴折线图 option = { color: ["#e57e1f", "#666666", "#4c6291"],//线条颜色 title: { //text: 'Step Line' }, tooltip: { trigger: 'axis' }, legend: { data: ["电流", "BMS1" 阅读全文
posted @ 2021-12-03 17:09 码渣渣123 阅读(1909) 评论(0) 推荐(0)
摘要: getNowTime() {//获取当前时间 let dateTime let yy = new Date().getFullYear() let mm = new Date().getMonth() + 1 let dd = new Date().getDate() let hh = new Da 阅读全文
posted @ 2021-12-03 15:56 码渣渣123 阅读(370) 评论(0) 推荐(0)
摘要: Echarts饼状图 let myChart = echarts.init(document.getElementById("charts")); let option = { title: { text: "99999", textStyle: { color: "#000", fontSize: 30, fontWe 阅读全文
posted @ 2021-12-03 15:49 码渣渣123 阅读(157) 评论(0) 推荐(0)
摘要: echarts横向柱状图 //图表方法 drawLine(xData,sData) { let myChart = echarts.init(document.getElementById("chart")); let option = { //color: ['rgba(68, 222, 192, 1)'],//柱状图颜色 阅读全文
posted @ 2021-12-03 15:23 码渣渣123 阅读(1550) 评论(0) 推荐(0)