Adrielpin / gchartphp

Automatically exported from code.google.com/p/gchartphp
0 stars 0 forks source link

Normalizing values #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Give values to sample charts such as 300, 340.2, 500, 700

What is the expected output? What do you see instead?
I see 4 equal part on the pie chart - instead of parts with different sizes

What version of the product are you using? On what operating system?
10. revision, win

Please provide any additional information below.
The Google API says that with text encoding you can only use values from
0.0 to 100.0 so this shouldn't be a problem. However there is something
scaleValues function wich should do the process.

As I read it is to be written. Until then I found a piece of code that
makes the normalization process with standard encoding. This is might be
useful:
http://james.cridland.net/code/google-chart.html

Original issue reported on code.google.com by attila.k...@gmail.com on 21 Dec 2007 at 12:10

GoogleCodeExporter commented 8 years ago
Ok. After I went into the code to fix this issue I realized that it works fine. 
Only
the pieChart (first in the sample file) has an own extented function for 
setScalar.
For some reason it gives back 1 always. I commented out this extended function 
for
myself and It's works well.

Close this issue :)

Original comment by attila.k...@gmail.com on 21 Dec 2007 at 6:31

GoogleCodeExporter commented 8 years ago
You are absolutely correct.  I totally overlooked this.  Will be changing the 
source
asap.

thanks, 
-d.

Original comment by detour1...@gmail.com on 8 Jan 2008 at 4:23

GoogleCodeExporter commented 8 years ago
Hi, I am having the same problem and I downloaded the code today. Is this 
updated in the code?

attila.koteles, can you elaborate on which line did you commented?

Original comment by cyb...@gmail.com on 8 Feb 2008 at 7:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks Attila, 

I was having issues with values over 100 not displaying properly, but your 
quick fix
worked well.

"Ok. After I went into the code to fix this issue I realized that it works 
fine. Only
the pieChart (first in the sample file) has an own extented function for 
setScalar.
For some reason it gives back 1 always. I commented out this extended function 
for
myself and It's works well.

Close this issue :)
"

Thanks

Original comment by phillpaf...@gmail.com on 25 Mar 2008 at 2:24

GoogleCodeExporter commented 8 years ago
(to phillpafford)
It's around line 171 in gChart2.php , just search for "return 1" and you'll 
find it.

Original comment by tim.pill...@gmail.com on 29 Jun 2008 at 11:52

GoogleCodeExporter commented 8 years ago
Fixed on rev. 14

Original comment by bardellie on 12 May 2010 at 11:44