Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add more alignment values to chart title, xAxes and yAxes #5334

Closed
jamesbarrett95 opened this issue Mar 12, 2018 · 2 comments
Closed

Comments

@jamesbarrett95
Copy link

Bug []
Feature Request [x]

Expected Behavior

  • Documentation for positioning a title in Chart.js are: top, left, right, bottom. I believe the option for adding two values such a top left should be added.
  • User should have the option to align xAxes and yAxes values to start, middle or end.

An example of this expected behavior is shown in the following image:
image

As you can see - the chart title is aligned top left, yAxes is aligned at the start and the xAxes is aligned at the start.

Current Behavior

I'm only able to align chart titles to the middle. For example:
image

Possible Solution

  • xAxes/yAxes - Add an align property to the scaleLabel object. For example: scaleLabel: { align: 'start' }
  • Title: - Add an align property to the title object. For example: title: { align: 'top left' }

Context

For me personally, I want to align many of my chart and yAxes titles to the top left as viewers tend to absorb visualisations in a zigzag direction. So by starting at the top left, the user will find the chart title and yAxes title immediately.

@etimberg
Copy link
Member

etimberg commented Jan 5, 2020

Scale title options exist in v2.9.x. Title alignment options added in #6908

@etimberg etimberg closed this as completed Jan 5, 2020
@SeanLuis
Copy link

I would like to know if this option has already been implemented for version two of chartjs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants