Code Monkey home page Code Monkey logo

aggregation-query-and-display's Introduction

aggregation-query-and-display

A Polymer Element that builds and runs an elasticsearch aggregation query and shows the transformed results in a bar chart with optional selectable behavior.

Example

<aggregation-query-and-display
  aggregation-field="myAggregationField"
  query-field="myQueryField"
  query-value="myQueryValue"
  client="[[client]]"
  index-name="myIndexName"
  index-types='["myIndexType"]'
  filter-list="[[filterList]]"
  transform-config="{}"
  transform-function="[[myTransformFunction]]"
  show-checkboxes
  selected="{{selected}}">
</aggregation-query-and-display>

Styling

<aggregation-query-and-display> provides the following custom properties and mixins for styling:

Custom property Description Default
--aggregation-query-and-display-bar-color The color of the single or left bars. --paper-grey-300
--aggregation-query-and-display-bar-count-color The color of the single or left count labels. --paper-grey-900
--aggregation-query-and-display-bar-height The height of the single or left bars. 20px
--aggregation-query-and-display-bar-title-color The color of the single or left title labels. --paper-grey-900
--aggregation-query-and-display-bar-title-hover-color The color of the single or left title labels on hover (if a link). --paper-indigo-900
--aggregation-query-and-display-max-height The max height of the bar chart. 280px
--aggregation-query-and-display-second-bar-color The color of the right (second) bars. --paper-grey-300
--aggregation-query-and-display-second-bar-count-color The color of the right (second) count labels. --paper-grey-900
--aggregation-query-and-display-second-bar-height The height of the right (second) bars. 20px
--aggregation-query-and-display-second-bar-title-color The color of the right (second) title labels. --paper-grey-900
--aggregation-query-and-display-second-bar-title-hover-color The color of the right (second) title labels on hover (if a link). --paper-indigo-900

Dependencies

Dependencies are installed using Bower:

npm install -g bower
bower install

Testing

Tests are run using web-component-tester:

npm install -g web-component-tester
wct

Demonstration & Documentation

Demonstration and documentation are viewed using polyserve:

npm install -g polyserve
polyserve

aggregation-query-and-display's People

Contributors

kageryu7 avatar thomasschellenbergnextcentury avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.