chartjs / chartjs/chartjs-plugin-datalabels

Animation when changing label position.

Open
#157 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
920
Forks
507
PR merge metrics
No merged PRs in 30d

Description

I have this use case:

I want to be able to place the label "Baseline: 0%" under or above the axis depending on the slope of the chart.

![Screenshot 2019-11-04 at 18 24 31](https://user-images.githubusercontent.com/20188451/68147035-1b6b2d80-ff31-11e9-8dae-d028bf181eb7.png)

![Screenshot 2019-11-04 at 18 24 26](https://user-images.githubusercontent.com/20188451/68147123-4a819f00-ff31-11e9-85d1-8d00c7dc3ca5.png)

I am able to to this by defining a method on the align option

https://chartjs-plugin-datalabels.netlify.com/guide/positioning.html#alignment-and-offset

But I would like to define a transition animation when changing between the above and below position, there is any way to achieve that?

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.