condition for animation highcharts