Scale.setSharedRange(boolean)
For a FacetCoord, specifies whether the same scale range should be used across all sub-graphs in a facet, or whether a sub-graph's scaling should be shared only with sub-graphs in the same row (for Y-axis scaling) or same column (for X-axis scaling).
Parameter
value true share scaling across all sub-graphs
false share scaling by row and column
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)
dataset = [["State", "City", "Product", "Quantity"],["NJ", "Piscataway", "P1", 200],["NJ", "Edison", "P2", 100],["NY", "NYC", "P1", 300]];
graph = new EGraph();
var elem = new IntervalElement("City", "Quantity");
var state = new CategoricalScale("State");
var city = new CategoricalScale("City");
var product = new CategoricalScale("Product");
var quantity = new LinearScale("Quantity");
quantity.setSharedRange(false)
var inner = new RectCoord(city, quantity);
var outer = new RectCoord(state, product);
var coord = new FacetCoord(outer,inner);
graph.setCoordinate(coord);
graph.addElement(elem);
See Also
DataSet, to use a Data Block or query as the dataset source.
| << Scale.setScaleOption(value) | © 1996-2013 InetSoft Technology Corporation (v11.4) | CR.6.9 LinearScale >> |