diff --git a/src/components/e-charts/bar-chart.vue b/src/components/e-charts/bar-chart.vue index 6087dd6b3890094a5da14802b94387daef7e83cb..1a9efdb08afccd46b42986cd20f31a8beb46e0af 100644 --- a/src/components/e-charts/bar-chart.vue +++ b/src/components/e-charts/bar-chart.vue @@ -10,8 +10,8 @@ export default { type: Object, default: () => { return { - xaxis: [], - data: [] + legendData: [], + seriesData: [] }; } }, @@ -56,7 +56,7 @@ export default { xAxis: [ { type: "category", - data: self.data.xaxis, + data: self.data.legendData, axisLabel: { margin: 20, color: "#0d1847", @@ -84,13 +84,13 @@ export default { show: false }, splitArea: { - show: self.show_split, - interval: 0, + show: true, areaStyle: { - color: ["#f4f5fd", "#fff"], + color: ["#fff", "#f8f9fd"], opacity: 0.5 - } - } + }, + interval: 0 + }, } ], yAxis: [ @@ -101,6 +101,7 @@ export default { fontSize: 12 } }, + minInterval: 1, axisLine: { lineStyle: { color: "rgba(0, 0, 0, 0)" @@ -120,7 +121,7 @@ export default { series: [ { type: "bar", - data: self.data.data, + data: self.data.seriesData, barWidth: self.bar_width, itemStyle: { normal: { diff --git a/src/components/e-charts/commentlist.vue b/src/components/e-charts/commentlist.vue index 66161531fbe0b4d3390817b4d1ba5078c4896b1e..90e8abb484ec0494c19da0470f38c90121809933 100644 --- a/src/components/e-charts/commentlist.vue +++ b/src/components/e-charts/commentlist.vue @@ -1,23 +1,13 @@