Plotly update data

后端 未结 4 1198
一个人的身影
一个人的身影 2020-12-10 01:50

Okay so i have the following code:

    var element = document.getElementById(scope.changeid);

function getData(division,redraw) {
    var employeeData = [];         


        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 02:26

    I found the answer to the question.

    Apprently i needed to use:

     Plotly.newPlot(element,charData,layout);
    

    instead of redraw

提交回复
热议问题