Git Product home page Git Product logo

Comments (6)

mastermind1981 avatar mastermind1981 commented on July 16, 2024

No date histogram is not in the library. but you can make a widget base on the actual component of elastic ui by creating a histogram aggregation and associate the result with a charting library.

For the multi-select checklist yes it narrows the checklist based on the selection. You can change this by adding or eui-or-filter to container of the result of the aggregation.

Here is an example with both a histogram aggregation and a checklist that does not change when selecting one of its elements. I'm using to have a list of price intervals with their doc count.


<div  class="form-group wrapper-sm" eui-aggregation="ejs.HistogramAggregation('price90').field('price').interval('50000').minDocCount(0)" eui-filter-self="false" eui-or-filter >
  <div ng-repeat="bucket in aggResult.buckets   ">
       <div class="checkbox" eui-filter="ejs.RangeFilter('price').from(bucket.key).to(aggResult.buckets[$index + 1].key)">
                        <label class="i-checks">
                        <input type="checkbox" ng-model="filter.enabled"  >
                        <i></i>
                        </label>
       <span class="m-r-n-sm">
        <small><span ng-bind-html="bucket.key | number"></span>&nbsp;<span  ng-bind="currency"></span>-<span ng-bind-html="aggResult.buckets[$index + 1].key | number"></span>&nbsp;<span  ng-bind="currency"></span></small>
        <span class="badge bg-success"><span ng-bind-html="bucket.doc_count | number"></span></span>                        </span>
      </div>
  </div>
</div>

from elasticui.

petercsmith avatar petercsmith commented on July 16, 2024

Thanks @mastermind1981, I've worked the histogram routine you posted into a sleek time range selector. Much appreciated!

from elasticui.

YousefED avatar YousefED commented on July 16, 2024

Great guys! Would love to see any screenshots if possible to see what you've been building

from elasticui.

petercsmith avatar petercsmith commented on July 16, 2024

Happy to share screenshots privately -- is there an email I can send them to?

from elasticui.

YousefED avatar YousefED commented on July 16, 2024

Yep, pre @ sign: yousef
domain after @: tweetbeam.com

from elasticui.

YousefED avatar YousefED commented on July 16, 2024

Closing this issue. I welcome any date-histogram widget additions to the demo + widgets :)

from elasticui.

Related Issues (20)

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.