Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top