ChartStyle

data class ChartStyle(val axis: ChartStyle.Axis, val columnChart: ChartStyle.ColumnChart, val lineChart: ChartStyle.LineChart, val marker: ChartStyle.Marker, val elevationOverlayColor: Color)

Defines the appearance of charts.

Constructors

Link copied to clipboard
constructor(axis: ChartStyle.Axis, columnChart: ChartStyle.ColumnChart, lineChart: ChartStyle.LineChart, marker: ChartStyle.Marker, elevationOverlayColor: Color)

Types

Link copied to clipboard
data class Axis(val axisLabelBackground: ShapeComponent? = null, val axisLabelColor: Color, val axisLabelTextSize: TextUnit = DefaultDimens.AXIS_LABEL_SIZE.sp, val axisLabelLineCount: Int = DefaultDimens.AXIS_LABEL_MAX_LINES, val axisLabelVerticalPadding: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_PADDING.dp, val axisLabelHorizontalPadding: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_PADDING.dp, val axisLabelVerticalMargin: Dp = DefaultDimens.AXIS_LABEL_VERTICAL_MARGIN.dp, val axisLabelHorizontalMargin: Dp = DefaultDimens.AXIS_LABEL_HORIZONTAL_MARGIN.dp, val axisLabelRotationDegrees: Float = DefaultDimens.AXIS_LABEL_ROTATION_DEGREES, val axisLabelTypeface: Typeface = Typeface.MONOSPACE, val axisLabelTextAlign: Paint.Align = Paint.Align.LEFT, val axisLabelTextAlignment: Layout.Alignment = Layout.Alignment.ALIGN_NORMAL, val axisGuidelineColor: Color, val axisGuidelineWidth: Dp = DefaultDimens.AXIS_GUIDELINE_WIDTH.dp, val axisGuidelineShape: Shape = Shapes.dashedShape( shape = Shapes.rectShape, dashLength = DefaultDimens.DASH_LENGTH.dp, gapLength = DefaultDimens.DASH_GAP.dp, ), val axisLineColor: Color, val axisLineWidth: Dp = DefaultDimens.AXIS_LINE_WIDTH.dp, val axisLineShape: Shape = Shapes.rectShape, val axisTickColor: Color = axisLineColor, val axisTickWidth: Dp = axisLineWidth, val axisTickShape: Shape = Shapes.rectShape, val axisTickLength: Dp = DefaultDimens.AXIS_TICK_LENGTH.dp, val axisValueFormatter: AxisValueFormatter<AxisPosition> = DecimalFormatAxisValueFormatter())

Defines the appearance of chart axes.

Link copied to clipboard
data class ColumnChart(val columns: List<LineComponent>, val outsideSpacing: Dp = DefaultDimens.COLUMN_OUTSIDE_SPACING.dp, val innerSpacing: Dp = DefaultDimens.COLUMN_INSIDE_SPACING.dp, val mergeMode: ColumnChart.MergeMode = MergeMode.Grouped, val dataLabel: TextComponent? = null, val dataLabelVerticalPosition: VerticalPosition = VerticalPosition.Top, val dataLabelValueFormatter: ValueFormatter = DecimalFormatValueFormatter(), val dataLabelRotationDegrees: Float = 0.0f)

Defines the appearance of column charts.

Link copied to clipboard
object Companion
Link copied to clipboard
data class LineChart(val lines: List<LineChart.LineSpec>, val spacing: Dp = DefaultDimens.POINT_SPACING.dp)

Defines the appearance of line charts.

Link copied to clipboard
data class Marker(val indicatorSize: Dp = DefaultDimens.MARKER_INDICATOR_SIZE.dp, val horizontalPadding: Dp = DefaultDimens.MARKER_HORIZONTAL_PADDING.dp, val verticalPadding: Dp = DefaultDimens.MARKER_VERTICAL_PADDING.dp)

Defines the appearance of chart markers.

Properties

Link copied to clipboard

the appearance of chart axes.

Link copied to clipboard

the appearance of column charts.

Link copied to clipboard

the color used for elevation overlays.

Link copied to clipboard

the appearance of line charts.

Link copied to clipboard

the appearance of chart markers.