mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-11-04 10:57:10 +08:00 
			
		
		
		
	fix: 修复仪表盘访问趋势区块 y 轴数值过大时无法展示的问题
增加 y 轴单位转换逻辑
This commit is contained in:
		@@ -60,7 +60,7 @@
 | 
				
			|||||||
  const { chartOption } = useChartOption((isDark) => {
 | 
					  const { chartOption } = useChartOption((isDark) => {
 | 
				
			||||||
    return {
 | 
					    return {
 | 
				
			||||||
      grid: {
 | 
					      grid: {
 | 
				
			||||||
        left: '30',
 | 
					        left: '38',
 | 
				
			||||||
        right: '0',
 | 
					        right: '0',
 | 
				
			||||||
        top: '10',
 | 
					        top: '10',
 | 
				
			||||||
        bottom: '50',
 | 
					        bottom: '50',
 | 
				
			||||||
@@ -114,6 +114,9 @@
 | 
				
			|||||||
        axisLabel: {
 | 
					        axisLabel: {
 | 
				
			||||||
          formatter(value: any, idx: number) {
 | 
					          formatter(value: any, idx: number) {
 | 
				
			||||||
            if (idx === 0) return value;
 | 
					            if (idx === 0) return value;
 | 
				
			||||||
 | 
					            if (value >= 1000) {
 | 
				
			||||||
 | 
					              return `${value / 1000}k`;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            return `${value}`;
 | 
					            return `${value}`;
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user