Fix to pass time unit to child functions.
Added preliminary support for bar and chart graphs.  Updating and upserting still need to be implemneted.