User:Cameron446:/sandbox Graph Charts

From Habbox Wiki
Jump to navigation Jump to search

Habbox Contributions To Charity <graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"padding":0.2,"range":"width","nice":true},{"clamp":true,"type":"linear","name":"y","domainMax":900,"domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#73dbff"]}],"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":250,"axes":[{"type":"x","title":"Year","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"align":{"value":"left"},"angle":{"value":45},"fill":{"value":"#54595d"}}},"grid":true},{"type":"y","title":"Money Raised (£)","scale":"y","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"number","x":"integer"},"type":"json"},"name":"chart","values":[{"y":360.54,"series":"y","x":2006},{"y":879,"series":"y","x":2007},{"y":466.72,"series":"y","x":2009},{"y":581,"series":"y","x":2010},{"y":528,"series":"y","x":2011},{"y":600,"series":"y","x":2012},{"y":407.66,"series":"y","x":2013},{"y":375,"series":"y","x":2014},{"y":290.03,"series":"y","x":2015},{"y":101.08,"series":"y","x":2016},{"y":86.84,"series":"y","x":2017},{"y":55,"series":"y","x":2019}]}],"width":1000}</graph>


Habbox Contributions To Charity <graph>{"legends":[],"scales":[{"type":"ordinal","name":"x","zero":false,"domain":{"data":"chart","field":"x"},"padding":0.2,"range":"width","nice":true},{"clamp":true,"type":"linear","name":"y","domainMax":600,"domain":{"data":"chart","field":"y"},"zero":true,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#73dbff"]}],"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":250,"axes":[{"type":"x","title":"Year","scale":"x","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"align":{"value":"left"},"angle":{"value":45},"fill":{"value":"#54595d"}}},"grid":true},{"type":"y","title":"Money Raised","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"integer","x":"string"},"type":"json"},"name":"chart","values":[{"y":600,"series":"y","x":"2006-2009"},{"y":879,"series":"y","x":"2010-2013"},{"y":500,"series":"y","x":"2014-2017"},{"y":400,"series":"y","x":"2020-2021"}]}],"width":1000}</graph>


Habbox Contributions To Charity <graph>{"legends":[{"properties":{"legend":{"y":{"value":-100}}},"stroke":"color","title":"Money Raised By Year","fill":"color"}],"scales":[{"domain":{"data":"chart","field":"x"},"type":"ordinal","name":"color","range":"category20"}],"version":2,"marks":[{"type":"arc","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"x"}},"enter":{"endAngle":{"field":"layout_end"},"innerRadius":{"value":0},"outerRadius":{"value":100},"startAngle":{"field":"layout_start"},"stroke":{"value":"white"},"fill":{"scale":"color","field":"x"},"strokeWidth":{"value":1}}},"from":{"data":"chart","transform":[{"type":"pie","field":"y"}]}},{"type":"text","properties":{"enter":{"theta":{"field":"layout_mid"},"baseline":{"value":"top"},"align":{"value":"center"},"text":{"field":"y"},"y":{"group":"height","mult":0.5},"x":{"group":"width","mult":0.5},"fontSize":{"value":10},"angle":{"mult":57.29577951308232,"field":"layout_mid"},"radius":{"offset":-4,"value":100},"fill":{"value":"white"}}},"from":{"data":"chart","transform":[{"field":"y","type":"pie"}]}}],"height":250,"axes":[],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":600,"x":2006},{"x":2007},{"x":2009},{"y":500,"x":2010},{"y":400,"x":2011},{"y":300,"x":2012},{"y":200,"x":2013},{"y":100,"x":2014},{"y":0,"x":2015},{"x":2016},{"x":2017},{"x":2018},{"x":2019}]}],"width":100}</graph>


Habbox Contributions To Charity <graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"clamp":true,"type":"linear","name":"y","domainMax":600,"domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["#ff9218"]}],"version":2,"marks":[{"type":"line","properties":{"hover":{"stroke":{"value":"red"}},"update":{"stroke":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"stroke":{"scale":"color","field":"series"},"strokeWidth":{"value":2.5}}},"from":{"data":"chart"}},{"type":"symbol","properties":{"enter":{"y":{"scale":"y","field":"y"},"x":{"scale":"x","field":"x"},"size":{"value":49},"shape":"circle","fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":250,"axes":[{"type":"x","title":"year","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"align":{"value":"left"},"angle":{"value":45},"fill":{"value":"#54595d"}}},"grid":true},{"type":"y","title":"Highest Raised for Charities","scale":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":true}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":600,"series":"y","x":2006},{"y":500,"series":"y","x":2010},{"y":400,"series":"y","x":2011},{"y":300,"series":"y","x":2012},{"y":200,"series":"y","x":2013},{"y":100,"series":"y","x":2014},{"y":0,"series":"y","x":2015}]}],"width":1000}</graph>