Iām trying to create Grantt chart using python where Iām generating data every 1 min and I like to append data to Grannt chart. so here is the part of code im trying and loop is executing every 60 sec
trace2 = dict(Task=āMotor Statusā, Start=timeMinus60, Finish=timenow)
trace1 = dict(Task=āTank Statusā, Start=timeMinus60, Finish=timenow)
trace0 = dict(Task=āWater Inā, Start=timenow, Finish=timenow) #Start=timenow so that nothing comes up on chart
The figure_factor functions arenāt really designed to support incrementally adding data to an existing figure. So I would recommend you look at constructing your plot using one or more horizonal Bar traces (https://plot.ly/python/horizontal-bar-charts/).
Also, how are you wanting to display the plots? If you use FigureWidget class to display it in the notebook then you could iteratively update the bar coordinates as more data arrives.