I am trying to graph a set of values using plotly, the graph works fine and is drawn correctly but it seems that the graph is being drawn after the message