This site is no longer actively maintained. It exists for historical purposes as an example of Phabricator integration and Lua scripting.

Difference between revisions of "User:Ccicalese"

From cpt
No edit summary
No edit summary
Line 1: Line 1:
<!--
{{#invoke:Chart|chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
{{#invoke:Chart|chart|width=600|height=100|xAxisTitle=X|yAxisTitle=Y
  |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
  |type=rect|x=1,2,3,4,5,6,7,8|y=10,12,6,14,2,10,7,9}}
 
-->


<graph>
<graph>
{"axes":[{"scale":"x","title":"X","grid":false,"type":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}},{"scale":"y","title":"Y","grid":false,"type":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}}],"width":600,"data":[{"format":{"type":"json","parse":{"y":"integer","x":"integer"}},"name":"chart","values":[{"y":10,"x":1,"series":"y"},{"y":12,"x":2,"series":"y"},{"y":6,"x":3,"series":"y"},{"y":14,"x":4,"series":"y"},{"y":2,"x":5,"series":"y"},{"y":10,"x":6,"series":"y"},{"y":7,"x":7,"series":"y"},{"y":9,"x":8,"series":"y"}]}],"marks":[{"type":"rect","from":{"data":"chart"},"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"field":"series","scale":"color"}},"enter":{"x":{"field":"x","scale":"x"},"y":{"field":"y","scale":"y"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"field":"series","scale":"color"},"y2":{"value":0,"scale":"y"}}}}],"legends":[],"scales":[{"domain":{"data":"chart","field":"x"},"padding":0.2,"nice":true,"type":"ordinal","zero":false,"name":"x","range":"width"},{"domain":{"data":"chart","field":"y"},"nice":true,"type":"linear","zero":true,"name":"y","range":"height"},{"type":"ordinal","domain":{"data":"chart","field":"series"},"name":"color","range":"category10"}],"height":100,"version":2}
{"axes":[{"scale":"x","title":"X","grid":false,"type":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}},{"scale":"y","title":"Y","grid":false,"type":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}}],"width":600,"data":[{"format":{"type":"json","parse":{"y":"integer","x":"integer"}},"name":"chart","values":[{"y":10,"x":1,"series":"y"},{"y":12,"x":2,"series":"y"},{"y":6,"x":3,"series":"y"},{"y":14,"x":4,"series":"y"},{"y":2,"x":5,"series":"y"},{"y":10,"x":6,"series":"y"},{"y":7,"x":7,"series":"y"},{"y":9,"x":8,"series":"y"}]}],"marks":[{"type":"rect","from":{"data":"chart"},"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"field":"series","scale":"color"}},"enter":{"x":{"field":"x","scale":"x"},"y":{"field":"y","scale":"y"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"field":"series","scale":"color"},"y2":{"value":0,"scale":"y"}}}}],"legends":[],"scales":[{"domain":{"data":"chart","field":"x"},"padding":0.2,"nice":true,"type":"ordinal","zero":false,"name":"x","range":"width"},{"domain":{"data":"chart","field":"y"},"nice":true,"type":"linear","zero":true,"name":"y","range":"height"},{"type":"ordinal","domain":{"data":"chart","field":"series"},"name":"color","range":"category10"}],"height":100,"version":2}
</graph>
</graph>

Revision as of 20:21, 27 November 2019


<graph> {"axes":[{"scale":"x","title":"X","grid":false,"type":"x","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}},{"scale":"y","title":"Y","grid":false,"type":"y","format":"d","properties":{"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}},"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"grid":{"stroke":{"value":"#54595d"}}}}],"width":600,"data":[{"format":{"type":"json","parse":{"y":"integer","x":"integer"}},"name":"chart","values":[{"y":10,"x":1,"series":"y"},{"y":12,"x":2,"series":"y"},{"y":6,"x":3,"series":"y"},{"y":14,"x":4,"series":"y"},{"y":2,"x":5,"series":"y"},{"y":10,"x":6,"series":"y"},{"y":7,"x":7,"series":"y"},{"y":9,"x":8,"series":"y"}]}],"marks":[{"type":"rect","from":{"data":"chart"},"properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"field":"series","scale":"color"}},"enter":{"x":{"field":"x","scale":"x"},"y":{"field":"y","scale":"y"},"width":{"scale":"x","offset":-1,"band":true},"fill":{"field":"series","scale":"color"},"y2":{"value":0,"scale":"y"}}}}],"legends":[],"scales":[{"domain":{"data":"chart","field":"x"},"padding":0.2,"nice":true,"type":"ordinal","zero":false,"name":"x","range":"width"},{"domain":{"data":"chart","field":"y"},"nice":true,"type":"linear","zero":true,"name":"y","range":"height"},{"type":"ordinal","domain":{"data":"chart","field":"series"},"name":"color","range":"category10"}],"height":100,"version":2} </graph>