Commit b869d436 authored by dkasliwal's avatar dkasliwal

Added code for Interlink from Stack Chart and parentAxix for bar chart and...

Added code for Interlink  from Stack Chart and parentAxix for bar chart and add tag showsum in metadata for stack chart .


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98518 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 62c5cec4
package ibase.client;
import java.awt.BufferCapabilities.FlipContents;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
......@@ -24,7 +22,6 @@ import com.google.gwt.http.client.Response;
import com.google.gwt.json.client.JSONObject;
import com.google.gwt.json.client.JSONParser;
import com.google.gwt.json.client.JSONString;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
......@@ -916,7 +913,7 @@ public class GraphComponent extends Composite
JSONObject jsonObjData = new JSONObject();
jsonObjData.put(key, servletJsnObj);
componentDataMap.put(key, jsonObjData);
RootPanel.get("chartContainer").clear();
/*RootPanel.get("chartContainer").clear();*/
}else
{
componentDataMap.put(key, null);
......@@ -1014,7 +1011,7 @@ public class GraphComponent extends Composite
if (!"null".equals(groupVal))
{
groupVal = groupVal.replace('"', ' ');
groupVal = groupVal.replace('"', ' ').trim();
groupVal = groupVal +"@"+ designation;
xAxisVal = "" + fetchRowWiseValJsn.get(xAxixNameList.get(0)).toString().replace('"', ' ');
yAxisVal = Integer.parseInt(fetchRowWiseValJsn.get(yAxixNameList.get(0)).toString().replace('"', ' ').trim());
......@@ -1073,8 +1070,8 @@ public class GraphComponent extends Composite
for (int jsnCnt = 0; jsnCnt < dataJsn.size(); jsnCnt++)
{
fetchRowWiseVal = (JSONObject) dataJsn.get(String.valueOf(jsnCnt));
group = fetchRowWiseVal.get(groupName).toString().replace("\"", "");
//Window.alert("group :"+group);
group = fetchRowWiseVal.get(groupName).toString().replace("\"", "").trim();
if(selcetIndex == null || selcetIndex.equals(""))
{
if(jsnCnt == 0)
......@@ -1084,7 +1081,7 @@ public class GraphComponent extends Composite
}
}else
{
firstValue=selcetIndex;
firstValue = selcetIndex;
firstIndex = firstValue;
}
if(group.equalsIgnoreCase(firstValue))
......@@ -1093,7 +1090,6 @@ public class GraphComponent extends Composite
count++;
}
}
//Window.alert("In Filter Method :"+fltrDataJson);
return fltrDataJson;
}
@SuppressWarnings("unchecked")
......@@ -1177,7 +1173,6 @@ public class GraphComponent extends Composite
}
getClearDiv(groupName);
getDisplayData(fltrAfterDataJson, graphDtlList, groupCssList.get(0), width, height, imageName, refrshMapVal, mainDataJson,groupName,filterList);
}
}else if ("T".equalsIgnoreCase(type))
......@@ -1257,7 +1252,6 @@ public class GraphComponent extends Composite
String[] personArr = null;
String persondesg = "";
for (final String multGrph : mainDataJson.keySet())
{
cnt++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment