Skip to content

TSGraph raster graph - enable annotation for cell to display symbol from a time series #301

Description

@smalers

Problem

Raster graphs are useful to summarize a lot of time series data. The input time series must be regular interval. For example, a raster graph can be used to indicate daily data availability. These features are working well.

It would also be useful to annotate a raster graph, for example with a symbol to indicate that a missing data alarm was generated. For example, if the main raster graph rendering shows the count of values in a day, a second time series of count of alarms in a day could be used to annotate the cells with a symbol, for example:

  • draw a box around the cell
  • draw a symbol in the cell, such as a colored circle

It might also be possible to do math up front to combine the time series into one value that is just rendered with a different color (e.g., no data and no alarm, no data but have alarm), but this might be difficult to interpret. If an annotation on top of the cell is used, it could only be used in cases where the cells are big enough to hold the annotation..

So, assuming that an annotation would be drawn, how would it be configured? Here is one proposal:

  1. Leverage the existing annotation feature but add some properties:
    2. Add a new property that would indicate that the annotation is for each value in the time series, and indicate the TSID and/or alias. The TSID and Alias for the raster graph time series might also need to be specified.
    3. Allow dynamic sizing of the annotation so that the size can be determined from the cell.
    4. Possibly allow a symbol table to configure dynamic annotations based on the time series value.
  2. The data (time series) properties could be left as is, or perhaps add the time series used by the annotation at the end and mark as "disabled" or "hidden" for the graph so that it is not drawn or shown in the legend.
  3. Maybe add a new concept such as "overlay" or "cell decorator" that would have time series data and also annotation to provide the drawing properties. Would this be nested in the "Data" layer and reference an annotation?

Think this over and come back when the requirements and example are more fleshed out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

LSize: more than 3 daysenhancementhighPriority: next release if possible

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions