/** * 返回一个默认的配置 * @param {*} minX * @param {*} maxX * @param {*} intervalX * @param {*} minY * @param {*} maxY * @param {*} intervalY * @returns */ export function useBaseChartSetting(minX = 0, maxX = 265, intervalX = 64, minY = 0, maxY = 0, intervalY = 0) { return { grid: { top: 20, right: 20, bottom: 20, left: 10, containLabel: true }, xAxis: { min: minX, max: maxX, interval: intervalX, axisLine: { lineStyle: { color: 'rgb(119, 181, 213, 0.5)' } }, splitLine: { show: true, lineStyle: { color: 'rgba(119, 181, 213, .2)' } }, axisTick: { show: false }, axisLabel: { color: '#ade6ee' } }, yAxis: { min: minY, max: maxY, interval: intervalY, axisLine: { show: true, lineStyle: { color: 'rgb(119, 181, 213, 0.5)' } }, splitLine: { show: true, lineStyle: { color: 'rgba(119, 181, 213, .2)' } }, axisTick: { show: false }, axisLabel: { color: '#ade6ee' } } } }