Skip to content

Commit fe039c2

Browse files
committed
test fix
1 parent 34db287 commit fe039c2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

dist/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Supported Databases:
1414
- InfluxDB
1515
- OpenTSDB
1616
- Prometheus
17+
- Elasticsearch
1718

1819
Included location data:
1920

@@ -41,6 +42,12 @@ The Group By clause should be the country code and an alias is needed too. The a
4142

4243
![Influx Query for Countries](https://raw.githubusercontent.com/grafana/worldmap-panel/master/src/images/influx-query.png)
4344

45+
#### Elasticseach Query for Countries
46+
47+
Use a Group By clause on the field containing the country code and a Then by clause with Date Histogram by `@timestamp` (or corresponding date field).
48+
49+
![Elasticsearch Query for Countries](https://raw.githubusercontent.com/grafana/worldmap-panel/master/src/images/elasticsearch-query.png)
50+
4451
#### Map Data Options for Time Series Data
4552

4653
Under the Worldmap tab, choose either the `countries` or `states` option.
105 KB
Loading

test/data_formatter_test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ describe('DataFormatter', () => {
88
describe('when latitude and longitude are given in table data', () => {
99
beforeEach(() => {
1010
const ctrl = {
11-
panel: {}
11+
panel: {
12+
tableGeohash: 'geohash'
13+
}
1214
};
1315
dataFormatter = new DataFormatter(ctrl, {roundValue: () => {}});
1416
});

0 commit comments

Comments
 (0)