Skip to content

Lines and bars with duration set to zero fail to render in Safari #529

Open
@tbuteler

Description

@tbuteler

It seems that setting the duration of a component (e.g. VisLine or VisStackedBar) in Vue will make it fail to render in Safari. The strangest thing is that I cannot reproduce it when looking at this example, but I can definitely see it on the majority of refreshes on a forked Stackblitz of that same example.

I wonder if there is a better way to disable animations without having to set duration = 0?

Note that anything that forces the graph as a whole or an individual series to re-render will fix the issue (e.g. highlighting a line on hover, or changing the fallback value by clicking on the legend in the example above). So if there is a way to force the re-render of all the graph's series after it's been loaded, it might also do the trick, but this might be trickier depending on the setup of props/computed values, etc.

No version of Chrome or Firefox I tested the above with had any issues whatsoever, so it seems Safari is the outlier here.

Also, this does not affect the VisDonut component, because the animations for those are different (it uses CSS transition, as far as I can tell, so animations can be disabled globally via CSS, too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions