@snehal,
You can read data from database and parse it according to your requirements. Please take a look at this sample project where stacked-column chart is rendered by accepting regDate and function
fields from database. You can further customize it to read any field based on your requirements and render chart.
Also refer this forum thread for more info on rendering chart in PHP with data from database.
—
Vishwas R
Team CanvasJS