Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 AxisLabels rotation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ame

2 Posts

Posted - 16 Nov 2007 :  10:03:57  Show Profile  Reply with Quote
Hi,

I'm trying to get the labels on the xAxis rotated, as in draw them vertical. But i just can't get it done.

I took the code of the HistogramChart from the bigChartDemo and added the following bold/italic line:


NumericAxisLabels xAxisLab = new NumericAxisLabels(xAxis );
xAxisLab.SetColor(Color.White);
xAxisLab.SetAxisLabels(90.0, AxisLabels.AXIS_MAX, AxisLabels.LABEL_ALL, Color.White);
chartVu.AddChartObject(xAxisLab);

The labels still is drawn horizontal but the positions is change depending on the degree that i fill in.

Can you tell me what i'm doing wrong?

Thanks in advance










Mark Fiers
Applied Micro Electronics

quinncurtis

1164 Posts

Posted - 16 Nov 2007 :  10:38:54  Show Profile  Reply with Quote
The reference to BigChartDemo implies that you are using the .Net CF (Compact Framework) version of the software.

On page 2 of the manual you will find a section titled "Limitation of the .Net API Compact Framework API". Under that you will find the bullets:

• No 2D coordinate transformation classes, for rotating text and arbitrary geometric shapes
• Text cannot be rotated, not even 90 degrees for vertical text

The rotation parameters are left in the software, in order to maintain compatibility with the regular .Net version of the software, where rotation is supported, and to allow for future upgrades of the .Net CF operating system.
Go to Top of Page

ame

2 Posts

Posted - 16 Nov 2007 :  11:24:17  Show Profile  Reply with Quote
Ok, thanks for the fast and clear reply.

Mark Fiers
Applied Micro Electronics
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07