I've recently purchased teechart php and I have a many questions. I need to produce a custom graph which involves drawing text on the screen then circumscribing it with either an rectangle or an ellipse.
The annotation tool is a near perfect fit for the rectangle side of that. I have two questions concerning shadows.
1) The annotation tool seems to add a shadow to annotations by default, can this be turned on/off by annotation ?
2) I would like to have the option to add shadows to ellipses and rectangles and any shaps I draw , can this be done ?
Thanks
shadows
Re: shadows
Hello,
However, these custom drawing methods don't support shadows, so I'm afraid you should create your own classes to support it. Something like the annotation tool does, that has a Shadow property.
I'll add to the wish list the possibility to add more shape styles for the annotation tool (TF90015724).
Yes, you can do it as follows:ISVA7655 wrote:1) The annotation tool seems to add a shadow to annotations by default, can this be turned on/off by annotation ?
Code: Select all
$annotation1->getShape()->getShadow()->setVisible(false);
You can draw ellipses and rectangles directly to the rendered chart image as follows:ISVA7655 wrote:2) I would like to have the option to add shadows to ellipses and rectangles and any shaps I draw , can this be done ?
Code: Select all
$chart1 = new TChart(400,250);
$bar=new Bar($chart1->getChart());
$chart1->getChart()->getSeries(0)->setColorEach(true);
$chart1->getChart()->getSeries(0)->fillSampleValues(10);
$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");
I'll add to the wish list the possibility to add more shape styles for the annotation tool (TF90015724).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |