Skip to content

Commit

Permalink
fix(bar): allow null for axes
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc authored and Raphaël Benitte committed Jun 29, 2019
1 parent 865e9a6 commit 8a22b66
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions packages/bar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,50 +81,50 @@ declare module '@nivo/bar' {
}

export type BarProps = Partial<{
indexBy: string | IndexByFunc
keys: string[]

groupMode: 'stacked' | 'grouped'
layout: 'horizontal' | 'vertical'
reverse: boolean

innerPadding: number
minValue: number | 'auto'
margin: Box
maxValue: number | 'auto'
padding: number

axisBottom: Axis
axisLeft: Axis
axisRight: Axis
axisTop: Axis

enableGridX: boolean
enableGridY: boolean

barComponent: React.StatelessComponent<BarItemProps>

enableLabel: boolean
label: string | AccessorFunc
labelFormat: string | LabelFormatter
labelLinkColor: InheritedColorProp<BarDatumWithColor>
labelSkipWidth: number
labelSkipHeight: number
labelTextColor: InheritedColorProp<BarDatumWithColor>

colors: OrdinalColorsInstruction
borderRadius: number
borderWidth: number
theme: Theme
indexBy: string | IndexByFunc
keys: string[]

groupMode: 'stacked' | 'grouped'
layout: 'horizontal' | 'vertical'
reverse: boolean

innerPadding: number
minValue: number | 'auto'
margin: Box
maxValue: number | 'auto'
padding: number

axisBottom: Axis | null
axisLeft: Axis | null
axisRight: Axis | null
axisTop: Axis | null

enableGridX: boolean
enableGridY: boolean

barComponent: React.StatelessComponent<BarItemProps>

enableLabel: boolean
label: string | AccessorFunc
labelFormat: string | LabelFormatter
labelLinkColor: InheritedColorProp<BarDatumWithColor>
labelSkipWidth: number
labelSkipHeight: number
labelTextColor: InheritedColorProp<BarDatumWithColor>

colors: OrdinalColorsInstruction
borderRadius: number
borderWidth: number
theme: Theme

isInteractive: boolean
tooltipFormat: string | ValueFormatter
tooltip: TooltipProp
isInteractive: boolean
tooltipFormat: string | ValueFormatter
tooltip: TooltipProp

legends: Array<{ dataFrom: 'indexes' | 'keys' } & LegendProps>
legends: Array<{ dataFrom: 'indexes' | 'keys' } & LegendProps>

markers: CartesianMarkerProps[]
}>
markers: CartesianMarkerProps[]
}>

export type Axis = Partial<{
format: string | LabelFormatter
Expand Down

0 comments on commit 8a22b66

Please sign in to comment.