okfn-brasil / mosaico

Visualization on the brazilian budget for FGV
GNU Affero General Public License v3.0
5 stars 0 forks source link

Time series showing percentage variation #18

Open ltartari opened 11 years ago

vitorbaptista commented 10 years ago

@ltartari Your turn :smiley:

ltartari commented 10 years ago

On it. =)

vitorbaptista commented 10 years ago

@ltartari Just fixed the way I was calculating the variations. It's right now. This creates a (small?) problem for you: as we're always considering the changes in percentual (i.e. if SAUDE was 10% of the total budget in 2011, and 5% in 2012, the delta is -50%, even though it might have increased in absolute numbers. Basically, we're showing how bigger/smaller is each treemap's square, when compared to the previous years).

What it means is that, for the first cut (year), everything will be 0%. Because the total budget is always 100% of the total budget :smile: This makes the layout a bit weird:

image

I was wondering if it didn't made more sense to show this number in the treemap's colors and table, instead of the budget execution. It obviously depends on the focus @andressafioravanti et al. are trying to do, but I felt the change in the budget allocation is very important. Maybe more important than the budget underspending.

Maybe in phase 2.

ltartari commented 10 years ago

@vitorbaptista, how about using the absolute value for the entire budget for each year and show that comparison? Is that feasible? What do you think on that? I believe that we should ask @andressafioravanti and the guys from FGV what should we do here.

Looks awful btw :-1:

vitorbaptista commented 10 years ago

To give a fair comparison, we need to deflate the values. Unfortunately.

vitorbaptista commented 10 years ago

TODO: Change the pointer and/or add a hover effect to show that the bars are clickable.