My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Earlier this year

  • Jul 01, 2009
    issue 3 (Max Values) commented on by toupeira23   -   Thanks for the patch, this actually makes scaling work as expected. Is the author reading this?? ;)
    Thanks for the patch, this actually makes scaling work as expected. Is the author reading this?? ;)
  • Jun 16, 2009
    issue 5 (require_once('utility.php') in gChart2.php but utility.php n...) commented on by ja...@katnik.pl   -   still not present :(
    still not present :(
  • Jun 01, 2009
    issue 18 (gchartphp still in active development?) reported by lorderunion   -   Is this project still under active development?
    Is this project still under active development?
  • Jan 26, 2009
    issue 17 (Generating Simple Bar Chart) reported by gterkanian   -   What steps will reproduce the problem? 1. Create a chart of type "gBarChart" 2. Dataset doesn't work right, so add values with ->values = array 3. Generate graph. What is the expected output? What do you see instead? Simple bar graph. It shows up without any bars. What version of the product are you using? On what operating system? Version 2 on Debian, php5 Please provide any additional information below. I can generate the other types of graphs. Here's my code: <?$keys = array_keys($chartdata);?> <?$values = array_values($chartdata);?> <?$barChart = new gBarChart;?> <?$barChart->width = 700;?> <?$barChart->height = 350;?> <?$barChart->values = $values;?> <?//$barChart->addDataSet($values);?> <?$barChart->valueLabels = $keys;?> <img src="<?php print $barChart->getUrl(); ?>" />
    What steps will reproduce the problem? 1. Create a chart of type "gBarChart" 2. Dataset doesn't work right, so add values with ->values = array 3. Generate graph. What is the expected output? What do you see instead? Simple bar graph. It shows up without any bars. What version of the product are you using? On what operating system? Version 2 on Debian, php5 Please provide any additional information below. I can generate the other types of graphs. Here's my code: <?$keys = array_keys($chartdata);?> <?$values = array_values($chartdata);?> <?$barChart = new gBarChart;?> <?$barChart->width = 700;?> <?$barChart->height = 350;?> <?$barChart->values = $values;?> <?//$barChart->addDataSet($values);?> <?$barChart->valueLabels = $keys;?> <img src="<?php print $barChart->getUrl(); ?>" />

Older

  • Sep 12, 2008
    issue 6 (Simple Encoder Written in PHP) commented on by prehistorya   -   --eric(dot]martin{at}3jane[dot)com-- --ibrahim[dot]yilmaz{at}karmabilisim[dot]net-- //Added Turkish characters //Sorry for first submit this change for only contact information. /** * Encodes a dataset for use in Google Charts */ private static function __simpleEncode( $valueArray, $maxValue ) { $enc = split (',','A,B,C,Ç,D,E,F,G,Ğ,H,I,İ,J,K,L,M,N,O,Ö,P,Q,R,S,Ş,T,U,Ü,V,W,X,Y,Z,a,b,c,ç,d,e,f,g,ğ,h,ı,i ,ğ,j,k,l,m,n,o,ö,p,q,r,s,ş,t,u,ü,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9'); $data = array('s:'); foreach( $valueArray as $curr ) { if ( isset($curr) && $curr >= 0) { $index = round( (count($enc)-1) * $curr / $maxValue); $data[] = $enc[$index]; } else { $data[] = '_'; } } return implode('',$data); }
    --eric(dot]martin{at}3jane[dot)com-- --ibrahim[dot]yilmaz{at}karmabilisim[dot]net-- //Added Turkish characters //Sorry for first submit this change for only contact information. /** * Encodes a dataset for use in Google Charts */ private static function __simpleEncode( $valueArray, $maxValue ) { $enc = split (',','A,B,C,Ç,D,E,F,G,Ğ,H,I,İ,J,K,L,M,N,O,Ö,P,Q,R,S,Ş,T,U,Ü,V,W,X,Y,Z,a,b,c,ç,d,e,f,g,ğ,h,ı,i ,ğ,j,k,l,m,n,o,ö,p,q,r,s,ş,t,u,ü,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9'); $data = array('s:'); foreach( $valueArray as $curr ) { if ( isset($curr) && $curr >= 0) { $index = round( (count($enc)-1) * $curr / $maxValue); $data[] = $enc[$index]; } else { $data[] = '_'; } } return implode('',$data); }
  • Sep 12, 2008
    issue 6 (Simple Encoder Written in PHP) commented on by prehistorya   -   --eric(dot]martin{at}3jane[dot)com-- --ibrahim[dot]yilmaz{at}karmabilisim[dot]com-- //Added Turkish characters /** * Encodes a dataset for use in Google Charts */ private static function __simpleEncode( $valueArray, $maxValue ) { $enc = split (',','A,B,C,Ç,D,E,F,G,Ğ,H,I,İ,J,K,L,M,N,O,Ö,P,Q,R,S,Ş,T,U,Ü,V,W,X,Y,Z,a,b,c,ç,d,e,f,g,ğ,h,ı,i ,ğ,j,k,l,m,n,o,ö,p,q,r,s,ş,t,u,ü,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9'); $data = array('s:'); foreach( $valueArray as $curr ) { if ( isset($curr) && $curr >= 0) { $index = round( (count($enc)-1) * $curr / $maxValue); $data[] = $enc[$index]; } else { $data[] = '_'; } } return implode('',$data); }
    --eric(dot]martin{at}3jane[dot)com-- --ibrahim[dot]yilmaz{at}karmabilisim[dot]com-- //Added Turkish characters /** * Encodes a dataset for use in Google Charts */ private static function __simpleEncode( $valueArray, $maxValue ) { $enc = split (',','A,B,C,Ç,D,E,F,G,Ğ,H,I,İ,J,K,L,M,N,O,Ö,P,Q,R,S,Ş,T,U,Ü,V,W,X,Y,Z,a,b,c,ç,d,e,f,g,ğ,h,ı,i ,ğ,j,k,l,m,n,o,ö,p,q,r,s,ş,t,u,ü,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9'); $data = array('s:'); foreach( $valueArray as $curr ) { if ( isset($curr) && $curr >= 0) { $index = round( (count($enc)-1) * $curr / $maxValue); $data[] = $enc[$index]; } else { $data[] = '_'; } } return implode('',$data); }
  • Aug 18, 2008
    issue 1 (Variable not initialized before concat) commented on by webwesen   -   the code is abandoned, I guess...
    the code is abandoned, I guess...
  • Aug 07, 2008
    issue 1 (Variable not initialized before concat) commented on by Sergey.KisH   -   Hello! Same problem and same decision (add `$fullUrl='';`) Why you don't commit diff?
    Hello! Same problem and same decision (add `$fullUrl='';`) Why you don't commit diff?
  • Aug 05, 2008
    issue 16 (& should be &amp;) commented on by cts3e1   -   forgot: can see working example gChartExample2.php here: http://ctshryock.com/gChart/gChartExample2.php
    forgot: can see working example gChartExample2.php here: http://ctshryock.com/gChart/gChartExample2.php
  • Aug 05, 2008
    issue 16 (& should be &amp;) commented on by cts3e1   -   hey - Google Chart API guide says to use "&amp;" in the urls (see bottom of URL Formatting: http://code.google.com/apis/chart/#url_format ) here's a simple find-and-replace patch for gChart2.php
    hey - Google Chart API guide says to use "&amp;" in the urls (see bottom of URL Formatting: http://code.google.com/apis/chart/#url_format ) here's a simple find-and-replace patch for gChart2.php
 
Hosted by Google Code