Horizontal Bar Plot
A HorizontalBarPlot to be used in an XYGraph and that plots a single series of data points as horizontal bars.
Parameters
x-axis data points for each bar. Assumes each bar starts at 0.
y-axis data points for where to plot the bars on the XYGraph. The size of xData and yData must match.
Composable function to emit a bar for each data element, given the index of the point in the data and the value of the data point.
The fraction of space between adjacent x-axis bars that may be used. Must be between 0 and 1, defaults to 0.9.
Type Parameters
The type of the x-axis values
A HorizontalBarPlot to be used in an XYGraph and that plots data points as horizontal bars.
Parameters
Data points for where to plot the bars on the XYGraph
Composable function to emit a bar for each data element, given the index of the point in the data.
The fraction of space between adjacent x-axis bars that may be used. Must be between 0 and 1, defaults to 0.9.
Type Parameters
The type of the x-axis values
The type of the y-axis values
The type of the data element holding the values for each bar
Creates a Horizontal Bar Plot.
Parameters
A Composable to provide the bar if not specified on an individually added item.
The fraction of space between adjacent x-axis bars that may be used. Must be between 0 and 1, defaults to 0.9.
A block which describes the content for the plot.