In the Save Script menu, To Data Table (All Objects) and To Script Window (All Objects) save a script for all levels of the By variable.
To turn on Automatic Recalc for a report window, click on the platform red triangle menu and select Redo > Automatic Recalc. To turn it off, deselect the same option. You can also turn on Automatic Recalc using JSL.
Select Help > Sample Data Library and open Candy
Select Graph > Graph Builder.
Click Total fat g and drag to the X zone.
Click Calories and drag to the Y zone.
Click Cholesterol g and drag to the Wrap zone.
Select Cholesterol g and click OK.
Select Saturated fat g, Cholesterol g, Sodium mg, Carbohydrate g, Dietary fiber g, and Sugars g and click OK.
Column Switcher in Graph Builder Window
Click the Play button to cycle between the different factors. Use the slider to control the speed of the animation. Alternatively, you can step through each factor individually.
You can see that the relationship between calories and fat is relatively strong for each level of carbohydrate. Therefore, Carbohydrate g appears to be the best predictor of calorie levels.

Help created on 9/19/2017