Home › forums › Using CanvasJS › pie char in jsp
I have to create a pie chart in jsp from database.My database consist of string values how to do this please anyone reply
below is my code. but it is only accepting integer values i have to do this with string values
xVal = resultSet.getString(“x”);
yVal = resultSet.getString(“y”);
map = new HashMap<Object,Object>(); map.put(“x”, Double.parseDouble(xVal)); map.put(“y”, Double.parseDouble(yVal)); list.add(map);
dataPoints = gsonObj.toJson(list);
We are looking into it and will get back to you at the earliest.
Priyanka M S
You must be logged in to reply to this topic.