"curveResample"

The attribute "curveResample" enables the curve downsampling.

Synopsis

setValue(string shape, "curveResample", string curve, int which);

shape.curveResample(string curve, int which);

Parameters

Parameter Description
shape Name of the object
curve Name of the curve
which Type of downsampling. Can be one of the following:
  • which = TREND_NO_RESAMPLE (= 0): works like the old dpGetPeriod
  • which = TREND_RESAMPLE (= 1 or 2): dpQuery with AVG

Description

The "curveResample" function can only be used in an NGA-project. In other projects the downsampling setting is ignored.

The attribute "curveResample" enables the downsampling of the specified curve. If you zoom in, a new dpQuery request is made with more details.

The downsampling can be selected by selecting the type of downsampling in the corresponding combobox in the curve tab. The combobox will not be shown in any projects not using NGA.

The downsampling within the trend will display the aggregated values in a filled area starting from minimum value to maximum value.

Figure 1. Trend Downsampling

The filled area color for the trend always uses a lighter shade of the selected curve color and cannot be changed separately, e.g. not by using "curveFillColor".

Note: Debugging can be enabled, but this will cause a significant decrease in performance:
WCCOAui -dbg trend ...
Note: The event curve does not support the downsampling and is ignored for it.
Note: The bar trend does not support the downsampling, and it cannot be set for it.

Assignment

Trend