@Priya,
You can download different samples from here. This will guide you on retrievng data from database using language of your choice.
For multiple axes, you can take a look at this page which will help you to modify your code accordingly.
—-
Bivek Singh,
Team CanvasJS