\ No newline at end of file
diff --git a/src/app/panels/table/module.html b/src/app/panels/table/module.html
index f0780603e07ed..19f6412732320 100644
--- a/src/app/panels/table/module.html
+++ b/src/app/panels/table/module.html
@@ -103,7 +103,7 @@
- Top 10 terms in field {{modalField}}
+ {{adhocOpts.title}}
0) {
+ $scope.micropanel.hasStats = true;
+ }
+ });
+
};
$scope.micropanelColor = function(index) {
diff --git a/src/vendor/jsonpath.js b/src/vendor/jsonpath.js
new file mode 100644
index 0000000000000..bafe5e338454e
--- /dev/null
+++ b/src/vendor/jsonpath.js
@@ -0,0 +1,87 @@
+/* JSONPath 0.8.0 - XPath for JSON
+ *
+ * Copyright (c) 2007 Stefan Goessner (goessner.net)
+ * Licensed under the MIT (MIT-LICENSE.txt) licence.
+ */
+function jsonPath(obj, expr, arg) {
+ var P = {
+ resultType: arg && arg.resultType || "VALUE",
+ result: [],
+ normalize: function(expr) {
+ var subx = [];
+ return expr.replace(/[\['](\??\(.*?\))[\]']/g, function($0,$1){return "[#"+(subx.push($1)-1)+"]";})
+ .replace(/'?\.'?|\['?/g, ";")
+ .replace(/;;;|;;/g, ";..;")
+ .replace(/;$|'?\]|'$/g, "")
+ .replace(/#([0-9]+)/g, function($0,$1){return subx[$1];});
+ },
+ asPath: function(path) {
+ var x = path.split(";"), p = "$";
+ for (var i=1,n=x.length; i