export default function getData() { let data = Array.from(7).map((val, ind) => { return { day: new Date().getTime() - (7 - ind - 1), val: Math.ceil(Math.random() * 1000) } }) console.log(data) return { color: ["rgba(4,187,255,1)"], xAxis: { type: "category", data: ["7.18", "7.19", "7.20", "7.21", "7.22", "7.23", "7.24"], axisLabel: { color: "#FFFFFF", }, axisTick: { show: false, }, }, yAxis: { type: "value", max: function(value) { return value.max + value.max * 0.25; }, axisLabel: { color: "#FFFFFF", }, axisTick: { show: false, }, }, grid: { top: 40, left: 40, right: 0, bottom: 30, }, series: [{ type: "pictorialBar", barCategoryGap: "30%", symbol: 'path://M0,10 L10,10 L5,0 L0,10 z', label: { normal: { show: false, position: "top", textStyle: { color: "#fff", } } }, markPoint: { data: [ { type: 'max', name: '最大值', label: { color: "#fff", } }, ] }, data: [ 1200, { value: 2000, itemStyle: { color: "rgba(255,239,143,1)", }, }, 1500, 800, 700, 1100, 1300, ], }, ], } }