Home forums Using CanvasJS Value cell table into dataPoints

This topic contains 1 reply, has 2 voices, and was last updated by  Anjali 2 years, 3 months ago.

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


    Sorry to bother you guys,
    I don’t know how to do it: I’m trying to take the value of a determined cell (on a table) and add at dataPoints but without successful. The code below is something looks like I want:

    for (var r = 0, n = table.rows.length; r < n; r++) {
    for (var c = 0, m = table.rows[r].cells.length; c < m; c++) {
    dataPoints.push({label:table.rows[r].cells[0].innerHTML ,y:table.rows[r].cells[4].innerHTML )};

    What I’m trying to do is use the informations of a table and do a chart!
    Could some one help-me?




    Hi Alphonsus,

    I can help you to draw a graph using table values as datapoints,can you create a Jsfiddle for the same so that i can see exactly where you are getting problem.


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

You must be logged in to reply to this topic.