EGraph.setScale(field, scale)
Sets the specified Scale for the given axis. See Chart Coordinates & Scaling for available scales.
Parameters
field
name of axis to receive scale (String)
scale
scale to apply to axis (Scale)
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.element)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.scale)
importPackage(inetsoft.graph.coord)
importPackage(inetsoft.graph.guide.form)
var arr = [["State", "Quantity"], ["NJ", 200], ["NY", 300]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
var elem = new LineElement("State", "Quantity");
var qscale = new LinearScale("Quantity");
qscale.setMin(100);
qscale.setMax(500);
graph.addElement(elem);
graph.setScale("Quantity", qscale);
More Articles About Graphing
5 Different Software Testing Methods - Unit Testing The most granular level of software testing, unit testing, focuses on individual parts or units of code. Developers create test cases to verify the accuracy of small pieces of code independently. These tests guarantee that each component operates as expected in finding issues early in the development cycle. Test-Driven Development (TDD), in which tests are developed before the real code, is not complete without unit testing. 2. Integration Testing Integration testing examines how various software application modules or components interact. It guarantees that the integrated components function properly together and that information moves between them as intended. Different approaches can be used for integration testing, such as top-down, bottom-up, or a combination of both. Testing of this kind helps discover interface flaws, data transfer challenges, and unanticipated component interactions...
BI Tool That Empowers End-users - Self-service and user empowerment are among the rapidly emerging requirements of modern operational BI. The reason for this is that business people often cannot know in advance what questions they may need to answer. They cannot foresee the business changes that may require looking at data in new ways. If business users are allowed to become locked into yesterday's dashboards and reports, their ability to harness new opportunities is significantly impaired...
Download InetSoft's Web-based Dashboard Application - Are you looking to download a web-based dashboard application? Since 1996 InetSoft has been making business software that is easy to deploy and easy to use. Build self-service oriented interactive dashboards quickly. View a demo and download one of our applications for free...
Easy Growth Path to Big Data Is Included - Organizations that do not already have a clear big data challenge get the security of being able to grow into one over time. The concern of acquiring a dashboarding and analytics solution that cannot grow as an organization's data does is eliminated. Investment in the InetSoft solution can pay off now and in the future with a single easy-to-use platform...
How to Make a Contour Chart - To create a Contour chart, follow the basic steps below. Prepare Your Data The data source for the chart (data block, query, or data model) should represent dimensions and measures as independent columns or fields, including a date column, as shown below. See Prepare Your Data for information on how to manipulate your data, if it is not currently in this form. (Note: A properly designed data model will already have the correct structure...
Solution That Is Co-hosted with Your Data - Host at your chosen cloud location or self-host for minimum latency and maximum bandwidth. Intuitive self-service web app backed by a small footprint server that easily embeds into your applications. One-on-one engineering assistance for all customers, large and small.View a demo and try interactive examples...