How to create graph from data table