Google chart extended data encoding help
Hey, I need some help with an algorithm for the GoogleChart "wrappers" that I am working with. I'm in the process of writing the extended data encoding algorithm, I've come up with something that works, but I now there is a better solution to it using math. Here is the code that I came up with, it all works and should prove to be a good reference.
Any help with this would be greatly appreciated.
Here's the link to Google's documentation on the extended encoding:
One last note, I'm not sure if I was on the right track, but I was thinking that the math algorithm would need to use a base64 style numbering system, replacing each of the 64 possible values with the values provided by Google and then somehow do the math (it just all got too much for me).
at the moment my brain is returning a fatal error, i think i need to reboot.
i can see what you mean, but its just how to do it, if i get my brain working ill have a go.
its a tough one xD
I think that I've come up with a function which will do this conversion properly. I've done a bunch of tests against answers which I know are correct (from the Google Charts docs) and everything appears ok. If there is something broken, at least you'll have a starting point to push forwards from.
So, below is the function and the tests used to see if it works or not.
For me, that test page returns the following output:
perfect, cheers m8 :-)
|All times are GMT. The time now is 04:18 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0