Page 1 of 1

Gridlines and chart markers

Posted: Fri Jan 11, 2008 8:29 pm
by jmcmahon
I've noticed that eastwood doesn't seem to produce chart markers and gridlines like the google api.

I can see in the code that grindlines section is incomplete but it looks like the marker section has some implementation. Are markings working and if so how do I use them?

Thanks.

EDIT: Looking at it some more, I see that only range markers are implemented. Are you working on the other ones as well?

Posted: Tue Jan 15, 2008 4:57 pm
by david.gilbert
A couple of features are missing (mentioned in the README.txt file). I'd like to fill in these gaps in the next release (1.0.1) if possible. Patches are welcome.

Will text and data line support be added to 1.0.1?

Posted: Thu May 01, 2008 7:36 pm
by ekoegler
Hi David, I've been looking through the source code for the servlet, and started updating it to support the additional CHM values google added to their API. The chart I would like to produce via Eastwood will look like this:

Code: Select all

src=chart.apis.google.com/chart?chs=650x300
&chd=t:30,38,38,57,62
&cht=bvg
&chl=1%2f5%2f2008|1%2f15%2f2008|2%2f08%2f2008|2%2f20%2f2008|3%2f5%2f2008
&chds=0,100
&chg=20,10
&chbh=100,20,25
&chco=A2E1E1
&chxt=y
&chxr=0,0,100
&chxl=1:0|100
&chm=D,FF0000,0,0,3,0|t30%25,000000,0,0.0,20,1|t8%25,FF0000,0,0.5,20,1|t38%25,000000,0,1.0,20,1|t0%25,FF0000,0,1.5,20,1|t38%25,000000,0,2.0,20,1|
t19%25,FF0000,0,2.5,20,1|t57%25,000000,0,3.0,20,1|t5%25,FF0000,0,3.5,20,1|t62%25,000000,0,4.0,20,1|r,F5F8F8,0,0.3,0.62
&chtt=Total+Gain+32%25
&chdl=test+score" alt="google chart"


I was curious if you were going to add the "D" and "t*" processing in this patch. If not, I'd be happy to send you my patched code (assuming I get it working of course. :) )