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
| { "visualMap": [{ "show": false, "type": "continuous", "seriesIndex": 0, "min": 753.1195596415225, "max": 799.2967914834596 } ], "toolbox": { "show": true }, "tooltip": { "trigger": "axis", "axisPointer": { "type": "cross" }, "formatter": "function (params) {\n return `${params[0].name} ${params[0].marker}${params[0].data.toFixed(2)}`;\n }" }, "xAxis": { "name": "time", "type": "category", "data": ["2023-09-30T23:00:00.000Z", "2023-10-01T00:00:00.000Z", "2023-10-01T01:00:00.000Z", "2023-10-01T02:00:00.000Z", "2023-10-01T03:00:00.000Z", "2023-10-01T04:00:00.000Z", "2023-10-01T05:00:00.000Z", "2023-10-01T06:00:00.000Z", "2023-10-01T07:00:00.000Z", "2023-10-01T08:00:00.000Z", "2023-10-01T09:00:00.000Z", "2023-10-01T10:00:00.000Z", "2023-10-01T11:00:00.000Z", "2023-10-01T12:00:00.000Z", "2023-10-01T13:00:00.000Z", "2023-10-01T14:00:00.000Z", "2023-10-01T15:00:00.000Z", "2023-10-01T16:00:00.000Z", "2023-09-30T16:00:00.000Z", "2023-09-30T17:00:00.000Z", "2023-09-30T18:00:00.000Z", "2023-09-30T19:00:00.000Z", "2023-09-30T20:00:00.000Z", "2023-09-30T21:00:00.000Z"], "axisLabel": { "formatter": "function (value) {\n console.log('x', value);\n let theDate = new Date(value);\n let formatResult = formatDateWithOutYear(theDate);\n console.log('formatResult', formatResult);\n return formatResult;\n }" } }, "yAxis": { "name": "value", "type": "value", "axisLabel": { "formatter": "function (value) {\n return value.toFixed(0);\n }" }, "max": 799.2967914834596, "min": 753.1195596415225 }, "series": [{ "data": [786.2406686892617, 775.351119116916, 799.2967914834596, 790.5960817959443, 783.6805454571232, 758.6840079816668, 790.3245296380129, 765.9456069157624, 796.968419345223, 778.2591762916247, 789.6245539701669, 759.8650377260842, 754.1071947394639, 791.2912269423003, 790.0196448088915, 777.3533484777939, 785.9742945288351, 757.6758327929319, 754.5333806345333, 794.8477019479826, 757.7808310071706, 758.9203808298035, 780.6047889965498, 753.1195596415225], "type": "line", "smooth": true, "markPoint": { "label": { "formatter": "function (params) {\n console.log(params);\n let val = params.data.coord[1].toFixed(2);\n return val.toString();\n }" }, "data": [{ "type": "max", "name": "Max" }, { "type": "min", "name": "Min" } ] }, "markLine": { "data": [{ "type": "average", "name": "Avg" } ] } } ] }
|