InetSoft Product Information: Chart JavaScript
EGraph.getCoordinate(index)
Parameter
index
Integer index of coordinate
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();
EGraph.getElement(index)
Returns a handle to the GraphElement object specified by the index. This is useful in cases where the element was not explicitly assigned to a variable at creation time.
Parameter
index
Integer index of element
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:
importPackage(inetsoft.graph.element)
importPackage(inetsoft.graph.aesthetic)
var elem = graph.getElement(0);
elem.setHint(GraphElement.HINT_SHINE,'false');
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:
importPackage(inetsoft.graph.element)
importPackage(inetsoft.graph.aesthetic)
var elem = graph.getElement(0);
elem.setHint(GraphElement.HINT_SHINE,'false');
|
View a 2-minute demonstration of InetSoft's easy, agile, and robust BI software. |
EGraph.getElementCount()
Returns the number of GraphElement objects currently on the chart
Example (Report or Viewsheet)
importPackage(inetsoft.graph)
importPackage(inetsoft.graph.data)
importPackage(inetsoft.graph.element)
importPackage(inetsoft.graph.aesthetic)
importPackage(inetsoft.graph.guide.form)
var arr = [["State","Total 1","Total 2"], ["NJ",200,500], ["NY",300,400]];
dataset = new DefaultDataSet(arr);
graph = new EGraph();
graph.addElement(new LineElement("State","Total 1"));
graph.addElement(new LineElement("State","Total 2"));
var elemCount = graph.getElementCount();
for (var i=0;i
More Articles About Charts
Crisis Severity Metrics - KPIs that assess the situation's severity are at the center of any crisis management dashboard. These indicators aid companies in comprehending the crisis' possible effects on their activities, reputation, and stakeholders. Measures like "Magnitude of Impact" place a number on how big the issue is, whether it's a natural catastrophe or a hit to one's image. For emergencies that have the potential to grow quickly, like infectious disease outbreaks or cyberattacks, "Rate of Spread" KPIs are essential. Organizations may spend resources efficiently and put responsive plans into place by monitoring these KPIs...
Medication Adherence Metric - Maintaining good health and treating chronic illnesses depend on medication adherence. Medication adherence rates among patients are tracked by integrating KPIs into dashboards created by home health software. Through the monitoring of these data, healthcare practitioners may take appropriate action, resolve noncompliance, and enhance the overall health of their patients...
Monthly Recurring Revenue - For organizations that rely on subscriptions, Monthly Recurring Revenue (MRR) is perhaps the primary key performance indicator. It stands for the consistent and reliable monthly income that subscriptions bring in. Add together all of your clients' monthly membership costs to determine MRR. MRR aids companies in comprehending the growth trajectory and stability of their revenue stream. MRR may be further divided into three categories: Churn MRR (from customers canceling their subscriptions), Expansion MRR (from current customers upgrading or adding services), and New MRR (from new customers). Businesses may identify areas in need of attention by tracking these components...
Why Is Observability in Digital Business Important? - For businesses that depend on digital systems to provide their consumers with goods, services, and experiences, digital business observability is crucial. Businesses are continuing to digitize their processes, which increases the complexity of their digital systems and makes it harder to find problems that affect performance and user experience. The growing amount of networks, systems, and apps that businesses depend on to function is what has led to this complexity. Without observability, businesses run the danger of losing money, clients, and reputation because of problems like downtime, poor performance, and other things...