RingGaugeChartDefaults

An object that provides default styles for a Ring Gauge Chart.

Properties

Link copied to clipboard

Default formatter for the range labels, omitting only the terminal .0 on whole values.

Link copied to clipboard

Default formatter for the selected value in the title.

Functions

Link copied to clipboard
fun labels(visible: Boolean = true, color: Color = StyleDefaults.axisLabelColor, size: TextUnit = StyleDefaults.axisLabelSize): GaugeLabelsStyle

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

Link copied to clipboard
fun legend(visible: Boolean = StyleDefaults.legendVisible): LegendStyle

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

Link copied to clipboard
fun range(min: Double = StyleDefaults.gaugeRangeMin, max: Double = StyleDefaults.gaugeRangeMax): GaugeRangeStyle

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

Link copied to clipboard
fun rings(baseColor: Color = StyleDefaults.seriesColor, alpha: Float = StyleDefaults.seriesAlpha, colors: List<Color> = emptyList(), width: Dp = StyleDefaults.ringGaugeWidth, spacing: Dp = StyleDefaults.ringGaugeSpacing): RingGaugeRingsStyle

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

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), range: GaugeRangeStyle = range(), rings: RingGaugeRingsStyle = rings(), track: GaugeTrackStyle = track(), labels: GaugeLabelsStyle = labels(), legend: LegendStyle = legend()): RingGaugeChartStyle

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

Link copied to clipboard
fun track(visible: Boolean = true, color: Color = StyleDefaults.gaugeTrackColor): GaugeTrackStyle

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