worldcities.frink

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

cities  = CSV.parseFileWithHeader["file:/home/eliasen/builds/worldcities/worldcities.csv"]
cities.makeColumnsNumeric[["lat","lng","population","id"]]

g = new graphics
g.color[0,0,0,.1]

for [name, name1, lat, long] = cities.data
   g.fillEllipseSize[long, -lat, .5, .5]

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 was born 20218 days, 0 hours, 11 minutes ago.