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