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

From Habbox Wiki
Jump to navigation Jump to search
Spirit (talk | contribs)
mNo edit summary
Spirit (talk | contribs)
No edit summary
Line 24: Line 24:
  | legend=Money Raised By Year
  | legend=Money Raised By Year
  | x=2006,2007,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019
  | x=2006,2007,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019
  | 600.00,,,500.00,400.00,300.00,200.00,100.00,00.00
  | y=600.00,,,500.00,400.00,300.00,200.00,100.00,00.00
}}
}}


[[Category:Sandbox Templates]]
[[Category:Sandbox Templates]]

Revision as of 23:27, 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>



<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"}]}}],"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>