문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top