Skip to content

Commit

Permalink
fix: fix default axis
Browse files Browse the repository at this point in the history
  • Loading branch information
liihuu committed Sep 22, 2024
1 parent 0919272 commit a353158
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/extension/x-axis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/extension/x-axis/normal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/extension/y-axis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a353158

Please sign in to comment.