pass chart as string