Charts Definition Language (CDL): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
no edit summary
mNo edit summary
#CONNECTSTO: The integer numbers which follow CONNECTSTO represent a pane in the realtime dashboard. When clicked on that pane this chart appears. This is only valid on charts in the default output. For other outputs there is no semantics for CONNECTSTO and a warning is issued in the logfile if it is specified in any second or higher output.
#PLOT: Starts the plot specification using one of the possible variables
#[[CDL - STATS|STATS]]: Starts the statistics block using one of the possible variables. Semantics demands the variable to be plotted normally as well.
#ALL: Defines the variable to be taken from the [[Dayfile.txt|Dayfile]] and all data for that variable will be plotted (Note that the CMX parameter ''ChartMaxDays'' will not be used)
#RECENT: Defines the variable to be governed by the CMX parameter ''GraphHours'' and are similar to the CMX RECENT graphs (though not equal).
 
The keywords for the actual parameters and the Graph Types speak for themselves.
 
 
===== STATS =====
[[File:Schermafbeelding 2021-05-21 154949.jpg|thumb|right]]
The STATS plots a statistic in the chart. The normal PLOT of that variable must be present. STATS implies the ALL or DAILY range specification. RECENT PLOTS have no STATS (at the moment).
 
The following example shows the Rain for all days (all observations). In addition the yearly cumulative curve is shown and the moving average (SMA - Simple Moving Average). See image on the right.
 
CHART DailyRain TITLE Rain with statistics
PLOT ALL RainFall colour CornflowerBlue as column
PLOT ALL RainFall EVAL [ SUM( RainFall ) ] COLOUR crimson AXIS Free
STATS RainFall SMA colour green
EndChart OUTPUT Statistics.txt
 
== The Chart Axis ==

Navigation menu