Krysalis jCharts
 
  Font size:      
 

Chart Titles

PDF
PDF

Displaying A Title

You can display a title on your charts via an argument to the DataSeries and PieChartDataSet Constructors. There are Font and Paint attributes for the chart title on the ChartProperties Object.

DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Production", "Oompa Loompa Productivity" );
			
Chart Title

No Title

If you pass NULL as the title, no title will be shown.

DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Production", null );
			
Chart Title Wrapping

Wrapping Titles

If your chart title is really long, it will wrap to the next line as in:

DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Production",
   "The Oompa Loompas have been so very, very, very, busy, this title is going to wrap to the next line" );
			
Chart Title Wrapping


Valid HTML 4.01!Valid CSS!