added jf.chart function (to handle data frames)