1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
| option = { title: { text: "折线图--text", subtext: "折线图标题--subtext", x: "center", y: "top", textAlign: "left" }, grid: { show: true, left: 40, top: 80, right: 10 }, legend: { icon: "rect", itemWidth: 18, itemHeight: 10, bottom: 10, data: ["line"], textStyle: { color: "#999999", fontSize: 10 } }, tooltip: { className: "chart-tooltip", trigger: "axis", confine: true }, xAxis: { type: "category", data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], minorSplitLine: { show: true } }, yAxis: { type: "value" }, series: [ { name: "line", data: [150, 230, 224, 218, 135, 147, 260], type: "line", symbol: "circle", symbolSize: 3, lineStyle: { color: "skyblue" }, areaStyle: { color: { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [ { offset: 0, color: "skyblue" }, { offset: 1, color: "#fff" } ], global: false } } } ], dataZoom: [ { type: "inside", show: true, xAxisIndex: [0], minValueSpan: 4, maxValueSpan: 4, startValue: 1, backgroundColor: "rgba(0,0,0,0.5)", fillerColor: "rgba(255,255,0,0.5)", showDetail: false } ] };
|