Author |
Topic  |
|
n/a
10 Posts |
Posted - 30 Dec 2003 : 10:09:42
|
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
|
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);
|
 |
|
|
Topic  |
|
|
|