Polar Series in PHP

TeeChart for PHP
Post Reply
amjonas
Newbie
Newbie
Posts: 6
Joined: Mon Aug 26, 2013 12:00 am

Polar Series in PHP

Post by amjonas » Wed Apr 16, 2014 1:50 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Polar Series in PHP

Post by Narcís » Thu Apr 17, 2014 11:54 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

amjonas
Newbie
Newbie
Posts: 6
Joined: Mon Aug 26, 2013 12:00 am

Re: Polar Series in PHP

Post by amjonas » Thu Apr 24, 2014 6:32 pm

Will do - I'll try and put together an example and some data for you to play with.

amjonas
Newbie
Newbie
Posts: 9
Joined: Fri Jun 20, 2014 12:00 am

Re: Polar Series in PHP

Post by amjonas » Fri Oct 23, 2015 2:46 pm

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

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Polar Series in PHP

Post by Yeray » Mon Oct 26, 2015 9:45 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Polar Series in PHP

Post by Yeray » Tue Oct 27, 2015 11:51 am

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 57557 times
I'll send you the modified TeeChart PHP sources that include that new style and a demo using it.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply