Format: Ro/2: Diferență între versiuni

De la alegeri.md
Salt la: navigare, căutare
Linia 21: Linia 21:
 
],
 
],
 
//
 
//
  "signals": [
+
"signals": [
    {
+
{
      "name": "tooltip",
+
"name": "tooltip",
      "init": {},
+
"init": {},
      "streams": [
+
"streams": [
        {"type": "rect:mouseover", "expr": "datum"},
+
{"type": "rect:mouseover", "expr": "datum"},
        {"type": "rect:mouseout", "expr": "{}"}
+
{"type": "rect:mouseout", "expr": "{}"}
      ]
+
]
    }
+
}
  ],
+
],
 
//
 
//
  "predicates": [
+
"predicates": [
    {
+
{
      "name": "tooltip", "type": "==",  
+
"name": "tooltip", "type": "==",  
      "operands": [{"signal": "tooltip._id"}, {"arg": "id"}]
+
"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": "#efefef"}}
+
"axis": {"stroke": {"value": "#ccc"}}
 
}
 
}
 
},
 
},
Linia 73: Linia 73:
 
"type": "y",
 
"type": "y",
 
"scale": "y",
 
"scale": "y",
// "offset": 5, // отступ от графика
 
 
"ticks": 5, // кол-во значений на оси y
 
"ticks": 5, // кол-во значений на оси y
// "tickSize": 2,
+
// "grid": true,
// "tickSizeEnd": 10,
 
"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": "#999"},
+
"y": {"scale": "y", "value": 55}, "stroke": {"value": "#bababa"},
"strokeWidth": {"value": 0.5}, "strokeDash": {"value": [5]}
+
"strokeWidth": {"value": 1}, "strokeDash": {"value": [5]}
 
}
 
}
 
}
 
}

Versiunea de la data 2 august 2020 16:56














text