mirror of
https://github.com/klinecharts/KLineChart.git
synced 2024-11-25 16:22:43 +08:00
fix: fix default axis
This commit is contained in:
parent
091927257b
commit
a35315874e
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user