brendanheywood / theCrag-DEFUNCT

!!!!! PLEASE USE THIS ISSUES LIST INSTEAD: https://github.com/theCrag/website/issues
thecrag.com
0 stars 0 forks source link

route page - convert quality and lead style charts to google charts #102

Closed cgome closed 13 years ago

cgome commented 13 years ago

route page - convert quality and lead style charts to google charts

eg

Quality Assessments (Route page) http://chart.apis.google.com/chart?cht=bhs&chs=200x220&chd=t:100,30,50,18,40,20,10&chxl=0:|Crap|Don%27t%20Bother|Average|Good|Very%20Good|Classic|Mega%20Classic&chxt=y&chxs=0,111111&chco=6699cc&chtt=Ascents%20by%20Quality

Ascents by style (Route page) http://chart.apis.google.com/chart?cht=p&chs=250x175&chd=t:100,30,50,18,40,20,20&chxt=x,y&chxs=0,111111,11,0,lt|1,0000ff,10,1,lt&chl=Top%20rope|Dog|Pink%20point|Red%20Point|Solo|Onsight|Flash&chco=663300|996633|FF99CC|ee2222|99ccff|33ff33|ff9900&chtt=Ascents%20by%20Style

cgome commented 13 years ago

Brendan can you check that the axes on the quality charts are drawing correctly? Every route I look at has at least one 'crap' rating which seems unlikely. I wonder if the intersect of the x/y axes is set to -1 so zeroes are appearing on the graphs?

brendanheywood commented 13 years ago

Can you send a test case? I can't see any issue - this might have been before I actually wired it up to the data as it wasn't available yet.

cgome commented 13 years ago

It's fixed now. Maybe I was looking at dummy data or something, sorry.