This section of the manual is intended to serve as a quick reference to ECharts commands and their command line options. More detailed explanations of the commands can be found elsewhere in the manual.
ECharts translators determine dependencies amongst ECharts compilation units. For example, if a machine in one .ech file references a machine defined in another .ech file, then the default behavior for most translators is to automatically translate the other file as it translates the first file. This behavior can be disabled using the --no-dependencies command line option. Furthermore, if the modification date of an ECharts .ech file is later than the modification date of its respective ECharts host language file then the .ech file is re-translated to ensure the translated version is up to date. These aspects of ECharts translators are similar to the support provided by Java’s javac compiler.
Another similarity between javac and ECharts translators is the ability to define a list of directories in which to search for compilation units. While javac uses the CLASSPATH environment variable, ECharts uses the ECHARTSPATH environment variable. When the ECharts translator needs to locate a compilation unit upon which another compilation unit depends, it searches each directory listed in the ECHARTSPATH variable in the order they are listed until it locates the compilation unit. Similar to javac, ECharts translators reference the ECHARTSPATH environment variable or the --echartspath command-line argument. For example, in Example0001 (see Section 2.1), the ech2java translator is invoked as follows:
However, an equivalent way to invoke the translator would be to initialize the ECHARTSPATH environment variable. Here we assume a Unix environment using the bash shell.
If the ECHARTSPATH environment variable is defined and an ECharts translator is invoked with the --echartspath command-line option, then the value defined by the command-line option will override the value defined by the environment variable.
The ech2java translator translates ECharts .ech machine definition files to Java .java files. The ech2java translator is introduced in Section 2.1.
Usage:
ech2java [options] [echartsfilenames] [echartspackagenames]
Summary:
Translate specified echartsfilenames and echartspackagenames to Java .java files. For each specified package, translate all .ech files in that package.
Options:
‘:’ separated list (‘;’ on Windows) specifying directories to search for the specified echartsfilenames and echartspackagenames. The default value is the current working directory.
Directory path specifying where to write translated files to. If subdirectories on path do not exist then they are created. The default value is the source directory of the specified echartsfilenames and echartspackagenames.
‘:’ separated list (‘;’ on Windows) specifying package names recursively searched for .ech files. This is similar to the echartspackagenames command line argument except that package subdirectories are searched recursively for this option. The default value is the empty string.
The ech2dot translator translates ECharts .ech machine definition files to Graphviz .dot files. The ech2dot translator is discussed in detail in Section 6.
Usage:
ech2dot [options] [echartsfilenames] [echartspackagenames]
Summary:
Translate specified echartsfilenames and echartspackagenames to Graphviz .dot files. For each specified package, translate all .ech files in that package.
Options:
‘:’ separated list (‘;’ on Windows) specifying directories to search for the specified echartsfilenames and echartspackagenames. The default value is the current working directory.
Directory path specifying where to write translated files to. If subdirectories on path do not exist then they are created. The default value is the source directory of the specified echartsfilenames and echartspackagenames.
Fully qualified Python class name of label formatter. Default value is DotMachinePartialFormatter.DotMachinePartialFormatter.
Fully qualified Python class name of tooltip formatter. Default value is DotMachineCommentFormatter.DotMachineCommentFormatter.
Fully qualified Python class name of URL formatter. Default value is DotMachineFormatter.DotMachineFormatter.
The ech2doc translator translates ECharts .ech machine definition files to .html and .svg files. The ech2doc translator is discussed in detail in Section 7.2.
Usage:
ech2doc [options] [echartsfilenames] [echartspackagenames]
Summary:
Translate specified echartsfilenames and echartspackagenames to .html and .svg files. For each specified package, translate all .ech files in that package. Note that the Graphviz dot program must be installed to run this translator.
Options:
‘:’ separated list (‘;’ on Windows) specifying directories to search for the specified echartsfilenames and echartspackagenames. The default value is the current working directory.
Directory path specifying where to write translated files to. If subdirectories on path do not exist then they are created. The default value is the source directory of the specified echartsfilenames and echartspackagenames.
Documentation title HTML. Default value is ‘ECharts Machine Documentation’.
The ech2javadoc translator translates ECharts .ech machine definition files to .html and .svg files. The ech2javadoc translator is discussed in detail in Section 7.3.
Usage:
ech2javadoc [options] [echartsfilenames] [echartspackagenames]
Summary:
Translate specified echartsfilenames and echartspackagenames to .html and .svg files. For each specified package, translate all .ech files in that package. The target directory for translated files is a directory named doc-files that is a subdirectory of the .ech file source directory. Note that the Graphviz dot program must be installed to run this translator.
Options:
‘:’ separated list (‘;’ on Windows) specifying directories to search for the specified echartsfilenames and echartspackagenames. The default value is the current working directory.
Directory path specifying where to write translated files to. If subdirectories on path do not exist then they are created. The default value is the source directory of the specified echartsfilenames and echartspackagenames.
The javadocpp program post-processes HTML documentation generated by javadoc to provide customized views of ECharts machine class documentation. The javadocpp program is introduced in Section 7.3.
Usage:
javadocpp [options] [javadocdirs]
Summary:
Post-process specified javadocdirs. Each specified directory should contain javadoc HTML documentation. For each specified directory, post-process all HTML files corresponding to ECharts machine classes and recursively invoke the program for any subdirectories.
Options: