Test controller, chart layout

ChartLayout1

This popup makes it easy to customise the chart, this functionality is also available from scripting. The customisation includes colors, changing the axis names, combining scales and adding annotations to the chart. Colors and names will also be used on the Histogram page. This popup can be opened from right clicking on a chart and selecting layout (It is not accessible from the Popups button)
This function can be used to improve a chart when it has to be shown for other people.



Contents
    Customising colors
    Customising names
    Synchronising scales
    Annotations
    Annotations parameters
        Arrow
        Text
        Value
        Box
        BoxRounded
        Circle
        Line
        LineX
        LineY
        Curve
        Polygon
        PolyLine
        Shape
    Generating script
    Scripting
Main page



Customising colors

ChartLayout1a

Click on the buttons to adjust the color, the symbol with the white X means default color is used.
The colored line at the bottom can also be adjusted by clicking on the color patches and more colors can be added by clicking on the X at the end.

Colors

The Java color selector, there is multiple ways to select a color, depending on selected page.

ChartLayout1b

A chart with some changed colors.
Use the "Default" button to restore the original colors.
The "Title" color is only used when saving charts.



Customising names

ChartLayout2

This page list all the axis names and the name used on the chart.

ChartLayout2a

Click on the "Chart name" for a axis and it can be changed.

ChartLayout2b

And the axis on the chart will show the new names (Anywhere else in TestController the original name is used).
The last entry "Title on saved charts" can be used to override the default title for a saved chart.



Synchronising scales

ChartLayout3

With this page it is possible to combine scales for curves.

ChartLayout3a

Here the scale for VSG_1.Sine is used for all 3 curves

ChartLayout3b

And the result looks this way.
There is a caveat when using this function: The "master" scale but be first, this can be fixed by unchecking and the checking it (on the right side of the chart).



Annotations

ChartLayout4

On the annotation page one or more annotations can be added to the chart.

ChartLayout4a

Here I have added most the different annotations. Click on a name to edit that annotation.

ChartLayout4b

A demonstration of the different annotations.

ChartLayout4c

The right click menu will change depending on what is possible:

Annotations parameters


Arrow

Arrow

The arrow is a arrow with some associated text.

Text

Text

Place some text in the chart.

Value

Value

The value is a arrow with some associated value from the linked curve.

Box

Box

A box, that can optionally be filled with a color.

BoxRounded

BoxRounded

A box with rounded corners, that can optionally be filled with a color.

Circle

Circle

A circle or ellipse, that can optionally be filled with a color.

Line

Line

A line (Use PolyLine when connected lines are required).

LineX

LineX

A vertical line with only the X coordinate specified.

LineY

LineY

A horizontal line with only the Y coordinate specified.

Curve

Curve

Smoothly connected line segment, that will form a curve

Polygon

Polygon

A closed figure made from line segments.

PolyLine

PolyLine

Connected line segments.

Shape

Shape

A closed figure made from smoothed line segments.

Generating script

When this popup is open a option to generate a script for the chart is added to the generate script menu:

ScriptGenerantion

This will generate a script to restore the exact layout that the chart has now. It includes setting for the currently shown data.



Scripting

This popup cannot be controlled with scripting, but all the functions can be duplicated with script commands:

#CHARTCOLORS color{ color{ color{...}}}
#CHARTSCALENAME originalName newName
#CHARTSCALESYNC  {reference sync1{ sync2{ ...}}}
#CHARTANNOTATE ...