private void setupDateAxis(JFreeChart jchart, Chart chart) { final Plot plot = jchart.getPlot(); final DateAxis axisX = (DateAxis) ((XYPlot)plot).getDomainAxis(); final TimeZone zone = chart.getTimeZone(); if (zone != null) { axisX.setTimeZone(zone); } if (chart.getDateFormat() != null) { axisX.setDateFormatOverride(_dateFormat); } }
_dateFormat.setTimeZone(tz); if (chart.getDateFormat() != null) { _dateFormat.applyPattern(chart.getDateFormat()); _dateFormat.setTimeZone(tz); if (chart.getDateFormat() != null) { _dateFormat.applyPattern(chart.getDateFormat()); _dateFormat.setTimeZone(tz); if (chart.getDateFormat() != null) { _dateFormat.applyPattern(chart.getDateFormat()); _dateFormat.setTimeZone(tz); if (chart.getDateFormat() == null) { _dateFormat.applyPattern("MMM d ''yy"); } else { _dateFormat.applyPattern(chart.getDateFormat()); _dateFormat.setTimeZone(tz); if (chart.getDateFormat() != null) { _dateFormat.applyPattern(chart.getDateFormat());