OBJECT

ChartComparison

Comparison series of a report chart, defined by a period, by years or by a history comparison date.

link GraphQL Schema definition

  • type ChartComparison {
  • # Whether the chart shows a comparison series.
  • isEnabled: Boolean!
  • # Identifier of the date field used to define the comparison period.
  • dateFieldId: UUID
  • # Period the comparison series covers.
  • period: PeriodOption
  • # Years the chart is compared with when it is grouped by a date or date-time
  • # field; required in that case, and period and dateFieldId are then not used.
  • yearComparison: ChartYearComparison
  • # When true, the comparison is shown relative to the current series (such as a
  • # difference or percentage) rather than as an independent series.
  • relativeComparison: Boolean!
  • # Identifier of the history comparison date the chart compares against, for
  • # history-based reports.
  • historyComparisonDateId: UUID
  • # Color of the comparison series, given as an RGB color code encoded as an
  • # integer.
  • seriesColor: Int
  • }