Represent categorical data with horizontal bars with values proportional to the length of each bar.
Padding between two bars
type: number
defaultValue: 0.2
Size of the parent element/component (passed by the Responsive hoc)
type: shape[object Object]
Additional css classes passed from parent
type: string
defaultValue: ''
Array of colors as hex color codes
type: arrayOf[object Object]
defaultValue: schemeSet3
Select a color for each bar
type: func
defaultValue: undefined
Array of data elements each having a label and value
type: arrayOf[object Object]
defaultValue: []
if exponent scaleType, set the current exponent to specified value
type: number
defaultValue: 1
Select the label of element
type: func
Margins for the chart
type: shape[object Object]
defaultValue: { top: 24, right: 24, bottom: 24, left: 72, }
type of scaling used for bar length one of ['exponent', 'log', 'linear'] see d3.scale
type: string
defaultValue: 'linear'
Handle save functionality
type: func
defaultValue: () => {}
if true, show gridlines
type: bool
defaultValue: false
if true, show tooltip
type: bool
defaultValue: false
if true, tilt the labels on axis of chart
type: bool
defaultValue: false
Modify the contents of tooltip
type: func
defaultValue: undefined
Format a value label displayed on top of bar
type: func
defaultValue: undefined
Select the value of element
type: func