"curveResample"

The attribute "curveResample" enables the curve resampling.

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 resampling. Can be one of the following:
  • which = TREND_NO_RESAMPLE (= 0): works like the old dpGetPeriod
  • which = TREND_RESAMPLE (= 1): dpQuery with LAST
  • which = TREND_RESAMPLE_WITH_AVG (= 2): dpQuery with AVG

Description

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

The attribute "curveResample" enables the resampling of the specified curve. If you zoom in, a new dpQuery request is made with more details. After a short time the requested data is shown. There might be differences in the graphical presentation, if you are using TREND_RESAMPLE_WITH_AVG. This happens if only 1 value (= 1 database row) is retrieved instead of 2 because of a small available pixel space. With TREND_RESAMPLE there are no graphical differences.

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

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

Assignment

Trend