Chart.js: Animate from left to right for line chart

Created on 30 Aug 2016  ·  13Comments  ·  Source: chartjs/Chart.js

I wonder if it is possible to animate from left to right instead from bottom to top for a line chart?

Here is what I currently have: http://jsbin.com/peyabawiwo/edit?html,output

support

Most helpful comment

@etimberg Any chance this will be implemented soon?

All 13 comments

Could be done but it would require changes inside updateElement for the line controller. The reset position would be x of 0 and the correct y instead of y of 0 and the correct x.

Closing as answered. We are not going to support this in the core at this time

@etimberg Any chance this will be implemented soon?

Could be done but it would require changes inside updateElement for the line controller. The reset position would be x of 0 and the correct y instead of y of 0 and the correct x.

where to change in the latest version?

Hi, I also want to animate my line chart from left to right. Have you achieved this goal? If you have, could you tell me how to accomplish it?

Anyone got this working?

There are quite a few possibilities in upcoming v3:
https://codepen.io/kurkle/pen/WNQGqjV

Thanks, but it is not something like this:
http://bl.ocks.org/markmarkoh/raw/8700606/
Is this possible?

I've updated the pen.

Excellent! Thanks so much.

@kurkle Hye, your Pen is not working.

@kurkle Hye, your Pen is not working.

Fixed, was just the Chart.js to chart.js rename.

@kurkle Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JewelsJLF picture JewelsJLF  ·  3Comments

lizbanach picture lizbanach  ·  3Comments

HeinPauwelyn picture HeinPauwelyn  ·  3Comments

gabrieldesouza picture gabrieldesouza  ·  3Comments

longboy picture longboy  ·  3Comments