Format: Ro: Diferență între versiuni
De la alegeri.md
Oleg (Discuție | contribuții) |
Oleg (Discuție | contribuții) |
||
Linia 4: | Linia 4: | ||
"height": 200, | "height": 200, | ||
"width": 915, | "width": 915, | ||
− | "padding": {"top": 10, "left": 30, "bottom": 30, "right": | + | "padding": {"top": 10, "left": 30, "bottom": 30, "right": 30}, |
// | // | ||
"data": [ | "data": [ | ||
Linia 10: | Linia 10: | ||
"name": "table", | "name": "table", | ||
"values": [ | "values": [ | ||
− | {"x": | + | {"x": "A", "y": 99.12}, |
− | {"x": | + | {"x": "B", "y": 55.04}, |
− | {"x": | + | {"x": "C", "y": 43}, |
− | {"x": | + | {"x": "D", "y": 91}, |
− | {"x": | + | {"x": "E", "y": 81}, |
] | ] | ||
} | } | ||
], | ], | ||
− | |||
// | // | ||
"scales": [ | "scales": [ | ||
Linia 27: | Linia 26: | ||
"padding": 0.5, | "padding": 0.5, | ||
"round": true, | "round": true, | ||
− | + | "domain": {"data": "table", "field": "x"} | |
− | + | }, | |
− | + | { | |
− | + | "name": "y", | |
− | + | "type": "linear", | |
− | + | "range": "height", | |
− | + | "nice": true, | |
− | + | "domain": {"data": "table", "field": "y"} | |
− | + | } | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
], | ], | ||
+ | // | ||
"axes": [ | "axes": [ | ||
+ | { | ||
+ | "type": "x", | ||
+ | "scale": "x", | ||
+ | "values": ["A", "C"], | ||
+ | "properties": | ||
{ | { | ||
− | " | + | "ticks": {"stroke": {"value": "#999"}}, |
− | + | "labels": {"fill": {"value": "#666"}}, | |
− | + | "axis": {"stroke": {"value": "#ccc"}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | " | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | }, | ||
+ | { | ||
+ | "type": "y", | ||
+ | "scale": "y", | ||
+ | // "offset": 5, // отступ от графика | ||
+ | "ticks": 5, // кол-во значений на оси y | ||
+ | // "tickSize": 2, | ||
+ | // "tickSizeEnd": 10, | ||
+ | "grid": true, | ||
+ | "values": [10, 30, 50, 70, 100], | ||
+ | "properties": { "axis": { | ||
+ | "stroke": {"value": "#ccc"}, | ||
+ | "strokeWidth": 1, | ||
+ | }, | ||
+ | "ticks": { | ||
+ | "stroke": {"value": "#ccc"}, | ||
+ | }, | ||
+ | } | ||
+ | } | ||
], | ], | ||
+ | |||
"marks": [ | "marks": [ | ||
{ | { |
Versiunea de la data 1 august 2020 11:36
18293 / 2018 | 18793 / 2018 | 147 / 2019 |