Commit 82c1f24a by 杨琪琪

ecahrts图表动态刷新内存增长问题

parent d083cfd0
...@@ -5,7 +5,10 @@ var defaultLineOptions = { ...@@ -5,7 +5,10 @@ var defaultLineOptions = {
left: 'center' left: 'center'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis',
axisPointer: {
animation: false
}
}, },
grid: { grid: {
left: '3%', left: '3%',
...@@ -23,33 +26,36 @@ var defaultLineOptions = { ...@@ -23,33 +26,36 @@ var defaultLineOptions = {
orient: 'horizontal', // vertical orient: 'horizontal', // vertical
// left: 10, // left: 10,
top: '6%', top: '6%',
animation: false,
}, },
xAxis: { xAxis: {
type: 'time', type: 'time',
boundaryGap: false, boundaryGap: false,
animation: false
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
min: 0, min: 0,
minInterval: 1, minInterval: 1,
animation: false
},
markPoint: {
animation: false
}, },
dataZoom: [ dataZoom: [
{ {
id: 'inside',
type: 'inside', type: 'inside',
start: 0, start: 0,
end: 100 end: 100
}, },
{ {
id: 'slide',
start: 0, start: 0,
end: 100 end: 100
} }
], ],
series: [ series: []
{
type: "line",
data: []
}
]
} }
var defaultXBarOptions = { var defaultXBarOptions = {
grid: { grid: {
...@@ -61,7 +67,10 @@ var defaultXBarOptions = { ...@@ -61,7 +67,10 @@ var defaultXBarOptions = {
show: false, show: false,
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis',
axisPointer: {
animation: false
}
}, },
xAxis: { xAxis: {
show: false, show: false,
...@@ -111,7 +120,7 @@ var defaultYBarOptions = { ...@@ -111,7 +120,7 @@ var defaultYBarOptions = {
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: { axisPointer: {
type: 'shadow' animation: false
} }
}, },
grid: { grid: {
...@@ -124,7 +133,8 @@ var defaultYBarOptions = { ...@@ -124,7 +133,8 @@ var defaultYBarOptions = {
textStyle: { textStyle: {
color: "#fff", color: "#fff",
}, },
left: 10 left: 10,
animation: false,
}, },
dataset: { dataset: {
source: [] source: []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment