Chart Titles
| 
PDF |
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" );
If you pass NULL as the title, no title will be shown.
DataSeries dataSeries = new DataSeries( xAxisLabels, "Years", "Production", null );
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" );