I can set the date format in the time chart like this
final GraphicalView view = ChartFactory.getTimeChartView(context, dataset,
mRenderer, "dd-MMM-yyyy");
but I can't do the same in the case of ComninedXYChart
String[] types = new String[] { TimeChart.TYPE , ScatterChart.TYPE, ScatterChart.TYPE};
final GraphicalView view =
ChartFactory.getCombinedXYChartView(context, dataset, mRenderer, types);
image below:
any ideas?
In the CombinedXYChart case, you will have to use custom labels:
Actually I have found much better approach. The trick is to use method setXLabelFormat combined with overloaded NumberFormat:
Of course it would much bettter if method setXLabelFormat accepted Format (which is base class of all formats) instead of NumberFormat, however i think it is still elegant and quite simple sollution.