Charts Definition Language (CDL): Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
mNo edit summary
(2 intermediate revisions by the same user not shown)
Line 28: Line 28:
   PLOT blocks repeated
   PLOT blocks repeated
     [...]
     [...]
   ENDCHART
   ENDCHART OUTPUT <filespec>


   CHART […] ENDCHART blocks repeated
   CHART […] ENDCHART blocks repeated


Plot blocks can be repeated as many times as you wish but different parameters can result in many yAxis (making the plot area smaller) and the chart may become crowded and unreadable. Experiment and try-out.
Plot blocks can be repeated as many times as you wish but different parameters can result in many yAxis (making the plot area smaller) and the chart may become crowded and unreadable. Experiment and try-out.
=== Output specifier ===
An output file can be specified for each chart by putting ''OUTPUT <filename>'' after an ENDCHART. All charts from that point on will be written to that specified output until a new output is specified for another chart. If no output is specified at all, all charts will be written to ''cumuluscharts.txt'' (the default output)
If you are using the website it is important to know that the first chart will always be used as the chart for the Home page button and that cannot be changed (the file is always ''cumuluscharts.txt''). If, however you specify an output on the first chart, that chart will be duplicated in the output you specify.
The output specifier gives the user the possibility to define charts as he likes and to place these in the menu wherever he likes. In the [[Website Generator]] the placements of the charts at the moment will be limited to the [[User Defined Menu]]. In modular use the user can do whatever he likes with the resulting files. In the website the charts require the datafiles to be in the current directory.


=== Keywords ===
=== Keywords ===
Line 76: Line 83:
#OPACITY: Defines the opacity for that variable (important for area and column graphs)
#OPACITY: Defines the opacity for that variable (important for area and column graphs)
#ENDCHART: End the chart definition
#ENDCHART: End the chart definition
#OUTPUT: Gives an optional name of an outputfile which starts at the chart where it is defined.


The keywords for the actual parameters and the Graph Types speak for themselves.
The keywords for the actual parameters and the Graph Types speak for themselves.

Navigation menu