ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Set different title and hour
Posted by Gabriela on Feb-02-2011 07:34
I attached a file where show you my scenary problem, I need to specify the last hour of my result set depending to the techology, as you can see in the graph i have labels (GDL, TOL, etc) , technologies (LUCENT, NORTEL, HUAWEI) and time/hour, we need to set the labels beside TECH & HOUR , we tried to use

$b = $c->addText(30, 325, $horagroup1, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$b->setBackground(0x333333, Transparent);
$b->setWidth(530);
$d = $c->addText(560, 325, $horagroup2, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$d->setBackground(0x333333, Transparent);
$d->setWidth(155);
$e = $c->addText(715, 325, $horagroup3, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$e->setBackground(0x333333, Transparent);
$e->setWidth(120);

but is difficult to control the width and position because some times the result is not exact (sites, technologies and differente lasr hour result set)

Can you help me to show a different easy or less difficult way in order to solve this?

Best Regards!!

  Re: Set different title and hour
Posted by Gabriela on Feb-02-2011 07:35
This is the result set.. in this case i don't have information about HUAWEI Technology


1 2011-02-01 17:00:00 LUCENT TOLU_L 1.6 0.4                        
2 2011-02-01 17:00:00 LUCENT TLAL_L 1.39 0.23                        
3 2011-02-01 17:00:00 LUCENT PUEB_L 0.6 0.51                        
4 2011-02-01 17:00:00 LUCENT MTY1_L 0.99 0.58                        
5 2011-02-01 17:00:00 LUCENT LEON_L 2.91 0.41                        
6 2011-02-01 17:00:00 LUCENT GUAD_L 2.05 0.58                        
7 2011-02-01 17:00:00 NORTEL MTY1_N 1.02 0.73                        
8 2011-02-01 16:00:00 NORTEL CULI_N 0.75 0.58                        
9 2011-02-01 17:00:00 NORTEL TORR_N 1.12 1.19                        
10 2011-02-01 16:00:00 NORTEL CHIH_N 0.99 1.22                        
11 2011-02-01 17:00:00 NORTEL ACAP_N 1.72 0.66                        
12 2011-02-01 17:00:00 NORTEL TAMP_N 0.88 0.77                        
13 2011-02-01 16:00:00 NORTEL JUAR_N 1.1 0.9                        



Gabriela wrote:

I attached a file where show you my scenary problem, I need to specify the last hour of my result set depending to the techology, as you can see in the graph i have labels (GDL, TOL, etc) , technologies (LUCENT, NORTEL, HUAWEI) and time/hour, we need to set the labels beside TECH & HOUR , we tried to use

$b = $c->addText(30, 325, $horagroup1, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$b->setBackground(0x333333, Transparent);
$b->setWidth(530);
$d = $c->addText(560, 325, $horagroup2, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$d->setBackground(0x333333, Transparent);
$d->setWidth(155);
$e = $c->addText(715, 325, $horagroup3, "arialbd.ttf", 8,  $fontColor_Titulos, Center);
$e->setBackground(0x333333, Transparent);
$e->setWidth(120);

but is difficult to control the width and position because some times the result is not exact (sites, technologies and differente lasr hour result set)

Can you help me to show a different easy or less difficult way in order to solve this?

Best Regards!!

  Re: Set different title and hour
Posted by Peter Kwan on Feb-02-2011 12:37
Hi Gabriela,

For some reasons, I cannot find any attachment with your message. Without the attachment, I have difficulty understanding the issue.

To include an attachment, please use the "Browse" button to browser for the file. The file should be under 250K bytes, as there is a size limit for the attachment. When you use "Browse" to include the attachment, the web page should immediately and automatically upload the file to the forum. If it does not do it automatically, you may press the "Send file" button to upload the file. After that, you can press the "Send" button to post the message.

After posting the message, if you read the message, you should see the attachment in the message.

If you cannot include the attachment successfully, you may email it to me at pkwan@advsofteng.net

Regards
Peter Kwan

  Re: Set different title and hour
Posted by Gabriela on Feb-02-2011 23:15
I attached the file right now! , Thanks for your answer. My problem is I have a result set about differente hour, different technology and different switch that begin to some of technologies. I show all switches, I painted the graph of different color depends on the each technology, but a I need to show the last data (datetime) of each technologie besides the labels (switch).

Best regards!!

  Re: Set different title and hour
Posted by Peter Kwan on Feb-03-2011 20:54
Hi Gabriela,

For some reasons, I still cannot find any attachment in your message. May be you can email the attachment to me directly pkwan@advsofteng.net.

Without the attachment, I do not know your chart type, and exact where you would like to put the labels. Anyway, in general, you can use XYChart.getXCoor and XYChart.getYCoor to obtain the x and y pixel coordinates given the x and y data values. This may help you to determine the pixel coordinates to be used in the BaseChart.addText API.

After I see your attachment, I may be able to suggest more specific code to achieve what you need.

Regards
Peter Kwan