Skip to content

[BUG] Wrong width and position of non-equidistant bars with {x, y} data points #4666

Description

@andig

#4565 added support for data point objects for bars, but current implementation assume equidistant bars.

Expected Behavior

When a series of bars has a single missing point, remaining bars should have equal width and be centered at their x or t location.

Current Behavior

See https://jsfiddle.net/andig2/sb3vzw5n/1/

screen shot 2017-08-16 at 20 26 00

With missing 3rd bar, bars 2 and 4 become too large and are no longer centered around their x position.

Possible Solution

Bar drawing should determined smallest bar first, then draw all bars with that width at the desired location.

Steps to Reproduce (for bugs)

See https://jsfiddle.net/andig2/sb3vzw5n/1/

Environment

Current master

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions