Home forums Using CanvasJS pie char in jsp

This topic contains 1 reply, has 2 voices, and was last updated by  Priyanka M S 4 days, 18 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21762

    draj.8126
    Member

    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);

    #21789

    Priyanka M S
    Member

    @draj.8126,

    We are looking into it and will get back to you at the earliest.

    __
    Priyanka M S
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.