Added support for drawing charts from the result sets of proper type