ParallelCoord
|
The ParallelCoord object contains parallel coordinates against which data can be represented. To create a ParallelCoord object, pass a set of Scale objects to the ParallelCoord constructor:
var rect = new ParallelCoord(scale1,scale2,...);
You can pass a set of Scale objects (e.g., ‘scale1’, ‘scale2’, etc.) to the constructor, or specify this later using the ParallelCoord.setScales(scales) property.
Example
Chart Component Script
dataset = [["Quantity","Total","Returns"],[200,800,10],[175,1000,15],[50,300,20]]; (1)
graph = new EGraph();
var elem = new LineElement();
var qscale = new LinearScale("Quantity"); (2)
var tscale = new LinearScale("Total"); (2)
var rscale = new LinearScale("Returns"); (2)
var coord = new ParallelCoord(qscale,tscale,rscale); (3)
elem.addDim("Quantity");
elem.addDim("Total");
elem.addDim("Returns");
graph.addElement(elem);
graph.setCoordinate(coord); (4)
| 1 | See dataset to use a data block instead of an array literal. |
| 2 | Create the LinearScale objects. |
| 3 | Create the ParallelCoord from the LinearScale objects. |
| 4 | Use EGraph.setCoordinate(coord) to add the Coordinate to the Chart. |

Script that modifies the graph or dataset properties should be placed on the Chart component itself. See Add Component Script for more information. This script has access to the Chart data and Chart API methods. Scripted Charts are not good candidates for user-modification, so you should deselect ‘Enable Ad Hoc Editing’ in the Chart Properties dialog box.
|