For a Scatter control named scatter1, the following code sets the colorVariable to Sales and the colorVariableStatistic to Sum: scatter1.colorVariable = 'sales'; scatter1.colorVariableStatistic = 'sum ...