splitting scatter chart into default graph and sample code