Plot the rating and distribution charts using Open Flash Chart (ticket #211)
Review Request #73 - Created March 4, 2009 and submitted
Information | |
---|---|
Stefan Istrate | |
infoarena | |
Reviewers | |
hackers | |
I switched from gnuplot to Open Flash Chart 2 for drawing rating and distribution charts. I kept the charts clean. I have green/yellow/red points according to the rating colours. I have tooltips for every rating point and the peak point is marked with a "Max" label. These charts are integrated using 2 macros. I haven't implemented zooming or resizing, I think it looks good enough as they are now. For the correct user profile, I have the following page saved as template/userrating on wiki: =================================================================================== h2. Rating %user% ==RatingChart(user="%user%")== h3. Concursuri cu rating la care a participat ==Rounds(user="%user%" only_rated="1")== ==DistributionChart(user="%user%")== *{"Ce inseamna si cum se calculeaza rating-ul?":documentatie/rating}* =================================================================================== This huge diff is because I added a PHP library provided by Open Flash Chart to generate content for charts. For testing, you need the file www/static/swf/open-flash-chart.swf (not included in this diff). You can download it from http://teethgrinder.co.uk/open-flash-chart-2/downloads.php (version 2 Hyperion). Known issue: When I right click on a chart, I can't save the image locally. I don't know why.
-
trunk/www/views/header.php (Diff revision 2) -
Is it possible to only include this on the ratings page?
Review request changed
Change Summary:
Done and submitted.