Thanks Suyash. Your solution is working very well.
Thank Vishwas, for your quick reply. But I am passing the values dynamically to js function. Then array is not getting created. Please look into given below example.
Waiting for your reply.
Thanks for your prompt reply. Your both solution helped me to sort out my problem.
Keep it up Canvasjs team.