/** 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[]