Creating a graph base on temp data from database using: