You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by ni...@bliq.se.INVALID on 2023/11/09 07:24:30 UTC
What makes the line race animation example animate?
Looking at
https://echarts.apache.org/examples/en/editor.html?c=line-race but can't
figure out what makes the animation? I mean what makes it different from
an ordinary line chart, where is the code that steps forward each year?
The bar race uses setInterval but no such thing in the line race
example?
Guess I am overlooking something obvious, what?
Thanks
Re: What makes the line race animation example animate?
Posted by Ovilia <ov...@gmail.com>.
Hi,
How we implemented line racing is quite different from bar racing.
For line racing, `endLabel` is the part to control the animation, while bar
racing uses setTimeout to make `setOption` calls.
Thanks
*Ovilia*
On Fri, Nov 17, 2023 at 5:11 PM <ni...@bliq.se.invalid> wrote:
> Ok, it's just the default animation. It wasn't showing due to the
> extension I am using in Angular, but now all good.
> Could there be any way to make the animation smoother, without changing
> the dataset or animationDuration?
>
> On 09.11.2023 08:24, nicke@bliq.se.INVALID wrote:
> > Looking at
> > https://echarts.apache.org/examples/en/editor.html?c=line-race but
> > can't figure out what makes the animation? I mean what makes it
> > different from an ordinary line chart, where is the code that steps
> > forward each year?
> > The bar race uses setInterval but no such thing in the line race
> > example?
> > Guess I am overlooking something obvious, what?
> > Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
> For additional commands, e-mail: dev-help@echarts.apache.org
>
>
Re: What makes the line race animation example animate?
Posted by ni...@bliq.se.INVALID.
Ok, it's just the default animation. It wasn't showing due to the
extension I am using in Angular, but now all good.
Could there be any way to make the animation smoother, without changing
the dataset or animationDuration?
On 09.11.2023 08:24, nicke@bliq.se.INVALID wrote:
> Looking at
> https://echarts.apache.org/examples/en/editor.html?c=line-race but
> can't figure out what makes the animation? I mean what makes it
> different from an ordinary line chart, where is the code that steps
> forward each year?
> The bar race uses setInterval but no such thing in the line race
> example?
> Guess I am overlooking something obvious, what?
> Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org