Package-level declarations

Functions

Link copied to clipboard
fun lineChart(lines: List<LineChart.LineSpec> = currentChartStyle.lineChart.lines, spacing: Dp = currentChartStyle.lineChart.spacing, decorations: List<Decoration>? = null, persistentMarkers: Map<Float, Marker>? = null, axisValuesOverrider: AxisValuesOverrider<ChartEntryModel>? = null, targetVerticalAxisPosition: AxisPosition.Vertical? = null, drawingModelInterpolator: DrawingModelInterpolator<LineChartDrawingModel.PointInfo, LineChartDrawingModel> = remember { DefaultDrawingModelInterpolator() }): LineChart

Creates a LineChart.

Link copied to clipboard
fun lineSpec(lineColor: Color, lineThickness: Dp = DefaultDimens.LINE_THICKNESS.dp, lineBackgroundShader: DynamicShader? = DynamicShaders.fromBrush( brush = Brush.verticalGradient( listOf( lineColor.copy(alpha = DefaultAlpha.LINE_BACKGROUND_SHADER_START), lineColor.copy(alpha = DefaultAlpha.LINE_BACKGROUND_SHADER_END), ), ), ), lineCap: StrokeCap = StrokeCap.Round, point: Component? = null, pointSize: Dp = DefaultDimens.POINT_SIZE.dp, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: ValueFormatter = DecimalFormatValueFormatter(), dataLabelRotationDegrees: Float = 0.0f, pointConnector: LineChart.LineSpec.PointConnector = DefaultPointConnector()): LineChart.LineSpec
fun lineSpec(lineColor: Color, lineThickness: Dp = DefaultDimens.LINE_THICKNESS.dp, lineBackgroundShader: DynamicShader? = DynamicShaders.fromBrush( brush = Brush.verticalGradient( listOf( lineColor.copy(alpha = DefaultAlpha.LINE_BACKGROUND_SHADER_START), lineColor.copy(alpha = DefaultAlpha.LINE_BACKGROUND_SHADER_END), ), ), ), lineCap: StrokeCap = StrokeCap.Round, cubicStrength: Float, point: Component? = null, pointSize: Dp = DefaultDimens.POINT_SIZE.dp, dataLabel: TextComponent? = null, dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, dataLabelValueFormatter: ValueFormatter = DecimalFormatValueFormatter(), dataLabelRotationDegrees: Float = 0.0f): LineChart.LineSpec

Creates a LineChart.LineSpec for use in LineCharts.