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:    



If you have any questions, please feel free to ask in our forums.Ask Question

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

If you have any questions, please feel free to ask in our forums. Ask Question