"curveDataAt","curveDataAtX"

Returns the data which is available for a specific curve at a stated point in time.

Synopsis

trendObj.curveDataAt(string curve, time ti, mapping &data);

getValue(trendObj, "curveDataAt", string curve, time ti, mapping &data);

Parameter

Parameter Description
trendObj Trend for which the attributed should be get
curve Name of the curve
ti Point in time for which the data should be returned
data Data that is returned

Description

The Function returns the data for a specific point of time for the given curve. The returned data is a mapping that contains following information/keys:

  • time - Exact time (might differ from the stated time)
  • status - The status of the curve as bit64
  • value - the corresponding value as float
  • formattedValue - The formatted value as displayed inside of the legend
  • msgCatKey - Contains the matched config keys for the "trendStatusPattern" (optional)
  • pointIcon - Path to the used icon file (optional)

If the curve is an event curve than the corresponding event data is returned as JSON mapping in addition to the mapping keys above.

Assignment

Trend