Template:Bare URLs chart
Jump to navigation
Jump to search
<graph> {
"version": 2, "width": 800, "height": 400,
"padding": {"top": 10, "left": 80, "bottom": 30, "right": 10},
"data": [{
"name": "articles-with-bare-urls",
"url": "wikiraw:///Template:Bare URLs chart/data",
"format": {"type": "json", "parse": {"value":"number", "date":"date"} }
}],
"scales": [
{
"name": "x",
"type": "time",
"range": "width",
"domain": {"data": "articles-with-bare-urls", "field": "date"},
},
{
"name": "y",
"type": "linear",
"range": "height",
"nice": true,
"domain": {"data": "articles-with-bare-urls", "field": "value"},
}
],
"axes": [
{
"type": "x",
"scale": "x",
"properties": {
"title": {
"fill": { "value": "#54595d" }
},
"labels": {
"fill": { "value": "#54595d" }
},
"ticks": {
"stroke": { "value": "#54595d" }
},
"axis": {
"stroke": { "value": "#54595d" },
"strokeWidth": { "value": "2" },
},
},
},
{
"type": "y",
"scale": "y",
"grid": true,
"title": "# articles with bare URLs",
"properties": {
"title": {
"fill": { "value": "#54595d" }
},
"labels": {
"fill": { "value": "#54595d" }
},
"ticks": {
"stroke": { "value": "#54595d" }
},
"axis": {
"stroke": { "value": "#54595d" },
"strokeWidth": { "value": "2" },
},
},
},
],
"marks": [
{
"type": "line",
"from": {"data": "articles-with-bare-urls"},
"properties": {
"enter": {
"x": {"scale": "x", "field": "date"},
"y": {"scale": "y", "field": "value"},
"y2": {"scale": "y", "value": 0},
"stroke": {"value": "steelblue"},
"strokeWidth": {"value": 3}
}
}
}
]
}
</graph>