ParallelCoord.setScales(scales)
Specifies the set of parallel scales to use. These can also be specified as arguments to the constructor.
Parameter
- scales
-
Array of Scale objects
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();
coord.setScales([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.
|