diff --git a/src/views/home/echarts/3DbarEcharts.vue b/src/views/home/echarts/3DbarEcharts.vue
new file mode 100644
index 0000000..9ff44e7
--- /dev/null
+++ b/src/views/home/echarts/3DbarEcharts.vue
@@ -0,0 +1,174 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/home/echarts/lineEcharts.vue b/src/views/home/echarts/lineEcharts.vue
index 45d8380..fdf71a5 100644
--- a/src/views/home/echarts/lineEcharts.vue
+++ b/src/views/home/echarts/lineEcharts.vue
@@ -9,6 +9,10 @@ const props = defineProps({
type:String,
default:'lineId'
},
+ color:{
+ type:String,
+ default:'#fff'
+ },
data:{
type:Array,
default:[]
@@ -20,13 +24,12 @@ watch(()=>props.data,val=>{
function chartFn() {
var myChart = echarts.init(document.getElementById(props.echartsId));
- var option;
- option = {
+ var option = {
grid: {
top: "8%",
right: "2%",
left: "10%",
- bottom: "7%",
+ bottom: "12%",
containLabel:true
},
tooltip: {
@@ -51,7 +54,7 @@ function chartFn() {
axisLabel: { color: "#fff" },
axisLabel: {
show: true,
- color: "#fff",
+ color: props.color,
interval: 0, // 强制显示所有标签
// rotate: 15, // 标签旋转角度
}
@@ -67,7 +70,7 @@ function chartFn() {
},
axisTick: { show: false },
axisLine: { show: false },
- axisLabel: { color: "#fff" },
+ axisLabel: { color: props.color },
},
series: [
{
diff --git a/src/views/home/echarts/pieEcharts.vue b/src/views/home/echarts/pieEcharts.vue
new file mode 100644
index 0000000..17d4bb8
--- /dev/null
+++ b/src/views/home/echarts/pieEcharts.vue
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/vue.config.js b/vue.config.js
index 86f846b..0f7438b 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -41,18 +41,6 @@ module.exports = {
changeOrigin: true,
logLevel: "debug"
},
- "/data/rec": {
- target: "http://80.93.24.195:8181",
- changeOrigin: true,
- logLevel: "debug",
- pathRewrite: {
- "^/data/rec": "/"
- }
- },
- "/restcloud": {
- target: "http://www.api.sc:8080",
- changeOrigin: true,
- },
}
},
chainWebpack(config) {