public static boolean needsFunnelJs ( final Options options ) { return options . getChart ( ) != null && ( options . getChart ( ) . getType ( ) == SeriesType . FUNNEL || options . getChart ( ) . getType ( ) == SeriesType . PYRAMID ) ; }
Checks if the specified Options object needs the javascript file funnel . js to work properly . This method can be called by GUI components to determine whether the javascript file has to be included in the page or not .