Download or view worldcities.frink in plain text format
/** Plot the world's biggest cities. This uses the data from the basic CSV file
at:
https://simplemaps.com/data/world-cities
*/
use CSV.frink
use hashColor.frink
cities = CSV.parseFileWithHeader["file:/home/eliasen/builds/worldcities/worldcities.csv"]
cities.makeColumnsNumeric[["lat","lng","population","id"]]
g = new graphics
g.color[0,0,0,.05]
for [name, name1, lat, long, country] = cities.data
{
[r1,g1,b1] = hashColorToFloatRGB[country]
g.color[r1, g1, b1, .1]
g.fillEllipseSize[long, -lat, .7, .7]
}
g.show[]
Download or view worldcities.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen, eliasen@mindspring.com