prefix: String

A string that prepends all the labels on axisY.

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

Try Editing The Code

  Also See:    


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

4 Comments

  1. Augusto says:

    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