Search code examples
javascriptgwthighchartsgwt-highcharts

GWT Highcharts - disable series animation


How do you disable the animation when series are drawn in GWT Highcharts? If I was using Highcharts in JavaScript directly, this would be the way to do it. In my GWT code, I have tried the following without success:

chart.setOption("/series/animation", false);

Solution

  • Please try this approach:

    final Chart chart = new Chart()
        .setLinePlotOptions( new LinePlotOptions()
                        .setAnimation(false);
      )
    

    Of course instead of setLinePlotOptions and new LinePlotOptions() you need to put a proper subclass of PlotOptions