prefix: String

A string that prepends all the labels on axisY.


Default: null
Example: “$”,”cat”..

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisY: {
  prefix: "$",  
 },
 .
 . 
});
chart.render();


Try it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 4

  1. I need in the y axis, numbers, but from the -10 to 120, the -10 in the high and 120 in the lower. And interval 10. (Ej: -10, 0, 10, 20, 30,… 120)

    Do you know who can I do this?

    Thank you

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.