function labelFormatter(data:string){ const datas = data.split('-'); if(datas.length < 3) return data.replace(/-/g,'/'); return datas[1]+'/'+datas[2]; } export const label = { textStyle:{ fontSize:'12', fill:'#8f9ca6', textAlign:'right' }, formatter:labelFormatter } export const tickLine = { lineWidth: 0, // 刻度线宽 length: 0, // 刻度线的长度, **原来的属性为 line** } export const line={ stroke: '#e4ebf0', fill: '#ffffff', lineDash: [3, 3, 3], lineWidth: 0.5 } export const AxisLabel = { textStyle:{ fontSize:'12', fill:'#8f9ca6', textAlign:'center' }, formatter: (val:any) =>val } export const containerTpl = `
`; export const crosshairs = { type : "y", style: { lineWidth:1, stroke:"#e4ebf0", } } export const itemTpl = `
  • {name}
  • ` export const line1Style= 'l(0) 0:#ffe36a 0.5:#f5c460 1:#ffb65d'; export const line2Style = 'l(0) 0:#92ee9e 0.5:#61cec4 1:#39baf3';