Fix demo chart creation bug.