Gebruiker:Kees Langeveld/Graph

Uit Christipedia

Aardbevingen Staafdiagram:

<graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"padding":0.2,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":"category10"}],"version":2,"marks":[{"type":"rect","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"y2":{"scale":"y","value":0},"width":{"scale":"x","offset":-1,"band":true},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":150,"axes":[{"scale":"x","type":"x","title":"Jaren"},{"scale":"y","type":"y","title":"Aantal","format":"d"}],"data":[{"format":{"parse":{"y":"integer","x":"string"},"type":"json"},"name":"chart","values":[{"y":738,"series":"y","x":"1950-1954"},{"y":690,"series":"y","x":"1955-1959"},{"y":682,"series":"y","x":"1960-1954"},{"y":673,"series":"y","x":"1965-1969"},{"y":650,"series":"y","x":"1970-1974"},{"y":491,"series":"y","x":"1975-1979"},{"y":545,"series":"y","x":"1980-1984"},{"y":739,"series":"y","x":"1985-1989"},{"y":777,"series":"y","x":"1990-1994"},{"y":758,"series":"y","x":"1995-1999"},{"y":748,"series":"y","x":"2000-2004"},{"y":842,"series":"y","x":"2005-2009"},{"y":813,"series":"y","x":"2010-2014"}]}],"width":800}</graph>