Fiji Chart has problem with Internet Explorer

  • Malini
Posted: Tue, 12/06/2011 - 22:22

Caption is not displaying in Internet Explorer but its displaying properly in Mozilla.
Couldn't remove the Legend from Chart in Internet Explorer and its removable in Mozilla.
Tooltip is not editable in Internet Explorer and it is editable in Mozilla

Its working properly in

  • Malini
  • 12/06/11
  • Wed, 12/07/2011 - 02:23

Its working properly in Internet Explorer,Firefox and Chrome.

While designing charts dynamically in JSF, we need to check the other CSS is overwriting or not in the same file, so better to design charts in separate form. then will get obvious output whatever we are expecting..

Here my xhtml and java code for simple Bar Chart by Comparing Student and Its Group

StudentGroup.xhtml:

StudentMasterGroipChartBean.java:

package beans;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;

import javax.annotation.PostConstruct;
import javax.faces.context.FacesContext;

public class StudentMasterGroupChartBean {

Connection con;
Statement ps;
Locale locale;
ResourceBundle bundle;
String url;
String user;
String pass;

ArrayList colors = new ArrayList();
private Map monthMap = new LinkedHashMap();

public ArrayList getColors()
{
colors.add("#5db2c2");
return colors;
}

public void setColors(ArrayList colors) {
this.colors = colors;
}

public Map getMonthMap() {
return monthMap;
}

public StudentMasterGroupChartBean(){

locale = FacesContext.getCurrentInstance().getViewRoot().getLocale();
bundle = ResourceBundle.getBundle("com/campusoft/common/dbProp/database");
url = bundle.getString("url");
user = bundle.getString("username");
pass = bundle.getString("password");

chart();
}

public String chart()
{
try
{
Class.forName("com.mysql.jdbc.Driver");
con = DriverManager.getConnection(url, user, pass);
Statement stmt=con.createStatement();

ResultSet rs=stmt.executeQuery("select count(*),SG.DESCRIPTION as value from STUDENT_GROUP_STUDENT " +
"LEFT JOIN STUDENT_GROUP SG ON SG.INDEX_NO = STUDENT_GROUP_STUDENT.STUDENT_GROUP WHERE SG.ACTIVE = 1 GROUP BY STUDENT_GROUP");
int i=0;

while(rs.next())
{
monthMap.put(rs.getString(2),rs.getInt(1));
i++;
}

}
catch(ClassNotFoundException e)
{
// TODO Auto-generated catch block
e.printStackTrace();

}
catch(SQLException e)
{
// TODO Auto-generated catch block
e.printStackTrace();

}

return "";
}

}

:)

  • Malini
  • 12/06/11
  • Wed, 12/07/2011 - 02:26

:)