User:Robertinventor/charts-test

From Astrobiology Wiki
Jump to navigation Jump to search

Needs the Graphs extension enabled for the wiki, also the template {{Graph:Chart}}, and the module Module:Graph. Used this graph for my article Growth in web traffic to our Encyclopedia of Buddhism as we don't have the extension enabled in the Encyclopedia of Buddhism yet.

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"range":"width","nice":true},{"type":"linear","name":"y","domain":{"data":"chart","field":"y"},"zero":false,"range":"height","nice":true},{"domain":{"data":"chart","field":"series"},"type":"ordinal","name":"color","range":["blue"]}],"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"}}],"height":480,"axes":[{"scale":"x","type":"x","title":"Months since January 2015 (Encyclopedia of Buddhism)","format":"d"},{"scale":"y","type":"y","title":"Log of unique vistors per month","format":"d"}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":54,"series":"y","x":33},{"y":56,"series":"y","x":34},{"y":78,"series":"y","x":35},{"y":44,"series":"y","x":36},{"y":161,"series":"y","x":37},{"y":122,"series":"y","x":38},{"y":127,"series":"y","x":39},{"y":153,"series":"y","x":40},{"y":312,"series":"y","x":41},{"y":311,"series":"y","x":42},{"y":478,"series":"y","x":43},{"y":642,"series":"y","x":44}]}],"width":640}</graph>

<graph>{"legends":[],"scales":[{"type":"linear","name":"x","domain":{"data":"chart","field":"x"},"zero":false,"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":["blue"]}],"version":2,"marks":[{"type":"area","properties":{"hover":{"fill":{"value":"red"}},"update":{"fill":{"scale":"color","field":"series"}},"enter":{"y":{"scale":"y","field":"y"},"interpolate":{"value":"monotone"},"y2":{"scale":"y","value":0},"x":{"scale":"x","field":"x"},"fill":{"scale":"color","field":"series"}}},"from":{"data":"chart"}}],"height":480,"axes":[{"scale":"x","type":"x","title":"Months since January 2015 (Encyclopedia of Buddhism)","format":"d"},{"scale":"y","type":"y","title":"Unique vistors per month","format":"d"}],"data":[{"format":{"parse":{"y":"integer","x":"integer"},"type":"json"},"name":"chart","values":[{"y":0,"series":"y1","x":1},{"y":0,"series":"y1","x":2},{"y":23,"series":"y1","x":3},{"y":51,"series":"y1","x":4},{"y":43,"series":"y1","x":5},{"y":54,"series":"y1","x":6},{"y":42,"series":"y1","x":7},{"y":100,"series":"y1","x":8},{"y":117,"series":"y1","x":9},{"y":121,"series":"y1","x":10},{"y":125,"series":"y1","x":11},{"y":98,"series":"y1","x":12},{"y":123,"series":"y1","x":13},{"y":102,"series":"y1","x":14},{"y":97,"series":"y1","x":15},{"y":98,"series":"y1","x":16},{"y":78,"series":"y1","x":17},{"y":82,"series":"y1","x":18},{"y":62,"series":"y1","x":19},{"y":75,"series":"y1","x":20},{"y":83,"series":"y1","x":21},{"y":95,"series":"y1","x":22},{"y":100,"series":"y1","x":23},{"y":94,"series":"y1","x":24},{"y":84,"series":"y1","x":25},{"y":106,"series":"y1","x":26},{"y":95,"series":"y1","x":27},{"y":75,"series":"y1","x":28},{"y":30,"series":"y1","x":29},{"y":72,"series":"y1","x":30},{"y":60,"series":"y1","x":31},{"y":56,"series":"y1","x":32},{"y":54,"series":"y1","x":33},{"y":56,"series":"y1","x":34},{"y":78,"series":"y1","x":35},{"y":44,"series":"y1","x":36},{"y":161,"series":"y1","x":37},{"y":122,"series":"y1","x":38},{"y":127,"series":"y1","x":39},{"y":153,"series":"y1","x":40},{"y":312,"series":"y1","x":41},{"y":311,"series":"y1","x":42},{"y":478,"series":"y1","x":43},{"y":642,"series":"y1","x":44}]}],"width":640}</graph>

Cookies help us deliver our services. By using our services, you agree to our use of cookies.