clearTargets()

Removes all target lines and bands from the chart.

Example

Chart1.clearTargets();

Either syntax below can be used in component script:

clearTargets           // unqualified
Chart1.clearTargets    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.