index.html 2.06 KB
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1
2
3
<html>
  <head>

J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
4
    <script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
5
    <link rel="import" href="imports.html"></link>
6
7
8
9
    <link href='//cdn.jsdelivr.net/yasqe/2.6.2/yasqe.min.css' rel='stylesheet' type='text/css'/>
    <link href='//cdn.jsdelivr.net/yasr/2.6.1/yasr.min.css' rel='stylesheet' type='text/css'/>
    <script src='//cdn.jsdelivr.net/yasqe/2.6.2/yasqe.bundled.min.js'></script>
    <script src='//cdn.jsdelivr.net/yasr/2.6.1/yasr.bundled.min.js'></script>
Alberto Pascual's avatar
Alberto Pascual committed
10
11
12
13
14
    <style>
    .info-box-icon.number-chart iron-icon.number-chart {
        top: 26%;
    }
    </style>
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
15
16
17
18
19
20
  </head>
  
  <body>
    <template is="dom-bind">

    <elastic-client 
Alberto Pascual's avatar
new viz    
Alberto Pascual committed
21
      config='{"host": "krusti.gsi.dit.upm.es:19200"}' 
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
22
23
24
25
      client="{{client}}"
      cluster-status="{{myStatus}}">
    </elastic-client>

militarpancho's avatar
militarpancho committed
26
27
    <dashboard-reddit
      client="{{client}}"></dashboard-reddit>
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
    <!-- <button id="databutton" onclick="changedata()">Click to change data</button> -->
    <script>
      var datas =[
        {"hits": {
                "total": 20000
            },
            "aggregations": {
                "category": {
                    "buckets": [
                        {"key": "myObject", "doc_count": 3000},
                        {"key": "otherObject", "doc_count": 1000}
                    ]
                }
            }
        },
        {"hits": {
                "total": 30000
            },
            "aggregations": {
                "category": {
                    "buckets": [
                        {"key": "myObject", "doc_count": 1000},
                        {"key": "otherObject", "doc_count": 4000}
                    ]
                }
            }
        }];
      var numdata = 0;
      <!-- var nc1 = document.getElementById('demo-chart1'); -->
      <!-- var nc2 = document.getElementById('demo-chart2'); -->
      <!-- nc1.data = nc2.data = datas[0]; -->
      <!-- function changedata(){ -->
      <!--   numdata += 1; -->
      <!-- nc1.data = nc2.data = datas[numdata%2]; -->
      <!-- } -->
    </script>
    </template>
  </body>
</html>