panels.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*jshint globalstrict:true */
  2. /*global angular:true */
  3. 'use strict';
  4. /* NOTE: This is very much a preview, many things will change. In fact, this
  5. file will probably go away
  6. */
  7. /*
  8. METAPARAMETERS
  9. If you're implementing a panel, these are used by default. You need not handle
  10. them in your directive.
  11. span: The grid is made up of N rows, however there are only 12 columns. Span
  12. is a number, 1-12
  13. type: This is the name of your directive.
  14. */
  15. /*
  16. Histogram
  17. Draw a histogram of a single query
  18. NOTE: This will likely be renamed or get a setting that allows for non-time
  19. based keys. It may also be updated to allow multiple stacked or unstacked
  20. queries.
  21. query: query to execute
  22. interval: Bucket size in the standard Nunit (eg 1d, 5m, 30s) Attempts to auto
  23. scale itself based on timespan
  24. color: line/bar color.
  25. show: array of what to show, (eg ['bars','lines','points'])
  26. */
  27. /*
  28. Piequery
  29. Use a query facets to compare counts of for different queries, then show them
  30. on a pie chart
  31. queries: An array of queries
  32. donut: Make a hole in the middle?
  33. tilt: Tilt the pie in a 3dish way
  34. legend: Show it or not?
  35. colors: An array of colors to use for slices. These map 1-to-1 with the #
  36. of queries in your queries array
  37. */
  38. /* Pieterms
  39. Use a terms facet to calculate the most popular terms for a field
  40. query: Query to perform the facet on
  41. size: Limit to this many terms
  42. exclude: An array of terms to exclude from the results
  43. donut: Make a hole in the middle?
  44. tilt: Tilt the pie in a 3dish way
  45. legend: Show it or not?
  46. */
  47. /* Stackedquery
  48. Use date histograms to assemble stacked bar or line charts representing
  49. multple queries over time
  50. queries: An array of queries
  51. interval: Bucket size in the standard Nunit (eg 1d, 5m, 30s) Attempts to auto
  52. scale itself based on timespan
  53. colors: An array of colors to use for slices. These map 1-to-1 with the #
  54. of queries in your queries array
  55. show: array of what to show, (eg ['bars','lines','points'])
  56. */
  57. angular.module('kibana.panels', [])