tigeorgia / shenmartav

Website for shenmartav.ge
GNU General Public License v2.0
3 stars 9 forks source link

Voting attendance graphic doesn't match number #121

Closed hutershvili closed 12 years ago

hutershvili commented 12 years ago

There appears to be a bug with the attendance visualisation: When the attendance is 0 (as in case of the Labour Party MPs), the visualisation bar indicates that some votes were attended.

Example: http://shenmartav.ge/en/who/representative/93/shalva-natelashvili/

A somewhat similar issue with salaries: if a type of salary is 0, the bar-visual still shows a small portion of income.

ddohler commented 12 years ago

I assume this is because the bar has a minimum size of the word "Attended". I like the way it works for incomes, because I think showing such a tiny amount will not confuse anyone, but I agree that for Attendance, the bar should be smaller.

sebastiantransparency commented 12 years ago

Derek is right about his assumption. i decoupled the 'Attendance' and 'Absent' from the bar and now the bar is only as wide as '0' (i could decouple that as well).