| Block Group: | Logic |
| Icon: | no icon |
Converts between X and Y coordinates that are relative to a DGLux5 space and X and Y coordinates that are relative to a chart series.
In the context of this block:
In order for this block to work, the parent of this block must be the series whose data is part of the conversion.
For information on using dataflow blocks, see Dataflow.
These properties can take input and give output.
invoke causes the values to be converted. Only works if enabled is set to TRUE. The values are also converted when x, y, type or space changes.
enabled specifies whether the values will be converted. The default is TRUE.
type specifies the direction of the conversion that this block performs. The default is PointToData.
space specifies the coordinate space of the point coordinates: Page, Document, Chart (default) or Series.
mode specifies how a point is mapped to data in a PointToData conversion. It is not used for DataToPoint.
x and y are the coordinates before conversion. If this is a PointToData conversion, they are point coordinates. If this is a DataToPoint conversion, they are data coordinates.
These properties can give output. They cannot take input.
outX and outY are the coordinates after conversion. If this is a PointToData conversion, they are data coordinates. If this is a DataToPoint conversion, they are point coordinates. If the conversion fails (for example, the parent is not a chart series, or an input is missing), both outputs are null. In a DataToPoint conversion, the outputs are updated automatically when the chart is redrawn.
These are some basic uses of the block.
| Dataflow Model | Description |
|---|---|
![]() | The top and left edges of the text components will always appear at the same chart coordinates, even if the group is resized. In this example:
|
![]() | When the user clicks the chart, the data coordinates for the nearest data point in the series are displayed. In this example:
|