Coordinate.setExtent(minX, minY, maxX, maxY)
Sets the extent of a geographical coordinate system (for a map-type chart) to the specified latitudes and longitudes.
Parameter
minX the minimum longitude
minY the minimum latitude
maxX the maximum longitude
maxY the maximum latitude
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 or Viewsheet)
Create a map of the United States. (See Creating a Map Chart in Dashboard Design or Binding a Chart to Geographical Data (Map) in Report Design for more information.) To restrict the range of the map to the region between Washington and Boston, first obtain the latitude and longitude of these cities:
• Washington: 38.895111 latitude, -77.036667 longitude
• Boston: 42.358056 latitude, -71.063611 longitude
Add the following chart script to limit the extent of the map to this range. Note that the x-axis corresponds to longitude, and the y-axis corresponds to latitude.
graph.getCoordinate().setExtent(-77.036667, 38.895111,-71.063611, 42.358056)
graph.getElement(0).setInPlot(false)

The setInPlot(false) function allows the chart to display only the specified portion of the map. Otherwise, the chart will force the entire map to display, regardless of the specified extent. See GraphElement.setInPlot(boolean) for more information.
| << Coordinate.rotate(value) | © 1996-2013 InetSoft Technology Corporation (v11.5) | \Coordinate.transpose() >> |