Page 1 of 1

Polar Series in PHP

Posted: Wed Apr 16, 2014 1:50 pm
by 15966868
Has anyone had any luck with creating a Polar Series in TeeChart PHP?

I've done it many times in the VCL version, but struggling a bit with the PHP version - will display the data, but no axes or labels.

Alternatively, is there a way of implementing an OnAfterDraw event, and I can put the graphics on myself!

Both Polar Series, and OnAfterDraw events seem a little under-documented in the examples/tutorials!

Kind regards

Mark

Re: Polar Series in PHP

Posted: Thu Apr 17, 2014 11:54 am
by narcis
Hi Mark,
amjonas wrote:Has anyone had any luck with creating a Polar Series in TeeChart PHP?

I've done it many times in the VCL version, but struggling a bit with the PHP version - will display the data, but no axes or labels.
Can you please add the issue to Steema's bugzilla bug tracking system?
amjonas wrote: Alternatively, is there a way of implementing an OnAfterDraw event, and I can put the graphics on myself!
The custom drawing should be done directly over the picture generated, after calling the render function. Ie:

Code: Select all

        $chart1->render("chart1.png");

        $chart1->getChart()->getGraphics3D()->TextOut(10,10,0,"hellooooooooo");
        $chart1->getChart()->getGraphics3D()->getBrush()->SetColor(Color::BLUE());
        $chart1->getChart()->getGraphics3D()->Rectangle(new Rectangle(10,10,100,100)); 
        $chart1->getChart()->getGraphics3D()->getBrush()->SetColor(Color::RED());
        $chart1->getChart()->getGraphics3D()->ellipse(200,200,300,250);

        imagepng($chart1->getChart()->getGraphics3d()->img, "chart1.png");  
Thanks in advance.

Re: Polar Series in PHP

Posted: Thu Apr 24, 2014 6:32 pm
by 15966868
Will do - I'll try and put together an example and some data for you to play with.

Re: Polar Series in PHP

Posted: Fri Oct 23, 2015 2:46 pm
by 17769562
I've still not managed to put anything together to play with - but now have a requirement to do it properly.
Works fine in TeeChart.Javascript/HTML5, but not in TeeChart.php 2015!!

Would someone be able to post up the code (or email me) that created this chart from the All New Steema Website:

Image

or Windrose74 if the link above fails!

That is close to what I want

Kind regards

Mark

Re: Polar Series in PHP

Posted: Mon Oct 26, 2015 9:45 am
by yeray
Hello Mark,

The windrose in that image was made with TeeChart .NET, not with TeeChart PHP, and some of Microsoft .NET Framework drawing techniques are not available in the other frameworks.
We'll try to prepare a similar example in TeeChart PHP.

Re: Polar Series in PHP

Posted: Tue Oct 27, 2015 11:51 am
by yeray
Hello again,
Yeray wrote:We'll try to prepare a similar example in TeeChart PHP.
New Polar Series style added to the TeeChart for PHP (source code) version:
polarPHP.png
polarPHP.png (51.46 KiB) Viewed 55293 times
I'll send you the modified TeeChart PHP sources that include that new style and a demo using it.