Skip to content

Segment functionality doesn't work for time axis or for data in not primitive form #9401

@PavolSvidran

Description

@PavolSvidran

Hi, yesterday i asked about some functionality described in #9396, response is fine and in theory it is what i need.

When i tried this segment solution i cannot make it work. I am using combination of time scale and data is in object form with props x,y where x is parsed from string. I tried to simulate it and my conclusion is that it realy doesnt work or there is somethink what i missed.

In the demo linked below, you can see two charts, where first one is with time x-scale and second with normal. Both have almost same config and as you can see in the first one it doesn't work. For both charts is segment function called, but only one respect it.

Demo: https://codepen.io/jBeater/pen/GRmoaYz

Browser: Chrome
ChartJS: 4.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions