diff --git a/src/components/boxes/OilFlow.vue b/src/components/boxes/OilFlow.vue
index cfa0dbc..b5ce36b 100644
--- a/src/components/boxes/OilFlow.vue
+++ b/src/components/boxes/OilFlow.vue
@@ -3,9 +3,9 @@
diff --git a/src/components/charts/LineChart.vue b/src/components/charts/LineChart.vue
index 421b9c4..4c896d2 100644
--- a/src/components/charts/LineChart.vue
+++ b/src/components/charts/LineChart.vue
@@ -11,7 +11,7 @@
产线5
-
+
@@ -42,6 +42,10 @@ echarts.use([
export default {
name: "LineChart",
props: {
+ id: {
+ type: String,
+ default: 'line-chart'
+ },
config: {
type: Object,
default: () => ({
@@ -74,7 +78,7 @@ export default {
methods: {
init() {
if (!this.chart)
- this.chart = echarts.init(document.getElementById("line-chart"));
+ this.chart = echarts.init(document.getElementById(this.id))
this.chart.setOption({
// title: {
// text: "ECharts 入门示例",
@@ -85,14 +89,14 @@ export default {
bottom: 24,
right: 12,
},
- tooltip: {
- trigger: "axis",
- axisPointer: {
- lineStyle: {
- color: "#eee3",
- },
- },
- },
+ // tooltip: {
+ // trigger: "axis",
+ // axisPointer: {
+ // lineStyle: {
+ // color: "#eee3",
+ // },
+ // },
+ // },
xAxis: {
data: Array(31)
.fill(1)
@@ -175,7 +179,7 @@ export default {
// ],
// },
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
- { offset: 0, color: this.colors[index] + "44" },
+ { offset: 0, color: this.colors[index] + "33" },
{ offset: 1, color: "transparent" },
]),
},