Skip to content
cesutherland edited this page Mar 5, 2011 · 3 revisions
Clone this wiki locally

Welcome to the DataVisualization wiki!


  • All questions are based on my (mis)understandings thus far; you may have designed them in there and I just didn't know about it!
  • If we use getMaxSpending() to create Visual so the max is the upper bound of the display, this would prevent any value from being displayed greater than the initial highest category, unless getMaxSpending() is dynamic; is it?

Haven't taken a look at your changes yet, but ultimately we'll write that new value back to the model and that value will be recalculated. -ces

  • The sliders store the information of mycosti, the personal cost, but the Visual displays the entire country's spending (amounti); what's the conversion from this, or did you grab these values from API? I'm used the number 286,785 (lol) to approximate the ratio, but either we should stick with throwing just the personal or national numbers, or have some conversion. I -think- you got both numbers from API, due to income changing mycosti, but how can we handle this?

Both numbers initially come from the API. We can check the API for tax rates per category and use that - otherwise we'll build into the model that initial ratio calculation. -ces

  • A lot of Visual (and Slider, I think) attributes are created and tossed in the draw() call, like padding... and I thought there were more, but I guess I can just grab attributes from model and paper.. should these be stored within the class, since we will have to redraw the bars and shit and need to grab padding again, I think.

Those calculated parameters should probably be methods of the Visual class, yes. I'm not certain what I want to do with the animation (update) method yet, but we might just redraw. Even so, they should be encapsulated -ces