I am using graph builder to present my data in an interactive way. Suppose I use big class data, I am looking for summation of total weight of male and female separately. This should update as I interact with the height. I have used caption box now. I have tried using script as below. But can this be made better and more presentable?. Any help or idea is would be really great.