RangedLineChartData

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

Data for drawing and styling ranged line chart.

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

Properties

Initializer

  • Initialises a ranged line chart.

    Declaration

    Swift

    public init(
        dataSets: RangedLineDataSet,
        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.

  • Declaration

    Swift

    public final var average: Double { get }

Labels

  • Declaration

    Swift

    public final func getXAxisLabels() -> some View

Points