Line graph, line doesn't render from n to 0

TeeChart for PHP

Line graph, line doesn't render from n to 0

Postby gatorworks » Tue Feb 07, 2012 2:55 am

With line graphs, lines don't render from any number to 0

For example:
Image
Image
Image

Notice the gaps in all these charts, for when values drop down to 0

Is there any solution for this?

Thanks
gatorworks
Newbie
Newbie
 
Posts: 5
Joined: Mon Jan 30, 2012 12:00 am

Re: Line graph, line doesn't render from n to 0

Postby Yeray » Wed Feb 08, 2012 11:59 am

Hi,

You are right. I've added it to the defect list to be revised asap (TF90016024). It seems to be something related to the color list generated.
As a workaround, you could assign a color to each value, for example, the following simple code reproduces the problem:
Code: Select all
    for($i=0; $i<6; $i++) {
        $line->add($i*10 - 30);
    }


But this works fine:
Code: Select all
    for($i=0; $i<6; $i++) {
        $line->addYColor($i*10 - 30, $line->getColor());
    }
Best Regards,

ImageYeray Alonso / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia (SP)
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
How to post in this forum
Yeray
Site Admin
Site Admin
 
Posts: 6304
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Re: Line graph, line doesn't render from n to 0

Postby gatorworks » Wed Feb 08, 2012 2:12 pm

Excellent,

Thanks for the fast reply

I will give it a try
gatorworks
Newbie
Newbie
 
Posts: 5
Joined: Mon Jan 30, 2012 12:00 am

Re: Line graph, line doesn't render from n to 0

Postby gatorworks » Fri Feb 10, 2012 5:01 am

Confirmed that this temporary fix works

Thanks again
gatorworks
Newbie
Newbie
 
Posts: 5
Joined: Mon Jan 30, 2012 12:00 am

Re: Line graph, line doesn't render from n to 0

Postby Yeray » Fri Feb 10, 2012 3:08 pm

Hi,

Thanks for confirming it!
Best Regards,

ImageYeray Alonso / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia (SP)
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
How to post in this forum
Yeray
Site Admin
Site Admin
 
Posts: 6304
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia


Return to PHP

Who is online

Users browsing this forum: No registered users and 1 guest