Charts Definition Language (CDL): Difference between revisions

m
#LINEWIDTH: Defines the linewidth for that variable.
#OPACITY: Defines the opacity for that variable (important for area and column graphs)
#AXIS: Gives the user the possibility to specify an axis when using the EVAL construct otherwise an error is generated.
#ENDCHART: End the chart definition
#OUTPUT: Gives an optional name of an outputfile which starts at the chart where it is defined. Any chart after this OUTPUT specifier goes to this OUTPUT until another OUTPUT is found. Only the first OUTPUT specifier accepts clickevents as defined by CONNECTSTO.
 
The keywords for the actual parameters and the Graph Types speak for themselves.
 
===== EVAL =====
The EVAL requires probably some explanation.
 
The equation is formulated between square brackets and is meant to modify a weather variable. Available to the user are functions, the weather variables and the mathematical operators +, -, * and /. Currently the only function available is SUM which incrementally sums up all data leading to the Growing Degree Days graph. Other functions will follow.
 
The following example shows the daily average temperature modified to the Growing Degree Days with an offset of 5 °C:
 
CHART GrowingDgreeDays TITLE TempSum with offset 5
PLOT ALL AverageTemp colour CornflowerBlue as column
PLOT ALL AverageTemp EVAL [ SUM(AverageTemp-5) ] colour green Axis DegreeDays
EndChart
 
== The Chart Axis ==