nnnick/Chart.js — pull request #120 by mdasberg (2013-05-29 15:17:53+00:00)
Title: Show chart title for all charts

I implemented a basic title, which show (if defined) the title of the chart.

Title Defaults can be overwritten by adding a 3nd parameter to the "new Chart()" function, which represents the title and adding the showTitle : true to the options.

new Chart(ctx).Bar(data,options,title);

The following defaults can be overridden for the title:

Bar.defaults = {
//Boolean - Whether to show the title
showTitle : false,

//String - Title label font declaration for the title label
titleFontFamily : "'Arial'",

//Number - Title label font size in pixels
titleFontSize : 12,

//String - Title label font weight style
titleFontStyle : "normal",

//String - Scale label font colour
titleFontColor : "rgba(0, 0, 0, 1)"

}