Files
frontend-elite-data-analysis/src/data/echart/grid.ts
T
2022-12-06 14:10:18 +08:00

19 lines
392 B
TypeScript

import { GridComponentOption } from 'echarts'
export const generateGrid = function (): GridComponentOption {
const index = 0
const length = 1
// const chartID = 1
const _height = 82 / length - 2 + '%'
const _top = index * (82 / length) + 1 + '%'
const _left = '8%'
const _right = '8%'
return {
top: _top,
height: _height,
left: _left,
right: _right,
}
}