Projekt

Obecné

Profil

« Předchozí | Další » 

Revize ae8c1b88

Přidáno uživatelem Štěpán Červenka před téměř 4 roky(ů)

Re #8409 - Prozkoumat možnosti interakce s grafy v knihovně Vega

Zobrazit rozdíly:

src/vega-analyze/interrupted-analyze/final-pointchart.json
4 4
  "height": 200,
5 5
  "padding": 5,
6 6

  
7
  "signals": [
8
    { "name": "shape", "value": "circle",
9
      "bind": {"input": "select", "options": [
10
        "arrow", "circle", "square", "cross", "diamond", "triangle",
11
        "triangle-up", "triangle-down", "triangle-right", "triangle-left",
12
        "wedge", "stroke",
13
        "M-1,-1H1V1H-1Z",
14
        "M0,.5L.6,.8L.5,.1L1,-.3L.3,-.4L0,-1L-.3,-.4L-1,-.3L-.5,.1L-.6,.8L0,.5Z"
15
      ]
16
      }
17
    }
18
  ],
19

  
7 20
  "data": [
8 21
    {
9 22
      "name": "table",
10
      "url": "data.json",
23
      "url": "data2.json",
11 24
      "transform": [
12 25
        {
13 26
          "type": "formula",
......
45 58
      "from": {"data":"table"},
46 59
      "encode": {
47 60
        "enter": {
48
          "shape": {"value": "circle"},
49 61
          "size": {"value": 10},
50 62
          "x": {"scale": "xscale", "field": "dateTime"},
51 63
          "y": {"scale": "yscale", "field": "sensors[0].value"},
52 64
          "color": {"value": "both"},
53 65
          "strokeWidth": {"value": 1}
66
        },
67
        "update": {
68
          "shape": {"signal": "shape"}
54 69
        }
55 70
      }
56 71
    }

Také k dispozici: Unified diff