FUIChartView

open class FUIChartView : UIView

A UIView subclass that displays charts.

  • Tap gesture recognizer used for selecting and deselecting items in the FUIChartView.

    Declaration

    Swift

    public lazy var tapGestureRecognizer: UIGestureRecognizer { get set }
  • One touch ong press gesture recognizer used to move selections by panning after a long press.

    Declaration

    Swift

    public lazy var longPressGestureRecognizer: UIGestureRecognizer { get set }
  • Double tap gesture recognizer used to expand bar chart category labels.

    Declaration

    Swift

    public lazy var doubleTapGestureRecognizer: UIGestureRecognizer { get set }
  • Style definition for the chart. Gives access to the chart theme palette.

    Declaration

    Swift

    public var style: FUIChartStyle { get }
  • Type of chart presented by the FUIChartView.

    This property must be set before executing reloadData().

    Declaration

    Swift

    public var chartType: FUIChartType { get set }
  • Delegate class for the FUIChartView.

    Declaration

    Swift

    public weak var delegate: FUIChartViewDelegate?
  • Data source class that is reponsible for providing data for the FUIChartView.

    After modifying this property you will need to execute reloadData().

    Declaration

    Swift

    public weak var dataSource: FUIChartViewDataSource? { get set }
  • Reloads the data presented by the FUIChartView.

    reloadData() should be executed after the dataSource property is assigned a FUIChartViewDataSource instance.

    There are other occasions where you may want to invoke this method:

    Declaration

    Swift

    public func reloadData()
  • Indicates total indexes for waterfall chart.

    • Given indexes will treat the corresponding categories as totals.
    • The corresponding category values in the provided data should correspond to the total sum of the preceding values.
    • If the corresponding category value is nil in the provided data, the chart will complete the sum of the total value, which can be retrieved through plotItem(atSeries:category:).

    Declaration

    Swift

    public var indexesOfTotalsCategories: IndexSet? { get set }
  • Indicates secondary value axis series indexes for line based charts.

    • The secondary value index works with .line, .area and .combo charts only.
    • Given series indexes will assign the corresponding series to the secondary value axis.

    Declaration

    Swift

    public var indexesOfSecondaryValueAxis: IndexSet? { get set }
  • Returns plot item for a given location.

    Declaration

    Swift

    public func plotItem(at location: CGPoint) -> FUIChartPlotItem?
  • Returns plot item for given series and category.

    Declaration

    Swift

    public func plotItem(at series: Int, category: Int) -> FUIChartPlotItem?
  • Provides attributes for the primary numeric axis.

    • For clustered column, line, and combo charts this is the Y axis.
    • For bar charts this is the X axis.

    Declaration

    Swift

    public var numericAxis: FUIChartNumericAxis { get }
  • Provides attributes for the secondary numeric axis.

    • For clustered line, area and combo charts this is the secondary Y axis.

    Declaration

    Swift

    public var secondaryNumericAxis: FUIChartNumericAxis { get }
  • Provides attributes for the category axis.

    • For clustered column, line, and combo charts this is the X axis.
    • For bar charts this is the Y axis.

    Declaration

    Swift

    public var categoryAxis: FUIChartCategoryAxis { get }
  • Collection of FUIChartSeries containing properties for all series provided by the FUIChartViewDataSource.

    Declaration

    Swift

    public var series: FUIChartSeriesCollection { get }
  • Determines which plot items should be selected for a category.

    • single : Selects a single value in the currently selected series and category indices.
    • all : Selects one value in each series for the selected category index(es).

    Declaration

    Swift

    public var selectionMode: FUIChartSelectionMode { get set }
  • Default category selection mode for the chart. Defines how the initial selection is handled. Only valid values are selected. Used in combination with: select(category:), select(categoriesInRange:), select(series:), select(dimension:). If no series is selected through select(series:), the first series will be used. For Scatter and Bubble charts, if no dimension is defined through select(dimension:), the Y axis dimension will be used.

    • MCDefaultCategorySelectionIndex This is the default behavior, where the given selection will be considered as the initial selection.
    • MCDefaultCategorySelectionFirst The first category will be considered as the default selection.
    • MCDefaultCategorySelectionLast The last gategory will be considered as the default selection.

    Declaration

    Swift

    public var defaultCategorySelectionMode: ChartDefaultCategorySelectionMode { get set }
  • When false a state is allowed in which no series is selected/active.

    Declaration

    Swift

    public var selectionRequired: Bool { get set }
  • The currently selected plot items for the FUIChartView (points, columns, bars, etc).

    Declaration

    Swift

    public var selections: [FUIChartPlotItem]? { get }
  • Selects a category at the given index. The resulting selection(s) depend on the current selectionMode.

    Declaration

    Swift

    public func select(category categoryIndex: Int)

    Parameters

    categoryIndex

    The index of the category to select.

  • Selects a category range, including the lower and and upper bounds of the range. The resulting selection(s) depend on the current selectionMode.

    Declaration

    Swift

    public func select(categoriesInRange range: ClosedRange<Int>)

    Parameters

    range

    The closed range of the categories to select.

  • Selects a series at the given index. The resulting selection(s) depend on the current selectionMode.

    Declaration

    Swift

    public func select(series seriesIndex: Int)

    Parameters

    seriesIndex

    The index of the series to select.

  • Steps through the series in incremental order.

    Declaration

    Swift

    public func selectNextSeries()
  • Selects a dimension at the given index for Scatter and bubble charts. The resulting selection(s) depend on the current selectionMode.

    Declaration

    Swift

    public func select(dimension dimensionIndex: Int = 0)

    Parameters

    dimension

    The data dimension to select in Scatter (X: 0, Y: 1) and Bubble (X: 0, Y: 1, BubbleSize: 2).

  • Deselects all currently selected plot items in the FUIChartView.

    Declaration

    Swift

    public func clearSelections()
  • Chart’s data debug description.

    Declaration

    Swift

    public var debugDataDescription: String { get }