Шаблон:График просмотра страниц: различия между версиями

обновление с mw:Template:Graph:PageViews
(обновлено с mw:Template:Graph:PageViews)
(обновление с mw:Template:Graph:PageViews)
 
// Simple axis with horizontal grid lines
"axes": [
{
{"type": "x", "scale": "x", "ticks": 5},
{"type": "y", "scaletype": "yx", "ticks": 5, "grid": true}
{"type": "x", "scale": "x", "ticks": 5},
"ticks": 5,
"properties": {
"ticks": {"stroke": {"value": "#54595d"} },
"labels": {"fill": {"value": "#54595d"} },
"axis": {"stroke": {"value": "#54595d"}, "strokeWidth": {"value": 2} }
}
},
{
"type": "y",
"scale": "y",
"ticks": 5,
"grid": true,
"properties": {
"ticks": {"stroke": {"value": "#54595d"} },
"labels": {"fill": {"value": "#54595d"} },
"grid": {"stroke": {"value": "#54595d"}, "strokeWidth": {"value": 2} },
"axis": {"stroke": {"value": "#54595d"}, "strokeWidth": {"value": 2} }
}
}
],
 
"x": {"scale": "x","field": "date"},
"y": {"scale": "y","field": "views"},
"stroke": {"value": "{{{color|#00f36c}}}"},
"strokeWidth": {"value": 3},
"interpolate": {"value": "{{{interpolate|monotonestep-after}}}"}
}
}
"y": {"scale": "y","value": 0},
"y2": {"scale": "y","field": "views"},
"fill": {"value": "{{{color|#00f36c}}}"},
"fillOpacity": {"value": 0.35},
"interpolate": {"value": "{{{interpolate|monotonestep-after}}}"}
}
}