Skip to content

[Bug]: Labels on the X axis is not directly centered but slightly offsetted #1455

@cocoabox

Description

@cocoabox

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

X axis labels are left-aligned to each column. But they should should not be inside the cell but center aligned, x-offset by -50%.

Currently (using sample graphs in your page)
Image

Expected
Image

Reproduction

Just open up : https://gionkunz.github.io/chartist-js/examples.html

Chartist version

latest

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions