SegmentedRingGaugeChartDefaults

Factories for SegmentedRingGaugeChartStyle and its grouped style blocks.

Properties

Link copied to clipboard

Formats the sum of all segments when SegmentedRingGaugeChart.centerLabel is omitted.

Link copied to clipboard

Formats a selected segment in the chart title.

Functions

Link copied to clipboard
fun centerLabels(value: TextStyle = TextStyle( color = StyleDefaults.titleColor, fontSize = StyleDefaults.segmentedRingGaugeCenterValueSize, fontWeight = StyleDefaults.titleWeight, ), supporting: TextStyle = TextStyle( color = StyleDefaults.subtitleColor, fontSize = StyleDefaults.segmentedRingGaugeCenterSupportingSize, fontWeight = FontWeight.Normal, ), spacing: Dp = StyleDefaults.subtitleSpacing): SegmentedRingGaugeCenterLabelsStyle
Link copied to clipboard
fun legend(visible: Boolean = StyleDefaults.legendVisible): LegendStyle
Link copied to clipboard
fun segments(baseColor: Color = StyleDefaults.seriesColor, alpha: Float = StyleDefaults.seriesAlpha, colors: List<Color> = emptyList(), width: Dp = StyleDefaults.segmentedRingGaugeWidth, spacing: Dp = StyleDefaults.segmentedRingGaugeSpacing, cornerRadius: Dp = StyleDefaults.segmentedRingGaugeCornerRadius, startPosition: SegmentedRingGaugeStartPosition = SegmentedRingGaugeStartPosition.TopLeft, direction: SegmentedRingGaugeDirection = SegmentedRingGaugeDirection.CounterClockwise): SegmentedRingGaugeSegmentsStyle

Returns the colored-segment configuration for a capacity ring.

Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), segments: SegmentedRingGaugeSegmentsStyle = segments(), track: SegmentedRingGaugeTrackStyle = track(), centerLabels: SegmentedRingGaugeCenterLabelsStyle = centerLabels(), legend: LegendStyle = legend()): SegmentedRingGaugeChartStyle
Link copied to clipboard
fun track(color: Color = StyleDefaults.gaugeTrackColor): SegmentedRingGaugeTrackStyle