LineChartData

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

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

Properties

Initializer

  • Initialises a Single Line Chart.

    Declaration

    Swift

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

    Parameters

    dataSets

    Data to draw and style a line.

    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

Touch