update to createChart