FUIChartSeriesCollection

public class FUIChartSeriesCollection

A Swift Collection of FUIChartSeries instances presented by the chart.

The number of series provided by the Collection is determined by the data source and is not internally capped.

  • Number of series in the specific chart

    Declaration

    Swift

    public var numOfSeries: Int { get }
  • Properties for the points rendered in all line series.

    Declaration

    Swift

    public var pointsAttributes: [FUIChartPointAttributes]
  • Colors used to render the lines and points in a series. Colors will be reused when fewer colors are provided than the number of series attributes.

    let colorIndex = seriesIndex % colors.count
    

    Note: colors is maintained for backward compatibility. Full customization of series colors only supports charts other than stock chart. For charts (i.e. stock chart) that have more than one color for each series attribute, when using colors it will fall back to apply only the primary color. strokeColors should be used to display multiple colors or gradient colors.

    Declaration

    Swift

    @available(*, deprecated, renamed: "strokeColors")
    public var colors: [UIColor] { get set }
  • Colors used to render the lines and points in a series. Colors will be reused when fewer colors are provided than the number of series attributes. Note: Developer setstrokeColors will be orderly maps to colors propery in a palette for each series atribute. If the input is empty, a default palette of charts colors will be used. If the number of input is less than the number of series attributes, colors will be reused in a rotation manner. If more than needed colors are set, extra colors in the end will be ignored.

    Declaration

    Swift

    public var strokeColors: [[UIColor]] { get set }
  • Colors used to render the series of fill area. Colors will be reused when fewer colors are provided than the number of series.

    let colorIndex = seriesIndex % colors.count
    

    Declaration

    Swift

    public var fillColors: [UIColor] { get set }
  • Read only. Returns the maximum number of values across all series.

    Declaration

    Swift

    public var maximumNumberOfValues: Int { get }
  • Properties for the points rendered in all line series.

    Declaration

    Swift

    @available(*, deprecated, renamed: "pointsAttributes")
    public var points: FUIChartPointAttributes { get set }