User:Cameron446:/sandbox Graph Charts: Difference between revisions

From Habbox Wiki
Jump to navigation Jump to search
Cameron446: (talk | contribs)
No edit summary
Cameron446: (talk | contribs)
No edit summary
Line 10: Line 10:
|yAxisTitle=Money Raised  
|yAxisTitle=Money Raised  
|yAxisMax=600.00
|yAxisMax=600.00
|type=line
|type=rect
|colors=#73dbff
|colors=#73dbff
|x=2006-2009,,,2010-2013,2014-2017,2020-2021
|x=2006-2009,,,2010-2013,2014-2017,2020-2021

Revision as of 22:58, 11 October 2021

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":500,"series":"y","x":"2010-2013"},{"y":400,"series":"y","x":"2014-2017"},{"y":300,"series":"y","x":"2020-2021"}]}],"width":1000}</graph>