Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 1796

Summary: PHP Notice when render the TChart
Product: PHP TeeChart Reporter: Jayme Jeffman <jjeffman>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED NOTABUG    
Severity: normal CC: jjeffman, sandra
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Code for testing the bug
Image from my computer
Error Screen shot

Description Jayme Jeffman 2017-02-22 09:06:17 EST
Created attachment 718 [details]
Code for testing the bug

I have been getting a PHP Notice when rendering the TChart at teechart\sources\axis\AxisLabels.php on line 514.

Making the following change stops the PHP Notice


512                 $tmpResult = number_format((float)$value,$decimals,
513                 self::$LOCALE['decimal_point'],
514                 self::$LOCALE['thousands_sep']);
Comment 1 Jayme Jeffman 2017-02-22 09:09:01 EST
Created attachment 719 [details]
Image from my computer

This is the screen shot showing the PHP Notice message on the screen
Comment 2 Jayme Jeffman 2017-02-22 09:21:18 EST
Created attachment 720 [details]
Error Screen shot

The former image I have posted was incorrect.
Comment 3 Jayme Jeffman 2017-02-24 14:56:24 EST
I have found the problem. 

It is not linked to the result of PHP DateTime::getTimestamp() method but to the YValue which is been returned by the Oracle query.

As my Oracle database was configured to Brazilian localization parameters the number is been returned with a comma instead of the decimal point. So this is the reason for the non well formed number message.

I suggest to Steema that include in the documentation of TeeChart for PHP that the values to be furnished to TeeChart methods and properties should be formatted on the American localization parameters, using decimal points.
Comment 4 sandra pazos 2018-02-27 11:03:34 EST
Hello Jayme,

Many thanks for your suggestion, we consider included it. 

Thanks in advance