EGraph.getCoordinate()
Returns a handle to the graph's Coordinate object. This is useful in cases where the coordinates were not explicitly assigned to a variable at creation time.
Note: Script that modifies 'graph' should be placed at the element level. See Adding Element-Level Script in Report Scripting and Adding Component Script in Dashboard Scripting for more information.
Example (Report)
Bind a bar-type chart to the sample 'All Sales' query, with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script:
var coord = graph.getCoordinate();
coord.transpose();
Example (Viewsheet)
Create a Viewsheet based on the 'Sales Explore' Worksheet. Bind a bar-type chart with 'Company' (top 5) on the X-axis, and Sum(Total) on the Y-axis. Add the following script:
var coord = graph.getCoordinate();
coord.transpose();
See Also
Appendix SC.12, Changing the Chart Coordinates, for information on modifying coordinates.
Appendix SC.6, Chart Coordinates & Scaling, for available coordinate sets.
| << EGraph.addForm(form) | © 1996-2013 InetSoft Technology Corporation (v11.4) | EGraph.getElement(index) >> |