Using TeeChart PHP with javascript -
i'm trying use teechart php. use laravel 5.1 framework on ubuntu 15.04 machine. far, i've been able include librairy in laravel. put teechartphpopen folder vendor, added tchart.php in composer.json -> autoload -> files, did run composer dumpautoload
. also, did install gd extension sudo apt-get php5-gd
, did restart web server (still on artisan).
i did tests steema's demos on http://www.steema.com/products/teechart/php/demos/features/index.html. here problems:
- with example using javascript, laravel flag me error :
call undefined method imageexport::getjavascript()
i looked imageexport file , don't find trace of getjavascript function.
- i did try example don't use function (the
axes/custom
one). now, there's gd error thrown :
fatalerrorexception in graphicsgd.php line 1275: call undefined function imageantialias()
i can comment imageantialias function lines (1275 , 1301) , example works. now, can trick want use javascript asset , pleasant have anti-aliasing function too.
any welcome! thanks.
for first error, mistake, didn't read through documentation free/trial version. javascript isn't available version.
for second one, recompile php following thread https://help.ubuntu.com/community/compilingeasyhowto
the compilation configuration worked me 1 :
./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
i'll have buy teechart access javascript translator.
Comments
Post a Comment