![]() | Steema Issues DatabaseNote: 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. |
| Summary: | PHP Notice when render the TChart | ||
|---|---|---|---|
| Product: | PHP TeeChart | Reporter: | Jayme Jeffman <jjeffman> |
| Component: | Chart | Assignee: | 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 |
||
Created attachment 719 [details]
Image from my computer
This is the screen shot showing the PHP Notice message on the screen
Created attachment 720 [details]
Error Screen shot
The former image I have posted was incorrect.
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. Hello Jayme, Many thanks for your suggestion, we consider included it. Thanks in advance |
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']);