Skip to content

Ability to create a Timeline-like Row Series #2037

@fitdev

Description

@fitdev

Sometimes there is a need to plot not a point but a line/bar that represents for example a time interval. It should likely work the same way as Candle bars, but oriented horizontally instead of vertically. It should also be possible to have several such bars/intervals on a single row as long as they do not overlap.

Describe the solution you'd like
Perhaps some modification of the current RowSeries with a custom mapper that will use a 3rd value on the Coordinate that would represent the width (length) of the bar/interval in the X Axis's coordinates.

Describe alternatives you've considered
Use additional line series, but the issue is they would require 2 data points to define a single "bar" - the starting and ending one, not to mention the fact that there needs to be one series for each bar. And, the bar itself is not hoverable/selectable - only the datapoints are selectable which makes it behave weirdly.

Additional context
Imagine a timeline-like view of certain events with durations being laid out alongside normal XY Cartesian line graph for example. For instance: population growth from 5000 BC to present day would be represented by a line series, and important events or eras would be represented by these new bar series with lengths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions