%-- * Licensed Materials - Property of IBM * * 5724-U18 * * (C) COPYRIGHT IBM CORP. 2006, 2014 All Rights Reserved. * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with * IBM Corp. --%><%-- This JSP renders the graph portion in the KPIGRAPH control in the KPI Manager application. --%><%@ include file="../common/simpleheader.jsp" %><%@page import="com.ibm.json.java.JSONObject" %><%@page import="com.ibm.json.java.JSONArray" %><%@page import="psdi.webclient.beans.common.ChartUtil" %><%@page import="psdi.webclient.beans.startcntr.ChartData" %><%@page import="psdi.webclient.beans.startcntr.DialChartData" %><%@page import="psdi.webclient.beans.kpi.LineChartData" %><%@page import="psdi.webclient.beans.kpi.LineChartData.LineChartItem" %><%@page import="psdi.webclient.beans.kpi.LineChartData.LineChartItem.Point" %><% String height = component.getProperty("height"); height = WebClientRuntime.isNullCheck(height) ? "500" : height; String width = component.getProperty("width"); String scroll = component.getProperty("scroll"); String border = component.getProperty("border"); String src = component.getProperty("src"); String type = component.getProperty("type"); boolean nograph=false; KPIGraph kpiGraph = (KPIGraph)control; if(type.equalsIgnoreCase("dial")) kpiGraph.refreshChart(); String graphTitle = HTML.encode(kpiGraph.setGraphInfo(type)); if(kpiGraph.isNewKPI()) { String iframedivAutoId=""; String nomsgAutoId=""; if(automation) { iframedivAutoId="automationid=\""+realId+"_iframe_div\""; nomsgAutoId="automationid=\"nographmessage\""; } %>
<% } else if (!"trend".equalsIgnoreCase(type) || wcs.getCurrentApp().get("kpitrendchart") != null) { ChartData chartData; if(type.equalsIgnoreCase("trend")) { chartData = (ChartData)wcs.getCurrentApp().get("kpitrendchart"); } else { chartData = (ChartData)wcs.getCurrentApp().get("kpimainchart"); } %> <% if (chartData != null) { String chartRef = "chart" + id.replace('-','_') + "_ref"; %> <% } } %><%@ include file="../common/componentfooter.jsp" %>