public static function chart($type='core')
	{
		if (isset(self::$loaded[__METHOD__][$type]))
		{
			return;
		}

		if ($type != 'core')
		{
			self::chart();
		}

		if ($type == 'core')
		{
			Asset::script('assets/flot/jquery.flot.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.canvas.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.time.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.tooltip.min.js', true, true);
		}
		else
		{
			Asset::script('assets/flot/jquery.flot.' . $type . '.min.js', true, true);
		}

		self::$loaded[__METHOD__][$type] = true;

		return;
	}
public static function chart($type='core')
	{
		if (isset(self::$loaded[__METHOD__][$type]))
		{
			return;
		}

		if ($type != 'core')
		{
			self::chart();
		}

		if ($type == 'core')
		{
			Asset::script('assets/flot/jquery.flot.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.canvas.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.time.min.js', true, true);
			Asset::script('assets/flot/jquery.flot.tooltip.min.js', true, true);
		}
		else
		{
			Asset::script('assets/flot/jquery.flot.' . $type . '.min.js', true, true);
		}

		self::$loaded[__METHOD__][$type] = true;

		return;
	}
public static function chart ( $ type = 'core' ) { if ( isset ( self :: $ loaded [ __METHOD__ ] [ $ type ] ) ) { return ; } if ( $ type != 'core' ) { self :: chart ( ) ; } if ( $ type == 'core' ) { Asset :: script ( 'assets/flot/jquery.flot.min.js' , true , true ) ; Asset :: script ( 'assets/flot/jquery.flot.canvas.min.js' , true , true ) ; Asset :: script ( 'assets/flot/jquery.flot.time.min.js' , true , true ) ; Asset :: script ( 'assets/flot/jquery.flot.tooltip.min.js' , true , true ) ; } else { Asset :: script ( 'assets/flot/jquery.flot.' . $ type . '.min.js' , true , true ) ; } self :: $ loaded [ __METHOD__ ] [ $ type ] = true ; return ; }
Add unobtrusive javascript support for charts

@return  void
Add unobtrusive javascript support for charts