# Strange dashboard behavior

**URL:** https://discuss.elastic.co/t/strange-dashboard-behavior/127494
**Category:** Kibana
**Created:** [April 10, 2018, 1:55pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494 "2018-04-10T13:55:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 10, 2018, 1:55pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/1 "2018-04-10T13:55:24Z")

</div>

In pie chart, "info" is lost:  
 ![1523368397469](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8a938dc3882cbf2ef475a60878e88cd3c4377844.jpg)

when I remove line char, "info" is show in pie chart:  
 ![1523368474853](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4b5d7f74d1f85695c2bcd90b29ee2978f160fbb.jpg)

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [April 10, 2018, 7:30pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/2 "2018-04-10T19:30:52Z")

</div>

Whoa that is pretty weird!

Just to make sure you have no hidden filters (there have been bugs about filters applied to a dashboard that don't show up in the title bar) - what happens if you add those same two visualizations on a brand new dashboard? If you add the pie chart first, do you get all results? Then if you add the second line chart, is the pie chart filtered again?

---

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 11, 2018, 2:16am UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/3 "2018-04-11T02:16:48Z")

</div>

I crate new dashboard, add pie chart first:

 ![11](https://us1.discourse-cdn.com/elastic/original/3X/d/5/d5825210f0386279977af3f228e4be642769b105.jpg)

then add line chart:

 ![22](https://us1.discourse-cdn.com/elastic/original/3X/6/c/6c323c33c7f4faffccec0c9dc4cd728d69e00b9e.jpg)

It's fine, but when I click the query button, "ERROR" is disappear in pie chart:

 ![33](https://us1.discourse-cdn.com/elastic/original/3X/8/1/81ab4369510980facda3b4fd19726467a9878199.jpg)

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [April 11, 2018, 1:38pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/4 "2018-04-11T13:38:54Z")

</div>

Wow that is a strange one.

What version of kibana are you on?

Can you export those two visualizations and post the json?

---

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 11, 2018, 1:52pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/5 "2018-04-11T13:52:38Z")

</div>

Thanks for quickly reply, I use kibana 6.2.3.

```auto
[
  {
    "_id": "11274c70-3cb7-11e8-a9e2-e54c94e0051f",
    "_type": "visualization",
    "_source": {
      "title": "sendinfo-web-level-pie",
      "visState": "{\"title\":\"sendinfo-web-level-pie\",\"type\":\"pie\",\"params\":{\"type\":\"pie\",\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"isDonut\":false,\"labels\":{\"show\":false,\"values\":true,\"last_level\":true,\"truncate\":100}},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"significant_terms\",\"schema\":\"segment\",\"params\":{\"field\":\"level.keyword\",\"size\":5}}]}",
      "uiStateJSON": "{}",
      "description": "",
      "savedSearchId": "14be73e0-341a-11e8-b946-6d2aa77a3448",
      "version": 1,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":\"\"}}"
      }
    }
  },
  {
    "_id": "e74200d0-3cc0-11e8-a9e2-e54c94e0051f",
    "_type": "visualization",
    "_source": {
      "title": "sendinfo-web-level-count-line",
      "visState": "{\"title\":\"sendinfo-web-level-count-line\",\"type\":\"line\",\"params\":{\"type\":\"line\",\"grid\":{\"categoryLines\":false,\"style\":{\"color\":\"#eee\"}},\"categoryAxes\":[{\"id\":\"CategoryAxis-1\",\"type\":\"category\",\"position\":\"bottom\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\"},\"labels\":{\"show\":true,\"truncate\":100},\"title\":{}}],\"valueAxes\":[{\"id\":\"ValueAxis-1\",\"name\":\"LeftAxis-1\",\"type\":\"value\",\"position\":\"left\",\"show\":true,\"style\":{},\"scale\":{\"type\":\"linear\",\"mode\":\"normal\"},\"labels\":{\"show\":true,\"rotate\":0,\"filter\":false,\"truncate\":100},\"title\":{\"text\":\"Count\"}}],\"seriesParams\":[{\"show\":\"true\",\"type\":\"line\",\"mode\":\"normal\",\"data\":{\"label\":\"Count\",\"id\":\"1\"},\"valueAxis\":\"ValueAxis-1\",\"drawLinesBetweenPoints\":true,\"showCircles\":true}],\"addTooltip\":true,\"addLegend\":true,\"legendPosition\":\"right\",\"times\":[],\"addTimeMarker\":false},\"aggs\":[{\"id\":\"1\",\"enabled\":true,\"type\":\"count\",\"schema\":\"metric\",\"params\":{}},{\"id\":\"2\",\"enabled\":true,\"type\":\"date_histogram\",\"schema\":\"segment\",\"params\":{\"field\":\"@timestamp\",\"interval\":\"auto\",\"customInterval\":\"2h\",\"min_doc_count\":1,\"extended_bounds\":{}}},{\"id\":\"3\",\"enabled\":true,\"type\":\"significant_terms\",\"schema\":\"group\",\"params\":{\"field\":\"level.keyword\",\"size\":5}}]}",
      "uiStateJSON": "{}",
      "description": "",
      "savedSearchId": "14be73e0-341a-11e8-b946-6d2aa77a3448",
      "version": 1,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
      }
    }
  }
]

```

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [April 11, 2018, 2:41pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/6 "2018-04-11T14:41:58Z")

</div>

Can you also export and post the json for your saved search those two visualizations are both linked to? So far, I don't see anything strange, and can't repro.

One more thing, just to make sure it's related to the line chart being on a dashboard. If you add only the pie chart to a dashboard and click the query button, does ERROR disappear?

---

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 12, 2018, 5:22am UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/7 "2018-04-12T05:22:47Z")

</div>

saved search export:

```auto
[
  {
    "_id": "14be73e0-341a-11e8-b946-6d2aa77a3448",
    "_type": "search",
    "_source": {
      "title": "sendinfo-web-save-search",
      "description": "",
      "hits": 0,
      "columns": [
        "hostname",
        "requestId",
        "level",
        "module",
        "message"
      ],
      "sort": [
        "@timestamp",
        "desc"
      ],
      "version": 1,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"index\":\"fcc5eda0-3409-11e8-b946-6d2aa77a3448\",\"highlightAll\":true,\"version\":true,\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"filter\":[]}"
      }
    }
  }
]

```

If add only the pie chart to a dashboard and click the query button, ERROR doesn't disappear.

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [April 19, 2018, 4:18pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/8 "2018-04-19T16:18:24Z")

</div>

Strange, nothing obvious stands out that could cause an issue.

Can you send the network requests going to elasticsearch? If you open dev tools in chrome, and go to the network tab, you should be able to find them. I'm looking for the Request payload on all the \_msearch calls that show up after you press the query button.

 ![36%20PM](https://us1.discourse-cdn.com/elastic/original/3X/3/0/30dfb6eb5e193db2e826c62ec71498e42f21216a.png)

---

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 20, 2018, 12:41pm UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/9 "2018-04-20T12:41:18Z")

</div>

I encounter another strange problem about pie chart:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e0b5bb0d2e85395eeb7e3c94d24843121e6352b3.png)

request body:

```auto
{"index":["sendinfo-web-*"],"ignore_unavailable":true,"preference":1523719935234}
{"size":0,"aggs":{"2":{"significant_terms":{"field":"level.keyword","size":5}}},"version":true,"_source":{"excludes":[]},"stored_fields":["*"],"script_fields":{},"docvalue_fields":["@timestamp"],"query":{"bool":{"must":[{"match_all":{}},{"match_all":{}},{"range":{"@timestamp":{"gte":1524141407092,"lte":1524227807092,"format":"epoch_millis"}}}],"filter":[],"should":[],"must_not":[]}},"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"*":{}},"fragment_size":2147483647}}

```

INFO is lost, just show ERROR, when I filter out ERROR, INFO is show:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0ac238dd77c53f5e6d96f10b527181c618a0874d.png)

request body:

```auto
{"index":["sendinfo-web-*"],"ignore_unavailable":true,"preference":1523719935234}
{"size":0,"aggs":{"2":{"significant_terms":{"field":"level.keyword","size":5}}},"version":true,"_source":{"excludes":[]},"stored_fields":["*"],"script_fields":{},"docvalue_fields":["@timestamp"],"query":{"bool":{"must":[{"match_all":{}},{"match_all":{}},{"range":{"@timestamp":{"gte":1524141445449,"lte":1524227845449,"format":"epoch_millis"}}}],"filter":[],"should":[],"must_not":[{"match_phrase":{"level.keyword":{"query":"ERROR"}}}]}},"highlight":{"pre_tags":["@kibana-highlighted-field@"],"post_tags":["@/kibana-highlighted-field@"],"fields":{"*":{}},"fragment_size":2147483647}}

```

Last 24 hours data show in line chart:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b275e2b0f4cbec31d06f659610b266966d78772.png)

---

<div class="post-metadata">

### Author: ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)
#### Post date: [April 21, 2018, 11:16am UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/10 "2018-04-21T11:16:46Z")

</div>

Ahhh, I think this might be because you are using `significant terms` and not a regular terms agg. It determines what is significant based on your filters, hence the change. If you change it to a regular terms agg instead of significant terms, does everything work as expected?

---

<div class="post-metadata">

### Author: ![roketyyang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roketyyang/32/8783_2.png) [@roketyyang](https://discuss.elastic.co/u/roketyyang)
#### Post date: [April 23, 2018, 2:03am UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/11 "2018-04-23T02:03:29Z")

</div>

I change it to regular terms agg, and it work as expected. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [May 21, 2018, 2:03am UTC](https://discuss.elastic.co/t/strange-dashboard-behavior/127494/12 "2018-05-21T02:03:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
