diff --git a/src/extension/x-axis/index.ts b/src/extension/x-axis/index.ts index 3d6388b24..0af4a9521 100644 --- a/src/extension/x-axis/index.ts +++ b/src/extension/x-axis/index.ts @@ -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 { diff --git a/src/extension/x-axis/normal.ts b/src/extension/x-axis/normal.ts index b1fcbb536..1798c30ab 100644 --- a/src/extension/x-axis/normal.ts +++ b/src/extension/x-axis/normal.ts @@ -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 diff --git a/src/extension/y-axis/index.ts b/src/extension/y-axis/index.ts index 1c5927eb2..43975c966 100644 --- a/src/extension/y-axis/index.ts +++ b/src/extension/y-axis/index.ts @@ -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 {