Page 1 of 1

Multiple series visual bug

Posted: Fri Apr 16, 2010 8:30 pm
by 15955419
Hi,
I am attempting to add 2+ area series to a chart. It works, but unfortunately, there is a visual bug. First, the chart is displaying in 3D. The series that is in the back has its front face drawn at the same depth as the series in the front (like someone has separated the front from rest of the area chart). (Unfortunately, my web site is still on the internal network so I cannot show you the visual bug). Has this bug been reported? Is there a work-around? I have the source if that helps.

Regards,
Tom

Re: Multiple series visual bug

Posted: Wed Apr 21, 2010 9:45 am
by yeray
Hi Tom,

I've tried with the following simple code and I can't see the visual problem you mention.

Code: Select all

<?php
include "J:/root/TeeChart PHP/Version 1/sources/TChart.php";
$chart = new TChart(500,500);
$imagefilename = "C:/tmp/test.png";
for ($i=0;$i<4;$i++)
{
    $area1 = new Area($chart->getChart());
    $area1->fillSampleValues(20);
}
$chart->getChart()->getExport()->getImage()->getPNG()->save($imagefilename); 
$chart->render("chart1.png");
$rand=rand();
print 'Testing Chart<p>';
print '<img src="chart1.png?rand='.$rand.'">';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Testing Chart</title>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15" />
</head>
<body>
</body>
</html>
Here is what I'm getting. Isn't it the same result for you?
chart1.png
chart1.png (57.37 KiB) Viewed 4640 times

Re: Multiple series visual bug

Posted: Mon Jun 07, 2010 9:26 pm
by 15955419
Hi Yeray Alonso,
First, sorry for taking so long to reply... got called off on another project.

I think I found the problem. It looks like the error may only occur with Stairs = true. If setStairs is false, I see no problem. Could you try your code with
$area_chart->setStairs(true);

Thanks,
Tom

Re: Multiple series visual bug

Posted: Wed Jun 09, 2010 10:04 am
by yeray
Hi Tom,

Yes, you are right. I could reproduce it so I've added it to the defect list to be fixed in future releases (TF90014953).

Re: Multiple series visual bug

Posted: Wed Jun 09, 2010 1:09 pm
by 15955419
Hi Yeray,
Thanks for confirming it. I am glad to see it should be fixed whenever the next release occurs.
Regards,
Tom

Re: Multiple series visual bug

Posted: Wed Jun 09, 2010 1:54 pm
by yeray
Hi Tom,

I can't ensure that this will be fixed in the next release. The bugs, enhancements and feature requests are identified and classified, but their final implementation depends on other factors such as the complexity of the problem, the study of the possible collateral damages,...

I recommend you to be aware at this forum or subscribe to our RSS news feed for new release announcements and what's implemented on them.