fix: fix default axis

This commit is contained in:
liihuu 2024-09-23 00:50:24 +08:00
parent 091927257b
commit a35315874e
3 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ function registerXAxis (axis: AxisTemplate): void {
}
function getXAxisClass (name: string): XAxisConstructor {
return xAxises[name] ?? xAxises.default
return xAxises[name] ?? xAxises.normal
}
export {

View File

@ -14,8 +14,8 @@
import type { AxisTemplate } from '../../component/Axis'
const defaultXAxis: AxisTemplate = {
name: 'default'
const normal: AxisTemplate = {
name: 'normal'
}
export default defaultXAxis
export default normal

View File

@ -30,7 +30,7 @@ function registerYAxis (axis: AxisTemplate): void {
}
function getYAxisClass (name: string): YAxisConstructor {
return yAxises[name] ?? yAxises.default
return yAxises[name] ?? yAxises.normal
}
export {