Format: Ro/2: Diferență între versiuni
De la alegeri.md
Oleg (Discuție | contribuții) |
Oleg (Discuție | contribuții) |
||
Linia 21: | Linia 21: | ||
], | ], | ||
// | // | ||
− | + | "signals": [ | |
− | + | { | |
− | + | "name": "tooltip", | |
− | + | "init": {}, | |
− | + | "streams": [ | |
− | + | {"type": "rect:mouseover", "expr": "datum"}, | |
− | + | {"type": "rect:mouseout", "expr": "{}"} | |
− | + | ] | |
− | + | } | |
− | + | ], | |
// | // | ||
− | + | "predicates": [ | |
− | + | { | |
− | + | "name": "tooltip", "type": "==", | |
− | + | "operands": [{"signal": "tooltip._id"}, {"arg": "id"}] | |
− | + | } | |
− | + | ], | |
// | // | ||
"scales": [ | "scales": [ | ||
Linia 67: | Linia 67: | ||
"ticks": {"stroke": {"value": "#aaa"}}, | "ticks": {"stroke": {"value": "#aaa"}}, | ||
"labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | "labels": {"fill": {"value": "#666"}, "fontSize": {"value": 12}}, | ||
− | "axis": {"stroke": {"value": "# | + | "axis": {"stroke": {"value": "#ccc"}} |
} | } | ||
}, | }, | ||
Linia 73: | Linia 73: | ||
"type": "y", | "type": "y", | ||
"scale": "y", | "scale": "y", | ||
− | |||
"ticks": 5, // кол-во значений на оси y | "ticks": 5, // кол-во значений на оси y | ||
− | // | + | // "grid": true, |
− | |||
− | |||
// "values": [10, 30, 50, 70, 110], | // "values": [10, 30, 50, 70, 110], | ||
"properties": | "properties": | ||
Linia 97: | Linia 94: | ||
"x": {"field": {"group": "x"}}, | "x": {"field": {"group": "x"}}, | ||
"x2": {"field": {"group": "width"}}, | "x2": {"field": {"group": "width"}}, | ||
− | "y": {"scale": "y", "value": 55}, "stroke": {"value": "# | + | "y": {"scale": "y", "value": 55}, "stroke": {"value": "#bababa"}, |
− | "strokeWidth": {"value": | + | "strokeWidth": {"value": 1}, "strokeDash": {"value": [5]} |
} | } | ||
} | } |
Versiunea de la data 2 august 2020 16:56
text