goinvo / visual-town-budget Goto Github PK
View Code? Open in Web Editor NEWOpen-source budget visualization framework.
Home Page: http://www.arlingtonvisualbudget.org/
Open-source budget visualization framework.
Home Page: http://www.arlingtonvisualbudget.org/
Doesn't track the cursor. FireFox 43.0.1 on Windows 7. Untested on Mac.
trying to use 'processCSV.py' with a csv file (first two lines below). getting the following error:
@expenses
list index out of range
Error reconstructing tree at node: <main.entry instance at 0x7f9edeafccb0>
==========CSV Example=================================
LEVEL1,LEVEL2,LEVEL3,LEVEL4,LEVEL5,TOOLTIP,SOURCE,SOURCE URL,2010,2011,2012,2013,2014,2015,2016,2017,2018,LEVEL
General Fund,Administration,SALARIES AND WAGES,,,,,,104357.00,111563.00,179844.00,115976.00,222554.00,160906.00,,,,3
Occasionally the layers in the graph do not line up on the top with the overall 'total' line. There is a blank space of background color.
Default year is now derived from current year, but fiscal years start July 1. Also for some purposes, might want to start on some FY in the future.
IE8 and earlier, doesn't work at all, Just see the header and footer with no map or graph.
IE9&10 shows Labels but missing the money totals on the tree map. (Ex on Revenues screen. Shows "Property Tax" but missing "79M"
IE11 Missing all labels on tree map, can't click through map. Graph works.
Remove the data files (csv & json) from /data & /data/processing. Rename /includes/localized_variables.php to localized_variables_template.php. The intent is to allow updating a site by simply overwriting with all the files in the distro, without overwriting the data and localization. Sample data files could be packaged separately for the initial installation.
There is no background color on the left side of the slider when only one entry is being displayed (no layers).
IE popovers show block title, should show "Your contribution is $XXX" for Expenses, tooltip field for Funds & Revenues.
When showing fiscal budgets over time, its a good idea to adjust for inflation to ensure apples to apples comparisons of spending. I looked through your code and didn't see any evidence that you were doing so.
A straightforward way to do this is to take the Consumer Price Index (CPI) and multiply your data by it for each year.
Here's a table of CPI: ftp://ftp.bls.gov/pub/time.series/cu/cu.data.4.AsizeNorthCentral
Here's an R script we use to do the calculation: https://github.com/open-city/hows-business/blob/master/import/taxes.R
Make a variable file so new instances of VTB can more easily be spun up with the proper data. Replace hard coded data with these variables.
So $5.7M instead of $6M.
Probably in format_currency() in statistics.js. Could just add a digit, or set a variable on localized_variables.php, or make the function clever about space available.
Small entries for data are nearly impossible to see sometimes at the bottom of the tree map. Especially if drawn as a small thin line rather than a square.
Should be require_once '../../includes/localized_variables.php';
Use "town" or "city" in various text strings, e.g. "City/Town budget visualized", "how much money does the city/town spend on schools", "Education is an important factor in City/Town expenses". Could be a separate field in localized_variables.php, or just parse $longName.
Pop-overs sometimes don't disappear when transitioning, and get permanently stuck on page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.