Skip to content

Instantly share code, notes, and snippets.

@tezzutezzu
tezzutezzu / data.tsv
Last active November 28, 2023 15:41
Pie Chart Update v4
region fruit count
East Apples 53245
West Apples 28479
South Apples 19697
North Apples 24037
Central Apples 40245
East Oranges 200
South Oranges 200
Central Oranges 200
@tezzutezzu
tezzutezzu / data.csv
Last active February 15, 2023 00:14
nomi italiani
We can't make this file beautiful and searchable because it's too large.
name,rank,year,count,gender,percent
ANDREA,1,1999,10336,m,3.914617704
FRANCESCO,2,1999,9494,m,3.595721796
ALESSANDRO,3,1999,9000,m,3.408626096
MATTEO,4,1999,8703,m,3.296141435
LUCA,5,1999,7799,m,2.953763881
LORENZO,6,1999,7499,m,2.840143011
MARCO,7,1999,7002,m,2.651911103
DAVIDE,8,1999,6418,m,2.430729143
SIMONE,9,1999,6379,m,2.41595843
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 60 columns, instead of 45. in line 2.
Country Name,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
Aruba,64.084,64.429,64.747,65.053,65.356,65.66,65.959,66.242,66.503,66.745,66.972,67.19,67.405,67.626,67.857,68.11,68.394,68.706,69.041,69.387,69.726,70.036,70.301,70.51,70.66,70.757,70.814,70.851,70.886,70.924,70.969,71.018,71.062,71.098,71.126,71.148,71.168,71.19,71.219,71.259,71.312,71.382,71.469,71.572,71.688,71.816,71.952,72.093,72.235,72.377,72.516,72.654,72.791,72.929,73.068,73.208,73.348,,
Afghanistan,31.58,32.026,32.466,32.903,33.338,33.771,34.204,34.636,35.069,35.505,35.946,36.392,36.847,37.312,37.791,38.287,38.801,39.334,39.89,40.471,41.085,41.738,42.432,43.164,43.93,44.728,45.554,46.399,47.249,48.086,48.89,49.638,50.323,50.941,51.497,51.999,52.465,52.918,53.379,53.861,54.376,54.929,55.515,56.121
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 60 columns, instead of 46. in line 2.
Country Name,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,1976,1977,1978,1979,1980,1981,1982,1983,1984,1985,1986,1987,1988,1989,1990,1991,1992,1993,1994,1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
Aruba,67.129,67.625,68.065,68.458,68.817,69.165,69.526,69.917,70.345,70.811,71.306,71.815,72.313,72.779,73.204,73.579,73.902,74.183,74.43,74.647,74.839,75.01,75.164,75.305,75.436,75.556,75.663,75.754,75.827,75.886,75.932,75.969,76.002,76.033,76.066,76.1,76.133,76.164,76.192,76.221,76.257,76.307,76.375,76.465,76.575,76.703,76.845,76.992,77.14,77.285,77.425,77.561,77.695,77.83,77.965,78.1,78.236,,
Afghanistan,33.133,33.586,34.03,34.469,34.904,35.337,35.768,36.2,36.634,37.072,37.518,37.97,38.432,38.904,39.39,39.891,40.409,40.945,41.503,42.086,42.705,43.369,44.08,44.837,45.636,46.473,47.345,48.239,49.138,50.024,50.874,51.667,52.393,53.051,53.643,54.179,54.676,55.156,55.642,56.145,56.678,57.249,57.849,58.468,59.
[{"type":"x","title":"Fondamenti di User Experience (UX)","date":"19/10/2018","location":"La Scuola Open Source (Bari)","hours":"18","teachers":"1","participants":"32","profit":"260"},{"type":"y","title":"Architettura + Design dell'interazione","date":"22/09/2018","location":"La Scuola Open Source (Bari)","hours":"24","teachers":"2","participants":"21","profit":"900"},{"type":"x","title":"Design visual systems: Generative tools for Identities","date":"03/09/2018","location":"La Scuola Open Source (Bari)","hours":"30","teachers":"1","participants":"15","profit":"700"},{"type":"z","title":"Back to Kastrignana","date":"24/08/2018","location":"Castello Baronale di Castrignano de' Greci (LE)","hours":"42","teachers":"1","participants":"20","profit":"-1000"},{"type":"y","title":"LUCity Workshop","date":"27/07/2018","location":"La Scuola Open Source (Bari)","hours":"24","teachers":"1","participants":"21","profit":"0"},{"type":"z","title":"Design Thinking","date":"12/07/2018","location":"La Scuola Open Source (Bari)"
@tezzutezzu
tezzutezzu / .block
Created September 27, 2018 10:33
Apply style object
license: mit
@tezzutezzu
tezzutezzu / index.html
Last active March 10, 2018 15:52
Modifying a force layout
<!DOCTYPE html>
<meta charset="utf-8">
<title>Modifying a force layout v4</title>
<style>
.link {
stroke: #000;
stroke-width: 1.5px;
}
{
"edges": [
{
"weight": 0.3439287065662771,
"target": 1,
"words": {
"most_similar": [
[
"mantenere",
1.0
@tezzutezzu
tezzutezzu / .block
Last active January 3, 2018 14:21
Fixed arcs in a variable circle
license: mit
border: no
scrolling: no
@tezzutezzu
tezzutezzu / index.html
Last active December 22, 2017 23:08
Incremental nested grouped chart
<!DOCTYPE html>
<style>
.container {
fill:none;
stroke: black;
}
</style>
<svg width="960" height="500"></svg>