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 Editing The Code

  Also See:    


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

6 Comments

  1. Nick says:

    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. Ed Wade says:

    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?

    • Sanjoy says:

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

      text: "Displaying Degree Character \u00B0 in Title"

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