Skip to content

[Question] Line chart : label position when there is only one data #3044

@madmoizo

Description

@madmoizo

Hi,

When there is only one data on a line chart, points and label are sticked on the y axe
https://jsfiddle.net/rn1pocs5/3/

Is it possible to center points + label in this case ?

I can get this result with a trick (use bar chart, add an "hidden" dataset and override type of the others) but it's a bit dirty
https://jsfiddle.net/h27rL8qq/1/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions