@Chetnath,
You can assign any valid string as dataSeries name either directly or by passing a variable that’s a string. Please take a look at this jsfiddle.
If you are looking for something else, can kindly create a jsfiddle and brief further about your requirement so that we can understand it better and help you out?
—
Vishwas R
Team CanvasJS