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 }
  • 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: [Int]? { 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 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 }
  • 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.

  • Deselects all currently selected plot items in the FUIChartView.

    Declaration

    Swift

    public func clearSelections()