Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Usman's Profile

GitHub User: usmanasif

Site: http://www.devsinc.com

Comments by Usman

Avatar

Anybody got an idea how to generate a histogram in PDF?

Avatar

Chart is not shown in pdf file generated by pdfkit gem..... anyone who solve this problem??

thanks.

Avatar

how can i pass array in xAxis..

in view file
<% percentage_array = [1,2,3,4] %>
<%= hidden_field_tag('percentage_array', percentage_array) %>

and in javascript
xAxis: {
title:{text: "%age of student"},
categories: "#{percentage_array}",

   },

it does not work.All values of array shows only for first interval of chart. please help.

Avatar

Hello Ryan,

it works very nice but the problem is that images are not shown in pdf file generated by this gem. How can i solve this problem.
please help.

Thanks

Avatar

Im using CentOS server through ssh, and ran:
sudo gem install passenger
rvmsudo passenger-install-apache2-module

Passenger stops installing on:
Command failed with status (): [g++ -Iext -Iext/common -Iext/libev -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o libout/common/libpassenger_common/ApplicationPool2/Implementation.o -c ext/common/ApplicationPool2/Implementation.cpp]

even after waiting for an hour no success, any idea what went wrong?