Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

My data values are large but the range between values is small and my chart is bouncing around.

This is a known behavior with the OpenGL renderer where doubles values are converted to floats precision is lost. This is most noticeable when a user uses data values as coordinates for vertices when creating a field. This is not an OpenViz related issue.

 

The solution is to remap the data values to a normalized coordinate extent range and thus allow OpenGL to calculate and render correctly.

Step-by-step guide

Setup your data pipelines as follows:

  1. Bring the X, Y, data into TableMapper as columns.
  2. Create a LinearAxisMap for each X & Y Axis by setting the Min/Max Coordinates to 0 and 1 respectively for the data range in question.
    1. You can set the Min/Max Value explicitly   OR
    2. You can set the InputField as the output field from TableMapper and specify the NodeDataIndex.
  3. Pass the field from TableMapper and the two AxisMaps into a ScatterChart.
  4. Use the NewSeries (x, y, z) method specifying the corresponding node data array indices.
    1. You can show a line by setting the ShowLine property on the ScatterChart to TRUE.
  5. On your Domain component, set the InputAxisMaps as the output from the ScatterChart for each of the dimensions.

To use the data with other charts, use the ColumnDataToScatter component after TableMapper in the same way specifying the InputField, and the AxisMaps and NodeDataIndex for each of the axis. You may then pass the field into another component.

 

  • No labels