Шаблон:Graph:Chart: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) Нет описания правки |
Admin (обсуждение | вклад) Нет описания правки |
||
Строка 9: | Строка 9: | ||
"name": "table", | "name": "table", | ||
"values": [ | "values": [ | ||
{" | {"date": 2015,"population": 0}, | ||
{" | {"date": 2016,"population": 175}, | ||
{" | {"date": 2017,"population": 185} | ||
] | ] | ||
}, | }, | ||
Строка 26: | Строка 26: | ||
"range": "width", | "range": "width", | ||
"zero": false, | "zero": false, | ||
"domain": {"data": "table","field": " | "domain": {"data": "table","field": "date"} | ||
}, | }, | ||
{ | { | ||
Строка 48: | Строка 48: | ||
"format": "d", | "format": "d", | ||
"title": "Дата", | "title": "Дата", | ||
"ticks": | "ticks": 12 | ||
}, | }, | ||
{ | { | ||
Строка 79: | Строка 79: | ||
"enter": { | "enter": { | ||
"interpolate": {"value": "monotone"}, | "interpolate": {"value": "monotone"}, | ||
"x": {"scale": "x","field": " | "x": {"scale": "x","field": "date"}, | ||
"y": {"scale": "y","field": "population"}, | "y": {"scale": "y","field": "population"}, | ||
"stroke": {"value": "steelblue"}, | "stroke": {"value": "steelblue"}, | ||
Строка 91: | Строка 91: | ||
"properties": { | "properties": { | ||
"enter": { | "enter": { | ||
"x": {"scale": "x","field": " | "x": {"scale": "x","field": "date"}, | ||
"y": {"scale": "y","field": "population"}, | "y": {"scale": "y","field": "population"}, | ||
"stroke": {"value": "steelblue"}, | "stroke": {"value": "steelblue"}, | ||
Строка 106: | Строка 106: | ||
{ | { | ||
"type": "aggregate", | "type": "aggregate", | ||
"summarize": {" | "summarize": {"date": ["min","max"]} | ||
} | } | ||
] | ] |