Потребител:Boicno5367/Пясъчник: Разлика между версии

Изтрито е съдържание Добавено е съдържание
Нова страница: „{{Graph:Chart|width=400|height=100|xAxisTitle=име на x Оста|yAxisTitle=име y Oста|type=rect|x=1, 2, 3, 4, 5, 6, 7, 8|y=10, 12, 6, 14, 2, 10, 7, 9}}“
 
прехвърлям упражнението тук
Ред 1:
=== Заразени по възраст ===
{{Graph:Chart|width=400|height=100|xAxisTitle=име на x Оста|yAxisTitle=име y Oста|type=rect|x=1, 2, 3, 4, 5, 6, 7, 8|y=10, 12, 6, 14, 2, 10, 7, 9}}
<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": 3,
"marks": [
{
"type": "rect",
"properties": {
"hover": {
"fill": {
"value": "10"
}
},
"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",
"value": "steelblue"
}
}
},
"from": {
"data": "chart"
}
},
{
"type": "text",
"properties": {
"enter": {
"baseline": {
"value": "2"
},
"align": {
"value": "left"
},
"text": {
"field": "y"
},
"y": {
"scale": "y",
"offset": -4,
"field": "y"
},
"dy": {
"scale": "x",
"mult": 0.5,
"band": true
},
"x": {
"scale": "x",
"field": "x"
},
"angle": {
"value": -90
},
"fontSize": {
"value": 11
},
"fill": {
"value": "#54595d"
}
}
},
"from": {
"data": "chart"
}
}
],
"height": 200,
"axes": [
{
"type": "x",
"scale": "x",
"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
},
{
"type": "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": 2439,
"series": 1,
"x": 1
},
{
"y": 4006,
"series": 1,
"x": 2
},
{
"y": 5611,
"series": 1,
"x": 3
},
{
"y": 6261,
"series": 1,
"x": 4
},
{
"y": 6325,
"series": 1,
"x": 5
},
{
"y": 4971,
"series": 1,
"x": 6
},
{
"y": 2675,
"series": 1,
"x": 7
},
{
"y": 954,
"series": 1,
"x": 8
},
{
"y": 93,
"series": 1,
"x": 9
}
]
}
],
"width": 400
}</graph>
 
=== <ref>1 – 0-19
 
2 – 20-29
 
3 – 30-39
 
4 – 40-49
 
5 – 50-59
 
6 – 60-69
 
7 – 70-79
 
8 – 80-89
 
9 – 90+</ref> - възраст според цифрата ===