sxywu
Joined 13 years ago
Joined 13 years ago
Another key is to update positions of nodes and links only at calculation end, rather than at each tick. This means that user may have to wait a couple seconds before seeing the graph, but will save your browser from having to update the DOM at each tick (which could be thousands of times across thousands of elements).
But the best is still if you don't need to re-calculate the positions (no new nodes ever show up, and no nodes are ever deleted), going with what me_bx said.
Also, more explicit "Customize" buttons to encourage people to play around with and edit the data :D
[1]http://www.epi.org/publication/wp297-2013-family-budget-calc...
As for the costs, they're actually customizable - you can choose it from the dropdown. I will also work to make that more explicit.
In particular, the child care costs are apparently broken down like this: One parent, one child = cost of 4-year-old care One parent, two children = cost of 4-year-old care + cost of one school-age child One parent, three children = cost of 4-year-old care + cost of two school-age children Two parents, one child = cost of 4-year-old care Two parents, two children = cost of 4-year-old care + cost of one school-age child Two parents, three children = cost of 4-year-old care + cost of two school-age children
And they assume the school-age children to require both before-school and after-school care.
As for comparing a cost of living for a two-parent household with the income of a single worker, I could only make that assumption because...how would I be able to extrapolate the household income of a two-parent family from BART salaries? As imperfect a solution as it is, I still hope that it will give insight, since my hope was not to shove any particular opinions on anyone, but rather just a tool for exploration.
[1] http://www.epi.org/publication/wp297-2013-family-budget-calc...
To account for my uncertainty, I built in a "Custom" option in the dropdowns, so you can play around with what you think is a fair cost of living for a BART employee, and how those numbers compare to their salaries and the proposal figures.
A lot of the information on salaries that's published out there include overtime, pension, medical benefits, PTO, etc., but that's the total cost for BART, and not necessarily the annual income that an employee pockets. For me, I wanted to see if a BART employee could make a comfortable living in the bay area, and for that, things like overtime and pension aren't as relevant since you either have to work more to earn them, or you don't really see them until the future. Thus, the much lower 45k to 70k I arrived at.
It's fun to explore this if you can: https://github.com/enjalot/bart/blob/master/data/bart-comp-a... It's a list of BART employees' total cost of employment, scraped from http://www.mercurynews.com/salaries/bay-area
Try to read this paper. They mentioned several graph layout algorithms.I think you can also try to ask them the source code. http://www.cs.ubc.ca/labs/imager/tr/2006/Archambault_TopoLay...
Also this paper might be interesting as well. It concludes and categories graph layouts algorithms. Depending what information you want to visualize and what the data looks like, you can pick up different algorithms. http://profs.etsmtl.ca/mmcguffin/research/2012-mcguffin-simp...