import { number } from '@storybook/addon-knobs' ; import React from 'react' ; import { AreaSeries , Axis , Chart , Position , ScaleType , Settings , RecursivePartial , AxisStyle } from '@elastic/charts' ; import { SeededDataGenerator } from '@elastic/charts/src/mocks/utils' ; import { useBaseTheme } from '../../use_base_theme' ; export const Example = ( ) => { const dg = new SeededDataGenerator ( ) ; const data = dg . generateSimpleSeries ( 31 ) ; const customStyle = { tickLabel : { padding : number ( 'Tick Label Padding' , 0 ) , } , } ; return ( < Chart > < Settings debug baseTheme = { useBaseTheme ( ) } / > < Axis id = "bottom" position = { Position . Bottom } title = "Bottom axis" showOverlappingTicks style = { customStyle } / > < AreaSeries id = "lines" xScaleType = { ScaleType . Linear } yScaleType = { ScaleType . Linear } xAccessor = "x" yAccessors = { [ 'y' ] } data = { data } / > < /Chart>); } ;