HorizontalBarChartData

Data for drawing and styling a standard Bar Chart.

Properties

Initializer

  • Initialises a standard Bar Chart.

    Declaration

    Swift

    public init(
        dataSets: BarDataSet,
        metadata: ChartMetadata = ChartMetadata(),
        xAxisLabels: [String]? = nil,
        yAxisLabels: [String]? = nil,
        barStyle: BarStyle = BarStyle(),
        chartStyle: BarChartStyle = BarChartStyle(),
        noDataText: Text = Text("No Data")
    )

    Parameters

    dataSets

    Data to draw and style the bars.

    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.

    barStyle

    Control for the aesthetic of the bar chart.

    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
  • Declaration

    Swift

    public final func getYAxisLabels() -> some View

Touch