To create a chart:
Choose KB-Workspace > New Display > chart
Chart-style attribute of a chart determines its style, each style providing a set of default attributes. The diagram on the next page shows an example of each chart type. Chart attributes are described in the section The Chart Class. ![]() |
Specifying the Chart Style
The Chart-style attribute specifies what style of chart to use. You can further enhance the chart style by using annotations. For example, when using a Column-chart-style, you can optionally add an annotation indicating that a data series should be represented as either a bar (horizontal) or a column (vertical) style. Sizing a Chart
G2 limits the size of a chart so that it cannot become so large that it consumes all available system resources.
To change the size of a chart:
Choose chart > change size
Update Now in the dialog.
![]() |
Defining the Data Series for the Chart
The Data-series attribute defines what to plot on the chart. Each data series must evaluate to a quantity list or array.
data series 1,data series 2
By using the versus statement, you can plot two data series against each other. An example of plotting two data series is:
plot q1; plot q2 versus q3