From 6b28dcb8caa34f50a9f95e64948d6e2f697b34a7 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 6 Sep 2019 23:27:19 +0200 Subject: [PATCH] another json example with multiple columns Also found this API with the same results (and more), but needs separate queries which is slow and unwanted so unsuitable as a fun snippet: curl -s https://pokeapi.co/api/v2/pokemon/{1..151} | jq -r '[.height/10,.id,.name|tostring] | join(" ")' | graph --- graph | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/graph b/graph index 373bbfd..8bf473d 100755 --- a/graph +++ b/graph @@ -254,6 +254,11 @@ Movies per year from prepared JSON data: curl https://github.com/prust/wikipedia-movie-data/raw/master/movies.json | jq '.[].year' | uniq -c | graph +Pokémon height comparison: + + curl https://github.com/Biuni/PokemonGO-Pokedex/raw/master/pokedex.json | + jq -r '.pokemon[] | [.height,.num,.name] | join(" ")' | graph + Git statistics, such commit count by year: git log --pretty=%ci | cut -b-4 | uniq -c | graph -- 2.30.0