Page 1 of 1
Line graph, line doesn't render from n to 0
Posted: Tue Feb 07, 2012 2:55 am
by 15961432
With line graphs, lines don't render from any number to 0
For example:
Notice the gaps in all these charts, for when values drop down to 0
Is there any solution for this?
Thanks
Re: Line graph, line doesn't render from n to 0
Posted: Wed Feb 08, 2012 11:59 am
by yeray
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());
}
Re: Line graph, line doesn't render from n to 0
Posted: Wed Feb 08, 2012 2:12 pm
by 15961432
Excellent,
Thanks for the fast reply
I will give it a try
Re: Line graph, line doesn't render from n to 0
Posted: Fri Feb 10, 2012 5:01 am
by 15961432
Confirmed that this temporary fix works
Thanks again
Re: Line graph, line doesn't render from n to 0
Posted: Fri Feb 10, 2012 3:08 pm
by yeray
Hi,
Thanks for confirming it!