I am using the following code to create an x-axis at the top of the graph. When I attempt to add the axis title, it is at the same position as the axis labels and is therefore illegible. Does it have something to do with the AxisTickDir? Any ideas to fix it?
_xAxis = new LinearAxis(_pTransform1, ChartConstants.X_AXIS); _xAxis.setColor(Color.white); _xAxis.setAxisTickDir( ChartConstants.AXIS_MAX); _xAxis.setAxisIntercept(_yAxis.getAxisMin()); this.addChartObject(_xAxis);
_xAxisLab = new NumericAxisLabels(_xAxis); _xAxisLab.setColor(Color.white); this.addChartObject(_xAxisLab);
AxisTitle xAxisTitle = new AxisTitle(); xAxisTitle.setTitleAxis(_xAxis); xAxisTitle.setColor(Color.white); xAxisTitle.setTextString("Frequency (Hz)"); this.addChartObject(xAxisTitle);