MultiLineChartData

public final class MultiLineChartData : CTLineChartDataProtocol, GetDataProtocol, Publishable, PointOfInterestProtocol

Data for drawing and styling a multi line, line chart.

This model contains all the data and styling information for a single line, line chart.

Properties

Initializers

  • Initialises a Multi Line Chart.

    Declaration

    Swift

    public init(
        dataSets: MultiLineDataSet,
        metadata: ChartMetadata = ChartMetadata(),
        xAxisLabels: [String]? = nil,
        yAxisLabels: [String]? = nil,
        chartStyle: LineChartStyle = LineChartStyle(),
        noDataText: Text = Text("No Data")
    )

    Parameters

    dataSets

    Data to draw and style the lines.

    metadata

    Data model containing the charts Title, Subtitle and the Title for Legend.

    xAxisLabels

    Labels for the X axis instead of the labels in the data points.

    yAxisLabels

    Labels for the Y axis instead of the labels generated from data point values.

    chartStyle

    The style data for the aesthetic of the chart.

    noDataText

    Customisable Text to display when where is not enough data to draw the chart.

Labels

  • Declaration

    Swift

    public final func getXAxisLabels() -> some View

Points

Accessibility

Touch