thinkingmachines / cartogramph Goto Github PK
View Code? Open in Web Editor NEWAlternative map visualization tool of the Philippines for anyone to use
License: MIT License
Alternative map visualization tool of the Philippines for anyone to use
License: MIT License
Noticed that at several points, the code is checking if the Name is "Laguna Lake". Perhaps we can remove that data point at the beginning?
Area tiles are overlapping in Metro Manila for all cartogram types. Didn't we decide to make Metro Manila one giant block instead of multiple cities?
Difficult to hover over small islands/areas to see stats. The way it works right now, a user has to hover over the actual rect element to see the tooltip. This is not ideal for small 5x5 rects like Batanas. Suggested improvement, instead over tooltip when mouseover the rect, tooltip when mouseover a voronoi grid overlaying the entire canvas.
See here for example: http://www.visualcinnamon.com/2015/07/voronoi.html
I don't think it's mentioned anywhere what the format/columns are for the CSVs used by the script. Can we add a spec description in the README, and/or a sample file in the repo?
If the purpose is to have a library squared away somewhere separate, I highly recommend not including the hardcoded data variables because those are currently broken.
var GEODATA = "/static/data/philippines-topo2.json"; //link to the map json source file
var THEMATIC = "/static/data/philpopulation2015.csv"; //link to population data
var THEMATICCOL = "pop2015"; //thematic variable
var THEMATICLAB = "Population"; //label
"Thematic" is incredibly confusing to me. I can't figure out what a thematic cartogram is, and even after reading the post, I can't remember what it's supposed to be. Can we rename to something more direct and memorable? On the same topic, "sequential" only makes sense if you know what a sequential palette is, which most people don't.
Some suggestions for "thematic":
Some suggestions for "sequential":
Don't make it random. Weight the southern provinces heavily and lighten the northern provinces so people can see what that with just a simple data update, this cartogram could look very different.
Given that makecartogram()
takes in both thematic and sequential data, would it be technically easy to do a 2-in-1 chart where you can have two custom data sources to map in comparison to each other?
Like Schools per province vs. Literacy Rate, should be strongly related but maybe there's a visually large province that's unexpectedly light in color.
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.