AWFWeatherGraphSeries

Objective-C

@interface AWFWeatherGraphSeries

Swift

class AWFWeatherGraphSeries

AWFWeatherGraphSeries is a subclass of AWFGraphSeries that provides additional functionality for generating graphs based on requested weather data from the API. Instances of AWFWeatherGraphSeries must provide one or more AWFWeatherSeriesItem objects to use for representing a data element on the graph.

See

AWFWeatherSeriesItem
  • An array of series items belonging to this series.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<AWFWeatherSeriesItem *> *items;

    Swift

    var items: [AWFWeatherSeriesItem]? { get }
  • The default request options to be used when requesting data for the series and is applied to each individual series item unless that item overrides the corresponding value. The default is nil.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) AWFBatchRequestOptions *dataRequestOptions;

    Swift

    var dataRequestOptions: AWFBatchRequestOptions? { get set }
  • The time zone to use when formatting graph labels and tooltips for the axis. Defaults to use the system’s current time zone.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSTimeZone *timeZone;

    Swift

    var timeZone: TimeZone? { get set }
  • Assigns the endpoint for all series items containied within the series to the specified endpoint.

    Declaration

    Objective-C

    - (void)setEndpointForAllSeriesItems:(nonnull AWFWeatherEndpoint *)endpoint;

    Swift

    func setEndpointForAllSeriesItems(_ endpoint: AWFWeatherEndpoint)

    Parameters

    endpoint

    The endpoint to use for all series items

  • Assigns the place option to use for all endpoints in the series items.

    Declaration

    Objective-C

    - (void)setPlaceForAllSeriesItemEndpoints:(nonnull AWFPlace *)place;

    Swift

    func setPlaceForAllSeriesItemEndpoints(_ place: AWFPlace)

    Parameters

    place

    The place to use for all series items