Search found 22 matches

by rustydiver
Fri Sep 13, 2013 1:02 pm
Forum: PHP
Topic: Annotation CustomSize
Replies: 4
Views: 2965

Re: Annotation CustomSize

While you are there, see what is up with the text-align for annotations. The following and variations of it have no effect..

$label->setTextAlign("CENTER");
by rustydiver
Fri Sep 13, 2013 3:11 am
Forum: PHP
Topic: Annotation CustomSize
Replies: 4
Views: 2965

Re: Annotation CustomSize

OK, now to the undefined index error problem. Currently, if you set text for an annotation such.. $label->setText("something\nsomethingelse"); The text will be processed through public function multiLineTextWidth($s) { $result = new MultiLine(); // Note our use of ===. Simply == would not work as ex...
by rustydiver
Thu Sep 12, 2013 11:09 pm
Forum: PHP
Topic: Annotation CustomSize
Replies: 4
Views: 2965

Re: Annotation CustomSize

Investigating, I find that although the GET and SET for CustomSize, Width and Height are doing their thing, there appears no further implementation to override the default rectangle built by text length and font size calcs. Ergo, I implemented this override in Annotation.php at line 390... if($this-...
by rustydiver
Thu Sep 12, 2013 9:12 pm
Forum: PHP
Topic: Annotation CustomSize
Replies: 4
Views: 2965

Annotation CustomSize

What does it take to make CustomSize work for annotations? The CustomSize elements below have no impact even though I tested for the returns in Annotation.php and I get 1, 50 and 50 respectively but no sizing changes in the annotation. CustomPosition works, but not CustomSize. What's missing? $label...
by rustydiver
Mon Jul 08, 2013 5:30 pm
Forum: PHP
Topic: FATAL ERROR new release
Replies: 3
Views: 2088

Re: FATAL ERROR new release

Commenting out this in sources\legend\LegendItemCoordinates.php.. /*public function __destruct() { parent::__destruct(); unset($this->xColor); unset($this->idx); unset($this->x); unset($this->y); } */ Allows my chart page to process, but at completion, this is echoed to screen: Notice: Undefined pro...
by rustydiver
Mon Jul 08, 2013 5:09 pm
Forum: PHP
Topic: FATAL ERROR new release
Replies: 3
Views: 2088

FATAL ERROR new release

Just installed latest release (July 2013)... This error accessing my charts: Fatal error: Cannot access parent:: when current class scope has no parent in C:\xampp\htdocs\charts\sources\legend\LegendItemCoordinates.php on line 61 These errors accessing demos/Features/ and clicking through the menu t...
by rustydiver
Tue May 21, 2013 7:39 pm
Forum: PHP
Topic: X axis label format
Replies: 1
Views: 1372

Re: X axis label format

Well, nevermind.... but for others needing anything similar, I finally got it like this.. // Args contains axis, index order to be displayed, labelText function handleGetAxisLabel($sender, $args){ if ($args[0] === $sender->getAxes()->getBottom()){ $args[0]->getLabels()->labelText = number_format($ar...
by rustydiver
Tue May 21, 2013 7:00 pm
Forum: PHP
Topic: X axis label format
Replies: 1
Views: 1372

X axis label format

My x axis is in feet from zero to many thousands. I divide the x values by 100 before populating with addXY. I increment by 1. Thus the x axis shows 1, 2, 3, etc. with 3 minor ticks between them. However, I need to increment by .5 with 4 minor ticks and the format of the labels needs two decimal poi...
by rustydiver
Fri May 10, 2013 5:02 am
Forum: PHP
Topic: Render memory accumulates and crashes in loop
Replies: 5
Views: 3637

Re: Render memory accumulates and crashes in loop

An increase to 128M in TChart.php will increase the number of renders to 35 before memory crashing -- but I had to throw a progress bar into the loop or it times out around 32. Still needs to have the stream memory restored after each render somehow. Coupled with the memory allocation increase and g...
by rustydiver
Fri May 10, 2013 4:52 am
Forum: PHP
Topic: Max image width?
Replies: 4
Views: 3170

Re: Max image width?

An increase to 128M in TChart.php will yield 10,000x600 px (far as I tested to because that is about what I need). I'll let you know if it catches fire.
by rustydiver
Thu May 09, 2013 2:30 pm
Forum: PHP
Topic: Render memory accumulates and crashes in loop
Replies: 5
Views: 3637

Re: Render memory accumulates and crashes in loop

Below is code from the same TeeChart example I used in the image width thread but with a button, a WHILE loop, and image size of 1000x600 px. I get 14 images before crash. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html ...
by rustydiver
Thu May 09, 2013 1:49 pm
Forum: PHP
Topic: Max image width?
Replies: 4
Views: 3170

Re: Max image width?

This is the version.. ========================================================== Release Notes Notes 16th Nov 2012 Build 2012.10.08.001 ---------------------------------------------------------- Code below is straight from your examples at demos/Features Chart Styles>Standard>Line 2D. I can make the...
by rustydiver
Wed May 08, 2013 2:02 pm
Forum: PHP
Topic: Add rectangle fails
Replies: 3
Views: 2062

Re: Add rectangle fails

OK... you notice that the errors are too similar to the save image to file error to be coincidence, right? "247 is not a valid..."
by rustydiver
Tue May 07, 2013 3:23 am
Forum: PHP
Topic: Save image to file fails
Replies: 10
Views: 5632

Re: Save image to file fails

In sources/exports/PNGFormat.php as well as the other image exports, you reference this variable --> $ios (ImageOutputStream) Like so.. public function save($ios) /* TODO throws IOException*/ { if ($this->width <= 0) { $this->width = 400; } if ($this->height <= 0) { $this->height = 300; } $img = $th...
by rustydiver
Mon May 06, 2013 2:36 pm
Forum: PHP
Topic: Save image to file fails
Replies: 10
Views: 5632

Re: Save image to file fails

I might add, it worked in the evaluation version download.