Home › forums › Chart Support › 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
while(resultSet.next()){ 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);
@draj.8126,
We are looking into it and will get back to you at the earliest.
__ Priyanka M S Team CanvasJS
You must be logged in to reply to this topic.