Home › forums › Using CanvasJS › pie char in jsp
This topic contains 1 reply, has 2 voices, and was last updated by Priyanka M S 10 months, 2 weeks ago.
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.