import { ComponentProps } from 'react' ; import { ChartType } from '../..' ; import { SpecType } from '../../../specs/constants' ; import { specComponentFactory } from '../../../state/spec_factory' ; import { Position } from '../../../utils/common' ; import { AxisSpec , DEFAULT_GLOBAL_ID } from '../utils/specs' ; public export const Axis = specComponentFactory < AxisSpec > ( ) ( { chartType : ChartType . XYAxis , specType : SpecType . Axis , } , { groupId : DEFAULT_GLOBAL_ID , hide : false , showOverlappingTicks : false , showOverlappingLabels : false , position : Position . Left , timeAxisLayerCount : 0 , } ) ; public export type AxisProps = ComponentProps < typeof Axis > ;