User:Jason.nlw: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
{{Special:Search}} | {{Special:Search}} | ||
== Example == <!--T:11--> | |||
</translate> | |||
<mapframe text="Map of [[wikipedia:London|London]]" latitude="51.505" longitude="-0.126" zoom="8" width="300" height="300" align="left"> | |||
{ | |||
"type": "FeatureCollection", | |||
"features": [ | |||
{ | |||
"type": "Feature", | |||
"properties": { | |||
"title": "[[wikipedia:London|London]] is the capital of [[wikipedia:United Kingdom|United Kingdom]]", | |||
"description": "[[File:Houses_of_Parliament.jpg|Houses of Parliament|280px]]", | |||
"marker-symbol": "town-hall", | |||
"marker-size": "large", | |||
"marker-color": "f00" | |||
}, | |||
"geometry": { | |||
"type": "Point", | |||
"coordinates": [ | |||
-0.1226806780323386, | |||
51.515268213580114 | |||
] | |||
} | |||
} | |||
] | |||
}</mapframe> | |||
<br style="clear: both;" clear="all" /> | |||
<translate> |
Revision as of 15:13, 10 July 2024
{{#babel:en|cy}}
<inputbox> bgcolor=transparent type=fulltext prefix=User:Jason.nlw width=50 searchbuttonlabel=Search in this page hierarchy </inputbox>
<templatestyles src="Graph:Chart/styles.css"></templatestyles><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":100,"axes":[{"type":"x","title":"X","scale":"x","format":"d","properties":{"axis":{"strokeWidth":{"value":2},"stroke":{"value":"#54595d"}},"ticks":{"stroke":{"value":"#54595d"}},"title":{"fill":{"value":"#54595d"}},"labels":{"fill":{"value":"#54595d"}}},"grid":false},{"type":"y","title":"Y","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":false}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":10,"series":"y","x":1},{"y":12,"series":"y","x":2},{"y":6,"series":"y","x":3},{"y":14,"series":"y","x":4},{"y":2,"series":"y","x":5},{"y":10,"series":"y","x":6},{"y":7,"series":"y","x":7},{"y":9,"series":"y","x":8}]}],"width":600}</graph>
Example
</translate>
<translate>