Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie Charts not loading #519

Closed
dmoore247 opened this issue Sep 20, 2013 · 2 comments
Closed

Pie Charts not loading #519

dmoore247 opened this issue Sep 20, 2013 · 2 comments

Comments

@dmoore247
Copy link

With the most recent versions pulled from Github, the pie charts are not loading as shown below. The ES queries from the spy button run perfectly with Curl.

image

curl -XGET http://localhost:9200/idexx/_search?pretty -d'
{
  "facets": {
    "pie": {
      "terms": {
        "field": "class",
        "size": 10,
        "exclude": []
      },
      "facet_filter": {
        "fquery": {
          "query": {
            "filtered": {
              "query": {
                "bool": {
                  "should": [
                    {
                      "query_string": {
                        "query": "*"
                      }
                    }
                  ]
                }
              },
              "filter": {
                "bool": {
                  "must": [
                    {
                      "match_all": {}
                    },
                    {
                      "range": {
                        "transaction_date": {
                          "from": 1285092343327,
                          "to": 1379700343327
                        }
                      }
                    },
                    {
                      "bool": {
                        "must": [
                          {
                            "match_all": {}
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "size": 0
}'

Query results ( I replaced actual word values with letter sequences)

{
  "took" : 3,
  "timed_out" : false,
  "_shards" : {
    "total" : 5,
    "successful" : 5,
    "failed" : 0
  },
  "hits" : {
    "total" : 200046,
    "max_score" : 1.0,
    "hits" : [ ]
  },
  "facets" : {
    "pie" : {
      "_type" : "terms",
      "missing" : 37,
      "total" : 80500,
      "other" : 52895,
      "terms" : [ {
        "term" : "services",
        "count" : 7638
      }, {
        "term" : "aaaaaaaaa",
        "count" : 5467
      }, {
        "term" : "bbbbbbbbb",
        "count" : 3329
      }, {
        "term" : "cccccccccccc",
        "count" : 3248
      }, {
        "term" : "dddddddddddd",
        "count" : 2102
      }, {
        "term" : "eeee",
        "count" : 1456
      }, {
        "term" : "ffffffffffffffffffff",
        "count" : 1439
      }, {
        "term" : "ggggggg",
        "count" : 1350
      }, {
        "term" : "hhhhhhh",
        "count" : 904
      }, {
        "term" : "ii",
        "count" : 672
      } ]
    }
  }
}
@rashidkpc
Copy link
Contributor

I'm not able to replicate this in either mode of the pie chart, however it should be noted that the pie panel is deprecated and you should switch to the terms panel which has pie, bar and table modes.

@dmoore247
Copy link
Author

I can more than live with the work around. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants