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

Missing animation property in PlotOptionsBoxplot #590

Open
javier-godoy opened this issue Feb 19, 2020 · 2 comments
Open

Missing animation property in PlotOptionsBoxplot #590

javier-godoy opened this issue Feb 19, 2020 · 2 comments

Comments

@javier-godoy
Copy link

The animation property (enable or disable the initial animation when a series is displayed) is missing from PlotOptionsBoxplot. Note that chart.animation does not affect the initial series animation.

Applies to: Vaadin charts 4.2.0

@TatuLund
Copy link
Contributor

We need to investigate why it was left out.

HighCharts documentation says the following. The interesting note is the one about IE. In Vaadin 7 we supported old IE browsers and in Vaadin 8 IE11 is still supported. So if this feature is disabled in those, we probably have wanted offer consistency accross browsers.

plotOptions.boxplot.animation
Enable or disable the initial animation when a series is displayed. The animation can also be set as a configuration object. Please note that this option only applies to the initial animation of the series itself. For other animations, see chart.animation and the animation parameter under the API methods. The following properties are supported:

duration: The duration of the animation in milliseconds.

easing: Can be a string reference to an easing function set on the Math object or a function. See the Custom easing function demo below.

Due to poor performance, animation is disabled in old IE browsers for several chart types.

@johannest
Copy link

Workaround:

PlotOptionsBoxplot options = new PlotOptionsBoxplot() {
    boolean animation = false;

    public boolean isAnimation() {
        return animation;
    }

    public void setAnimation(boolean animation) {
        this.animation = animation;
    }
};

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

4 participants