LineChartDefaults

Properties

Functions

Link copied to clipboard
fun axis(visible: Boolean = true, color: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.3f), lineWidth: Dp = 1.dp, xLabels: AxisLabelStyle = xLabels(), yLabels: AxisLabelStyle = yLabels()): LineAxisStyle
Link copied to clipboard
fun legend(visible: Boolean = true): LegendStyle

Returns a LegendStyle with the provided visibility.

Link copied to clipboard
fun line(color: Color = MaterialTheme.colorScheme.primary, alpha: Float = defaultChartAlpha(), colors: List<Color> = emptyList(), strokeWidth: Dp = 5.dp, bezier: Boolean = true): LineVisualStyle
Link copied to clipboard
fun points(color: Color = MaterialTheme.colorScheme.tertiary, size: Dp = 9.dp, visible: Boolean = false): LinePointStyle
Link copied to clipboard
fun selection(color: Color = MaterialTheme.colorScheme.tertiary, size: Dp = 7.dp, activeSize: Dp = 12.dp, visible: Boolean = true): LineSelectionStyle
Link copied to clipboard
fun style(chartContainerStyle: ChartContainerStyle = ChartContainerDefaults.style(), line: LineVisualStyle = line(), points: LinePointStyle = points(), selection: LineSelectionStyle = selection(), axis: LineAxisStyle = axis(), legend: LegendStyle = legend(), zoomControlsVisible: Boolean = true): LineChartStyle
Link copied to clipboard
fun xLabels(visible: Boolean = true, color: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.75f), size: TextUnit = 11.sp, count: Int = 6): AxisLabelStyle
Link copied to clipboard
fun yLabels(visible: Boolean = true, color: Color = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.75f), size: TextUnit = 11.sp, count: Int = 5): AxisLabelStyle