Skip to content

Custom Bucket Rendering #264

Description

@ThomasJejkal

Package version (if known): v2.2.5

Describe the bug

I'm not sure whether it is justified to file a bug in this regard, but there seem to be a mismatch between documentation and code, which might be easy to fix. While evaluating react-searchkit for our purposes, I arrived at the point where I wanted to customize bucket rendering to support enhanced aggregations (namely ISO-date-time ranges). I've checked this documentation page and was a bit disappointed that in the "Usage when overriding" section no implementation for BucketAggregationContainer and MyBucketAggregationValues could be found, not even a very basic one.

So I decided to work with the elasticsearch demo, as it should contain an example for that scenario. Unfortunately, I realized, that the demo uses the properties 'renderValuesContainerElement' and 'renderValueElement' of BucketAggregation instead, which seem to be not available in version 2.2.5 anymore (I found them in version 1.X).

Now I'm wondering if it would be possible, to provide an easy example based on the demo code, which is working with the current version?

Many thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions