Author |
Topic  |
|
ame
2 Posts |
Posted - 16 Nov 2007 : 10:03:57
|
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
|
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. |
 |
|
ame
2 Posts |
Posted - 16 Nov 2007 : 11:24:17
|
Ok, thanks for the fast and clear reply.
Mark Fiers Applied Micro Electronics |
 |
|
|
Topic  |
|
|
|