使用 TeeChart PHP 和 javascript
Using TeeChart PHP with javascript
我正在尝试使用 TeeChart PHP。我在 Ubuntu 15.04 机器上使用 Laravel 5.1 框架。到目前为止,我已经能够将图书馆包含在 Laravel 中。我将 TeeChartPHPOpen 文件夹放入供应商,在 Composer.json -> 自动加载 -> 文件中添加 TChart.php,做了 运行 composer dumpautoload
。此外,我确实使用 sudo apt-get php5-gd
安装了 GD 扩展,并且我确实重新启动了我的网络服务器(仍在 artisan 上)。
我在 http://www.steema.com/products/teechart/php/demos/Features/index.html 上用 Steema 的演示做了一些测试。这是我的问题:
- 对于使用 JavaScript 的示例,Laravel 向我报告错误:
Call to undefined method ImageExport::getJavaScript()
我查看了 ImageExport 文件,没有找到任何 getJavaScript 函数的踪迹。
- 我确实尝试了另一个不使用此功能的示例(
Axes/Custom
示例)。但是现在,抛出了 GD 错误:
FatalErrorException in GraphicsGD.php line 1275:
Call to undefined function imageantialias()
我可以评论 imageantialias 函数行(1275 和 1301),然后示例就可以工作了。现在,它可以做到这一点,但我真的很想使用 JavaScript 资产,而且有抗锯齿功能也很愉快。
欢迎任何帮助!谢谢。
对于第一个错误,是我的错误,没有通读free/trial版本的所有文档。 JavaScript 不适用于此版本。
对于第二个,我在这个帖子 https://help.ubuntu.com/community/CompilingEasyHowTo
之后重新编译 PHP
对我有用的编译配置是这个:
./configure --prefix=/usr/
--with-apxs2=/usr/bin/apxs2
--with-config-file-path=/etc/php5/apache2
--disable-ipv6 --enable-inline-optimization
--disable-debug
--enable-bcmath
--enable-calendar
--with-curl --enable-ctype
--enable-discard-path
--enable-exif
--enable-ftp
--with-gd
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--enable-gd-native-ttf
--enable-magic-quotes
--enable-mbstring
--with-mcrypt --enable-soap --with-pear --with-xsl --with-zlib --with-openssl --enable-sockets --with-mysqli --enable-zip --with-tidy=/usr/ --with-bz2
我只需要购买 TeeChart 即可访问 JavaScript 翻译器。
我正在尝试使用 TeeChart PHP。我在 Ubuntu 15.04 机器上使用 Laravel 5.1 框架。到目前为止,我已经能够将图书馆包含在 Laravel 中。我将 TeeChartPHPOpen 文件夹放入供应商,在 Composer.json -> 自动加载 -> 文件中添加 TChart.php,做了 运行 composer dumpautoload
。此外,我确实使用 sudo apt-get php5-gd
安装了 GD 扩展,并且我确实重新启动了我的网络服务器(仍在 artisan 上)。
我在 http://www.steema.com/products/teechart/php/demos/Features/index.html 上用 Steema 的演示做了一些测试。这是我的问题:
- 对于使用 JavaScript 的示例,Laravel 向我报告错误:
Call to undefined method ImageExport::getJavaScript()
我查看了 ImageExport 文件,没有找到任何 getJavaScript 函数的踪迹。
- 我确实尝试了另一个不使用此功能的示例(
Axes/Custom
示例)。但是现在,抛出了 GD 错误:
FatalErrorException in GraphicsGD.php line 1275: Call to undefined function imageantialias()
我可以评论 imageantialias 函数行(1275 和 1301),然后示例就可以工作了。现在,它可以做到这一点,但我真的很想使用 JavaScript 资产,而且有抗锯齿功能也很愉快。
欢迎任何帮助!谢谢。
对于第一个错误,是我的错误,没有通读free/trial版本的所有文档。 JavaScript 不适用于此版本。
对于第二个,我在这个帖子 https://help.ubuntu.com/community/CompilingEasyHowTo
之后重新编译 PHP对我有用的编译配置是这个:
./configure --prefix=/usr/
--with-apxs2=/usr/bin/apxs2
--with-config-file-path=/etc/php5/apache2
--disable-ipv6 --enable-inline-optimization
--disable-debug
--enable-bcmath
--enable-calendar
--with-curl --enable-ctype
--enable-discard-path
--enable-exif
--enable-ftp
--with-gd
--with-freetype-dir
--with-jpeg-dir
--with-png-dir
--enable-gd-native-ttf
--enable-magic-quotes
--enable-mbstring
--with-mcrypt --enable-soap --with-pear --with-xsl --with-zlib --with-openssl --enable-sockets --with-mysqli --enable-zip --with-tidy=/usr/ --with-bz2
我只需要购买 TeeChart 即可访问 JavaScript 翻译器。