Skip to main content
Time-series items (commonly CSV files) hold one or more channels of values over time. Upload them to a storage folder with StorageFolder.upload_time_series(), and control how each channel is rendered in the label editor with TimeSeriesViewSettings.

Channel View Settings

TimeSeriesViewSettings maps each channel to its render style. Channel keys are the CSV header names, and headers must be unique. A view can define at most 100 channels. Each channel is either a TimeSeriesLineChannelViewSettings (rendered as a line) or a TimeSeriesPointsChannelViewSettings (rendered as points). Both accept:
  • label — the display name for the channel. Optional.
  • color — a 3, 6, or 8 digit hex color. Optional.
  • hidden — whether the channel is hidden from the default view. Defaults to False.
Line channels also take a line_width (0.5–6), and points channels a point_radius (1–8).
New in SDK v0.1.205: label and color are now optional. Omit label and the channel uses its CSV header name; omit color and it uses the editor’s palette. Omitting the style renders the channel as a line.

Upload and Configure Time-series Data

Pass settings to upload_time_series() to set the initial view, read the current settings from StorageItem.timeseries_settings, and change them later with StorageItem.update(timeseries_settings=...).
Configure Time-series Channel View Settings