Commit 24678621 by 王志慧

commit

1 parent b0fccb57
......@@ -53,6 +53,7 @@ Component({
},
setOption(chart, xData, yData) {
let maxSpan = xData.length < 10 ? 50 : 20
let start= xData.length < 10 ? 50 : 80
var option = {
grid: {
left: 8,
......@@ -125,7 +126,9 @@ Component({
},
dataZoom: {
type: "inside",
maxSpan:maxSpan
maxSpan:maxSpan,
// end: 100,
start: start,
},
series: [{
data: yData,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!