HistogramChartDefaults

Defaults factory for HistogramChartStyle. Histograms render pre-binned values (one Double per bin) at equal visual widths and a zero baseline by default.

Functions

Link copied to clipboard
fun bars(color: Color = StyleDefaults.seriesColor, colors: List<Color> = emptyList(), gradient: ChartGradient? = null, alpha: Float = StyleDefaults.seriesAlpha, space: Dp = StyleDefaults.histogramBarSpacing, minBarWidth: Dp = StyleDefaults.minBarWidth): BarBarsStyle

Returns a BarBarsStyle with adjacent histogram bins by default.

Link copied to clipboard
fun range(min: Double? = StyleDefaults.histogramRangeMin, max: Double? = null): BarRangeStyle

Returns a BarRangeStyle for the optional fixed Y-axis range. Defaults to a zero minimum so a bin count of zero renders at the baseline.

Link copied to clipboard
fun selection(visible: Boolean = true, color: Color = StyleDefaults.selectionColor, width: Dp = StyleDefaults.lineWidth, unselectedAlpha: Float = StyleDefaults.unselectedAlpha): BarSelectionStyle

Returns a BarSelectionStyle for the selection indicator.

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), bars: BarBarsStyle = bars(), range: BarRangeStyle = range(), axes: AxesStyle = AxesDefaults.style(), selection: BarSelectionStyle = selection(), zoomControlsVisible: Boolean = true): HistogramChartStyle

Returns a HistogramChartStyle with the provided parameters or their default values.

Link copied to clipboard
fun xLabels(visible: Boolean = StyleDefaults.axisLabelsVisible, color: Color = StyleDefaults.axisLabelColor, size: TextUnit = StyleDefaults.axisLabelSize, maxCount: Int? = StyleDefaults.axisLabelMaxCount): AxisLabelStyle

Returns an AxisLabelStyle for X-axis labels.

Link copied to clipboard
fun yLabels(visible: Boolean = StyleDefaults.axisLabelsVisible, color: Color = StyleDefaults.axisLabelColor, size: TextUnit = StyleDefaults.axisLabelSize, maxCount: Int? = StyleDefaults.axisLabelMaxCount): AxisLabelStyle

Returns an AxisLabelStyle for Y-axis labels.