TransFlow/node_modules/.cache/vue-loader/b7f4e3dcb7b0fe5b6d9d75c5514...

1 line
9.0 KiB
JSON

{"remainingRequest":"D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\视频边缘1215\\TransFlow\\src\\components\\chart\\barChart.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\视频边缘1215\\TransFlow\\src\\components\\chart\\barChart.vue","mtime":1673243248428},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\babel-loader\\lib\\index.js","mtime":1671074740599},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1671074740928},{"path":"D:\\视频边缘1215\\TransFlow\\node_modules\\vue-loader\\lib\\index.js","mtime":1671074747916}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n\nexport default {\n name: 'barChart', //饼图组件\n props:{\n list:Array,\n default(){\n return[]\n }\n },\n data() {\n return {\n \n }\n },\n methods: {\n drawBar() {\n // console.log(this.$refs.barChart,'11111');\n let myChart = this.$echarts.init(this.$refs.barChart)\n let option = {\n color: ['#7262FD', '#FC5A5A'],\n tooltip: {\n confine: true,\n },\n grid: {\n left: '2%',\n right: '4%',\n bottom: '10%',\n top: '20%',\n containLabel: true,\n },\n // legend: {\n // icon: 'rect',\n // orient: 'horizontal',\n // left: 'left',\n // itemWidth: 12,\n // itemHeight: 12,\n // formatter: ['{a|{name}}'].join('\\n'),\n // textStyle: {\n // fontSize: 12,\n // color: '#6A93B9',\n // height: 8,\n // rich: {\n // a: {\n // verticalAlign: 'bottom',\n // },\n // },\n // },\n // data: ['已完成', '未完成'],\n // },\n xAxis: {\n type: 'category',\n data: this.list.map((value)=>{\n return value.time\n }),\n axisLine: {\n lineStyle: {\n color: '#000',\n },\n },\n axisLabel: {\n fontSize: 12,\n color: '#000',\n },\n axisTick: {\n show: false,\n },\n },\n yAxis: [\n {\n type: 'value',\n min: 0,\n minInterval: 1,\n splitArea: {\n show: false,\n },\n\n axisLine: {\n show: true,\n },\n axisTick: {\n show: false,\n },\n splitLine: {\n lineStyle: {\n color: '#eeebeb',\n type: 'dashed', // dotted 虚线\n },\n },\n axisLabel: {\n fontSize: 12,\n color: '#000',\n fontFamily: 'Bebas',\n },\n }],\n series: [{\n type: 'bar',\n barWidth: 20,\n itemStyle: { barBorderRadius: [5, 5, 0, 0], },\n name: '时间',\n data: this.list.map((value)=>{\n return value.speed\n })\n },\n ],\n };\n myChart.setOption(option)\n // window.onresize = () => { // 根据窗口大小变化图表自适应\n // myChart.resize();\n // };\n window.addEventListener('resize',function(){\n myChart.resize()\n }\n )\n },\n },\n mounted() {\n this.drawBar()\n }\n}\n",{"version":3,"sources":["barChart.vue"],"names":[],"mappings":";;;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"barChart.vue","sourceRoot":"src/components/chart","sourcesContent":["<template>\n\n <div id=\"barChart\" ref=\"barChart\" style=\"width:100%;height:300px;\"></div>\n\n</template>\n \n<script>\nexport default {\n name: 'barChart', //饼图组件\n props:{\n list:Array,\n default(){\n return[]\n }\n },\n data() {\n return {\n \n }\n },\n methods: {\n drawBar() {\n // console.log(this.$refs.barChart,'11111');\n let myChart = this.$echarts.init(this.$refs.barChart)\n let option = {\n color: ['#7262FD', '#FC5A5A'],\n tooltip: {\n confine: true,\n },\n grid: {\n left: '2%',\n right: '4%',\n bottom: '10%',\n top: '20%',\n containLabel: true,\n },\n // legend: {\n // icon: 'rect',\n // orient: 'horizontal',\n // left: 'left',\n // itemWidth: 12,\n // itemHeight: 12,\n // formatter: ['{a|{name}}'].join('\\n'),\n // textStyle: {\n // fontSize: 12,\n // color: '#6A93B9',\n // height: 8,\n // rich: {\n // a: {\n // verticalAlign: 'bottom',\n // },\n // },\n // },\n // data: ['已完成', '未完成'],\n // },\n xAxis: {\n type: 'category',\n data: this.list.map((value)=>{\n return value.time\n }),\n axisLine: {\n lineStyle: {\n color: '#000',\n },\n },\n axisLabel: {\n fontSize: 12,\n color: '#000',\n },\n axisTick: {\n show: false,\n },\n },\n yAxis: [\n {\n type: 'value',\n min: 0,\n minInterval: 1,\n splitArea: {\n show: false,\n },\n\n axisLine: {\n show: true,\n },\n axisTick: {\n show: false,\n },\n splitLine: {\n lineStyle: {\n color: '#eeebeb',\n type: 'dashed', // dotted 虚线\n },\n },\n axisLabel: {\n fontSize: 12,\n color: '#000',\n fontFamily: 'Bebas',\n },\n }],\n series: [{\n type: 'bar',\n barWidth: 20,\n itemStyle: { barBorderRadius: [5, 5, 0, 0], },\n name: '时间',\n data: this.list.map((value)=>{\n return value.speed\n })\n },\n ],\n };\n myChart.setOption(option)\n // window.onresize = () => { // 根据窗口大小变化图表自适应\n // myChart.resize();\n // };\n window.addEventListener('resize',function(){\n myChart.resize()\n }\n )\n },\n },\n mounted() {\n this.drawBar()\n }\n}\n</script>"]}]}