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

Tomaso

16 Posts

Posted - 10 Jan 2008 :  11:38:07  Show Profile  Reply with Quote
Can repeated several times the Y axis within the same graph?
If yes how can indicate the X position of each Y axis?
Thanks
Tomaso

quinncurtis

1164 Posts

Posted - 10 Jan 2008 :  12:56:59  Show Profile  Reply with Quote
Read item #2, "How to create a chart with multiple coordinate systems and axes" in the Frequently Asked Questions for QCChart2D: http://www.quinn-curtis.com/QCChart2DFAQs.htm
Go to Top of Page

Tomaso

16 Posts

Posted - 11 Jan 2008 :  01:26:34  Show Profile  Reply with Quote
I have read the FAQ, but I do not think it is possible to obtain the following results:

900 -|..................900 -|..................900 -|......
800 -|..................800 -|..................800 -|......
700 -|..................700 -|..................700 -|......
600 -|..................600 -|..................600 -|......
500 -|..................500 -|..................500 -|......
400 -|..................400 -|..................400 -|......
300 -|..................300 -|..................300 -|......
200 -|..................200 -|..................200 -|......
100 -|..................100 -|..................100 -|......
0 -|------------------------------------------------------
Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Jan 2008 :  08:55:24  Show Profile  Reply with Quote
If you want to repeat the same y-axis within a graph, you create multiple instances of the y-axis ( and the related y-axis labels object), all the same. You set the position of each y-axis in the graph by setting the axis intercept, using the SetAxisIntercept method of the axis, exactly as described in the FAQ. For example, if your x-axis went from 0 to 50, you would be setting the left-most y-axis intercepts to 0, the next 10, the next to 20. Something like:

LinearAxis yAxis1 = new LinearAxis(pTransform1, ChartObj.Y_AXIS);
yAxis1.SetAxisIntercept(0);
chartVu.AddChartObject(yAxis1);
LinearAxis yAxis2 = new LinearAxis(pTransform1, ChartObj.Y_AXIS);
yAxis2.SetAxisIntercept(10);
chartVu.AddChartObject(yAxis2);
LinearAxis yAxis3 = new LinearAxis(pTransform1, ChartObj.Y_AXIS);
yAxis3.SetAxisIntercept(20);
chartVu.AddChartObject(yAxis3);

NumericAxisLabels yAxisLab1 = new TimeAxisLabels(yAxis1);
chartVu.AddChartObject(xAxisLab1);
NumericAxisLabels yAxisLab2 = new TimeAxisLabels(yAxis2);
chartVu.AddChartObject(xAxisLab2);
NumericAxisLabels yAxisLab3 = new TimeAxisLabels(yAxis3);
chartVu.AddChartObject(xAxisLab3);


We can't explain it any simpler.

The example program SimpleLinePlots.LineFill places identical y-axes on the left, and right edges of the graph, though the tick marks are made to point in opposite directions.

If you still are unable to produce the graph you desire, you should contact our special services group at sales@quinn-curtis.com and they can quote you the cost of writing a custom example program to your exact specification.
Go to Top of Page

Tomaso

16 Posts

Posted - 12 Jan 2008 :  02:06:01  Show Profile  Reply with Quote
It works! Thanks

I have another question:
Can I force the NumericAxisLabels to use a particular decimal seperator?

My regional settings is "IT" but I would like use the point instead of a comma to separate the decimal.

Is that possible?
Go to Top of Page

quinncurtis

1164 Posts

Posted - 12 Jan 2008 :  13:12:19  Show Profile  Reply with Quote
Please post your question under a new topic.
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