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#)
 Axis Labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

SToney

3 Posts

Posted - 05 Jan 2006 :  11:11:23  Show Profile  Reply with Quote
I have set my y axis to dates showing today at the top, going down 6 months. Can I change the font / size? I tried the setaxislabels(yFont...) which is set to size 16.
Also, on my x axis, I have 0 - 10 listed as 0....2....4....6 etc and would like it to be 0.2.4.6.8.10 (minor tick marks as 1). How do I accomplish this?
Thanks

Scott

quinncurtis

1164 Posts

Posted - 05 Jan 2006 :  13:51:06  Show Profile  Reply with Quote
The tutorial example UserChartExample1 shows how to set the text font for an axis label. Experiment with that and then explain why that doesn't work in your case.

NumericAxisLabels yAxisLab = new NumericAxisLabels(yAxis);
yAxisLab.SetTextFont(theFont);
chartVu.AddChartObject(yAxisLab);


The software does not support a time-based y-axis. Is that what you are doing ? We would strongly advise that you re-orient the chart so that the time axis is the x-axis. Any success that you may have had so far is chance. If problems arise associated with a time-based y-axis we will not be able to provide customer support on that.

There are axis properties for setting the tick minor and major tick spacing.

LinearAxis xAxis = new LinearAxis(pTransform1, ChartObj.X_AXIS);
xAxis.AxisTickSpace = 1;
xAxis.AxisMinorTicksPerMajor = 2;
chartVu.AddChartObject(xAxis);
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