perf: 去除grid多余配置,添加散点图、热力图的grid

This commit is contained in:
奔跑的面条
2022-10-15 16:51:16 +08:00
parent 4add9ce4c6
commit 59cb5d609d
10 changed files with 21 additions and 81 deletions
@@ -28,17 +28,7 @@ export const option = {
type: 'shadow'
}
},
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
xAxis: {
xAxis: {
show: true,
type: 'category'
},
@@ -28,16 +28,6 @@ export const option = {
type: 'shadow'
}
},
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
xAxis: {
show: true,
type: 'value'
@@ -33,16 +33,6 @@ export const option = {
type: 'line'
}
},
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
xAxis: {
show: true,
type: 'category'
@@ -15,16 +15,6 @@ const options = {
type: 'line'
}
},
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
xAxis: {
show: true,
type: 'category'
@@ -8,16 +8,6 @@ import dataJson from './data.json'
export const includes = ['legend', 'xAxis', 'yAxis', 'grid']
const option = {
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
tooltip: {
show: true,
trigger: 'axis',
@@ -14,16 +14,6 @@ export const option = {
type: 'line'
}
},
legend: {
show: true
},
grid: {
show: false,
left: '10%',
top: '60',
right: '10%',
bottom: '60'
},
xAxis: {
show: true,
type: 'category'
@@ -4,7 +4,7 @@ import { CreateComponentType } from '@/packages/index.d'
import { cloneDeep } from 'lodash'
import dataJson from './data.json'
export const includes = ['xAxis', 'yAxis']
export const includes = ['xAxis', 'yAxis', 'grid']
export const option = {
dataset: { ...dataJson },
@@ -4,7 +4,7 @@ import { CreateComponentType } from '@/packages/index.d'
import cloneDeep from 'lodash/cloneDeep'
import dataJson from './data.json'
export const includes = ['legend', 'xAxis', 'yAxis']
export const includes = ['legend', 'xAxis', 'yAxis', 'grid']
export const seriesItem = {
type: 'scatter',
@@ -4,7 +4,7 @@ import { CreateComponentType } from '@/packages/index.d'
import cloneDeep from 'lodash/cloneDeep'
import dataJson from './data.json'
export const includes = ['legend', 'xAxis', 'yAxis']
export const includes = ['legend', 'xAxis', 'yAxis', 'grid']
export const option = {
dataset: dataJson,