Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating Points

I am implementing graph in my Project. Now i am stuck at a point, where i want the points in graph to be updated using table and vice-versa.

I have made a FIDDLE DEMO

Any kind of help would be appreciated. Thanks

like image 285
Richa Avatar asked May 02 '14 05:05

Richa


Video Answer


1 Answers

I have made one fiddle.. fiddle

I have added one function updater

function updater(yv,xv) {
    switch(xv) {
        case "0.00":
            console.log("A");
            $("#bb").html(yv);
            $("tr: first").css("border","1px solid black");
            break;
    }
    console.log(yv+", "+xv);
}

go through the fiddle and you will understand what all changes i made.. Just drag the 0% of the graph and u can see the table geting updated. I havent changed for other table values.

like image 131
Nidhin S G Avatar answered Sep 28 '22 09:09

Nidhin S G