title: String

Sets the Axis Title.


Default: null
Example: “Axis Y Title”

Notes
  • If the text is very long, the title gets truncated. It is recommended to reduce titleFontSize to accommodate longer text.


var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 axisY:{
 title: "axisY Title",
},
 .
});
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 6

  1. I want to include local characters in the title. However, ehn I type them in (e.g. & auml 😉 I cannot use them, as they are not interpreted as HTML code…

  2. I am trying to put in HTML characters (degress symbol) but when I try it outputs the html code, not the symbol – how do we get this to work?

    • You can use the unicode values (“\u00B0”) to do the same

      text: "Displaying Degree Character \u00B0 in Title"

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.