ChartsCompiler: Difference between revisions

m
(8 intermediate revisions by the same user not shown)
|__TOC__
|}
The ChartsCompiler is the "next-generation" method of creating charts for websites on the basis of CumulusMX based systems. Charts are defined in a dedicated [[Charts Definition Language (CDL)|Charts Definition Language]] and compiled into a file (or files) containing both the HTML/javascript menu infrastructure as well as the Highcharts javascript code to create the charts. Data - in JSON files assimilar like those produced by CumulusMX - is assumed to be present in the directory from where the page is called.
 
The compiler can be used within CumulusUtils website (intrinsic with the Website Generator [[ChartsCompiler#Implicit_activation|(Implicit Activation)]]) and the output can be used standalone (really standalone if you rename the output to .html) or standalone from within a users website (menu or link; [[ChartsCompiler#Explicit_activation|Explicit Activation]]). When used outside the CumulusUtils infrastructure, you must be aware of the [[cumulusutils.ini|parameters]] (section general) ''GeneratejQueryInclude'' and ''DoLibraryIncludes''.
 
'''NOTE: with the Website Generator, use of the ''CutilsCharts.def'' is always optional'''. If the file is not present, the generator will always fall back to the default charts.
 
== Language ==
There are principally no translations associated with these charts because the user writes his own text (titles), the Y-axis have been translated already throughsection the[website] oldor system[general] and only when new axis arrive new translations will be needed.
 
The onlylegend exceptions areof the legendcompiler wordscharts ashowever thosemay require some user action. Because the legend areis formed by the reserved words of the plotvariables., Ifsome of which may be created by the usersuser, wishesthe todescriptions translateof thosethe (givelegend anothermay wording)become hesomewhat canincomprehensible findfor thosethe unknown website user. Therefore, the legend descriptions get their own termsentries in the language file underin the section Compilercompiler. You can use those entries for translation and/or change of description.
 
== Operation ==
 
=== When using the CDL OUTPUT spec ===
For every OUTPUT specification in the definition file an output is created containing all charts defined from that point, including the chart on which it was defined. ''cumulusutilscumuluscharts.txt'' will always be created which means at least the first chart will be in there. ''cumulusutilscumuluscharts.txt'' will be used to fill the Home button in the CumulusUtils website.
 
So:
#An output spec ''file1.txt'' for the first chart will create ''cumulusutilchartscumuluscharts.txt'' containing the first chart and a ''file1.txt'' also containing the first chart but also the subsequent charts.
#An output spec ''file2.txt'' for the third chart will create chart 1 and 2 in ''file1.txt'' and chart 3 in ''file2.txt''.
#An output spec ''file3.txt'' for the last and eighth chart will create chart 3,4,5,6,7 in ''file2.txt'' and chart 8 in ''file3.txt''