|
|
@@ -53,8 +53,7 @@
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
import { User } from '@element-plus/icons-vue'
|
|
|
-import { use } from 'echarts/core'
|
|
|
-import * as echarts from 'echarts/core'
|
|
|
+import { use, graphic } from 'echarts/core'
|
|
|
import { LineChart } from 'echarts/charts'
|
|
|
import { GridComponent, LegendComponent, TooltipComponent } from 'echarts/components'
|
|
|
import { CanvasRenderer } from 'echarts/renderers'
|
|
|
@@ -157,7 +156,7 @@ const bandwidthInOutOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#C9AAFF' },
|
|
|
itemStyle: { color: '#C9AAFF' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(155,89,182,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(155,89,182,0)' },
|
|
|
]),
|
|
|
@@ -171,7 +170,7 @@ const bandwidthInOutOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#60CFFF' },
|
|
|
itemStyle: { color: '#60CFFF' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(52,152,219,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(52,152,219,0)' },
|
|
|
]),
|
|
|
@@ -191,7 +190,7 @@ const connectionsOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#FFBB5C' },
|
|
|
itemStyle: { color: '#FFBB5C' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(243,156,18,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(243,156,18,0)' },
|
|
|
]),
|
|
|
@@ -211,7 +210,7 @@ const newUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#60FFC7' },
|
|
|
itemStyle: { color: '#60FFC7' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(96,255,199,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(96,255,199,0)' },
|
|
|
]),
|
|
|
@@ -225,7 +224,7 @@ const newUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#FFFAC3' },
|
|
|
itemStyle: { color: '#FFFAC3' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(255,250,195,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(255,250,195,0)' },
|
|
|
]),
|
|
|
@@ -239,7 +238,7 @@ const newUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#FF611D' },
|
|
|
itemStyle: { color: '#FF611D' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(255,97,29,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(255,97,29,0)' },
|
|
|
]),
|
|
|
@@ -253,7 +252,7 @@ const newUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#E084FF' },
|
|
|
itemStyle: { color: '#E084FF' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(224,132,255,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(224,132,255,0)' },
|
|
|
]),
|
|
|
@@ -267,7 +266,7 @@ const newUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#6863FF' },
|
|
|
itemStyle: { color: '#6863FF' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(104,99,255,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(104,99,255,0)' },
|
|
|
]),
|
|
|
@@ -287,7 +286,7 @@ const activeUsersOption = computed(() => createBaseChartOption({
|
|
|
lineStyle: { color: '#2980b9' },
|
|
|
itemStyle: { color: '#2980b9' },
|
|
|
areaStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
+ color: new graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
{ offset: 0, color: 'rgba(41,128,185,0.3)' },
|
|
|
{ offset: 1, color: 'rgba(41,128,185,0)' },
|
|
|
]),
|