Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCChart2D for Java
 AxisTitle and AxisLabels overlap

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
johnbutler Posted - 14 Nov 2005 : 09:03:29
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);
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 14 Nov 2005 : 13:35:03
Sounds like a good time to call the AxisTitle.setYJust method.

AxisTitle xaxistitle2 = new AxisTitle( xAxis2, titleFont, "Collector-Emitter Voltage");
xaxistitle2.setYJust(ChartObj.JUSTIFY_MIN);
gWG.addChartObject(xaxistitle2);

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07