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#)
 How to show point label based on X Axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

n/a

10 Posts

Posted - 30 Dec 2003 :  10:09:42  Show Profile  Reply with Quote
I created a chart, the tramsform is TimeCoordinates. Only one line in the chart. I want to show point label for some special points. For example, the X is from 1/1/2003 to 1/31/2003, every day has a Y value shown in the chart. I want to show a point label on 1/10/2003 at the point of Y. How to do it?

From the user guide and demo examples the x and y used to determine the label position is always specified as a double value. I want to use the value of X Axis to determine the label position if it is possible.

quinncurtis

1164 Posts

Posted - 30 Dec 2003 :  11:27:33  Show Profile  Reply with Quote
A time/date value can be used to position objects by converting the time/date value to the equivalent millisecond value using the ChartCalendar.GetCalendarMsecs() method. The example program have many examples of this. In the LineGapChart.cs example in the ChartTabDemo example program, the following program segment places the string "Sales" at a specific time/date value in the chart.

ChartText chartLabel1 = new ChartText(pTransform1,
theLabelFont, "Sales",
xValues[1].GetCalendarMsecs(),
groupBarData[1,1],
ChartObj.PHYS_POS);
chartLabel1.SetColor(Color.White);
chartLabel1.SetYJust(ChartObj.AXIS_MIN);
chartVu.AddChartObject(chartLabel1);
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