Added createChart function for simplicity