How can I be addressed to the ruller lines of the trend, if they have more than one?
getValue("TREND1", "rulerTime", 0, trendTime); // only area index - no ruller index.
How do I get the ruller value of this intersection with the trend curve? Now, I should make a dpGetPeriod, so I have no access to internal "trend" curve data.
WnCCOA 3.13 P008
Trends - rullers.
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Trends - rullers.
To get all ruler times, use: rulerTimes(int area, dyn_time positions)
To get the current data for a curve out of the trend widget without using again a dpGetPeriod(), use: curveValues(string curve, dyn_float value, dyn_time times, dyn_bit64 status)
To get the current data for a curve out of the trend widget without using again a dpGetPeriod(), use: curveValues(string curve, dyn_float value, dyn_time times, dyn_bit64 status)
- vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Re: Trends - rullers.
Thanks!
With which event or method I can keep track of adding, deleting, changing position of the ruler line on the trend widget?
With which event or method I can keep track of adding, deleting, changing position of the ruler line on the trend widget?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Trends - rullers.
Currently there is no script event being triggered when a ruler is added or removed.
Why would you need this ? What is the use case ?
Why would you need this ? What is the use case ?
- vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Re: Trends - rullers.
I have additional text-fields with current ruler timestamp/value. And I must update this field values for current ruler.
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Trends - rullers.
So you want to create a legend / trend ruler window kind of display, right ?
Currently you can only have this when using only one ruler when you set curveValueShape/curveTimeShape, which will automatically display the first rulers
time/value in the given shapes.
Currently you can only have this when using only one ruler when you set curveValueShape/curveTimeShape, which will automatically display the first rulers
time/value in the given shapes.
- vladimir
- Posts:25
- Joined: Thu Jan 23, 2014 1:34 pm
Re: Trends - rullers.
Yes, you right.
Thanks, I will test it.
Thanks, I will test it.