Skip to content

[Lens] Ability to use same buckets with different series styles #54582

@timroes

Description

@timroes

Currently you can configure a series style like area/bar/line only on a per layer level, but not on a per series level. That limits a use-case I've personally hit in nearly every demo I am trying to build:

Styling two series that are using the same x-axis buckets in different styles. So a common example: I split the x-axis by some terms e.g. country. Now I want on the y-axis a bar chart of average bytes and a line chart of count of documents. This is currently not really possible. The closest you can get is, that you create two separate layers on the same index, one for each of the series. Now you're having the problem, that you can't make sure the term aggregations returns the same buckets for each of the layers anymore.

There are basically two ways we can solve this:

  • allowing to change the chart style for each of the series individually within one layer.
  • allowing with two different layers to use a "shared x-axes bucket", meaning that behind the scenes even though it's two different layers, we use one bucket aggregation for it, so we will get the same bucket and get the same order of buckets for each of the y-axes series.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:LensTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//enhancementNew value added to drive a business resultimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.usability

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions