Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 66c042f1

Přidáno uživatelem Štěpán Červenka před více než 3 roky(ů)

Re #8775 - Agregovat grafy se stejným typem sensoru

  • bugs fixed
  • sensors and units sending request to new methods
  • ready for observation data

Zobrazit rozdíly:

src/vega/base/default.json
1 1
{
2 2
  "data": [
3
    {
4
      "name": "legend",
5
      "values": null
6
    },
3 7
    {
4 8
      "name": "source",
5 9
      "values": null
......
43 47
        },
44 48
        {
45 49
          "type": "formula",
46
          "expr":"time(datum[\"dateMinTemp\"]) - (timeStep * 500)",
50
          "expr":"time(datum[\"dateMinTemp\"]) - timeWindow",
47 51
          "as": "dateMin"
48 52
        },
49 53
        {
50 54
          "type": "formula",
51
          "expr":"time(datum[\"dateMaxTemp\"]) + (timeStep * 500)",
55
          "expr":"time(datum[\"dateMaxTemp\"]) + timeWindow",
52 56
          "as": "dateMax"
53 57
        },
54 58
        {
......
61 65
  ],
62 66

  
63 67
  "signals": [
64
    {
65
      "name": "timeStep",
66
      "value": null
67
    },
68 68
    {
69 69
      "name": "detailDomain"
70 70
    }
......
87 87
          "name": "xDetail",
88 88
          "type": "time",
89 89
          "range": "width",
90
          "domain": {"data": "table", "field": "dateTime"},
90
          "domain": {
91
          "data": "range",
92
          "fields": [
93
            "dateMin",
94
            "dateMax"
95
          ]
96
        },
91 97
          "domainRaw": {"signal": "detailDomain"}
92 98
        }
93 99
      ],
......
124 130
      "encode": {
125 131
        "enter": {
126 132
          "x": {"value": 0},
127
          "y": {"value": 430},
128
          "height": {"value": 70},
129
          "width": {"value": 720},
133
          "y": {"signal":  "overviewHeightStart"},
134
          "height": {"signal": "overviewHeight"},
135
          "width": {"signal":  "width"},
130 136
          "fill": {"value": "transparent"}
131 137
        }
132 138
      },

Také k dispozici: Unified diff