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 - PHP Notice when render the TChart
Summary: PHP Notice when render the TChart
Status: RESOLVED NOTABUG
Alias: None
Product: PHP TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-22 09:06 EST by Jayme Jeffman
Modified: 2018-02-27 11:03 EST (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
Code for testing the bug (4.73 KB, text/plain)
2017-02-22 09:06 EST, Jayme Jeffman
Details
Image from my computer (46.85 KB, image/png)
2017-02-22 09:09 EST, Jayme Jeffman
Details
Error Screen shot (74.10 KB, image/png)
2017-02-22 09:21 EST, Jayme Jeffman
Details

Note You need to log in before you can comment on or make changes to this bug.
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