Display Chart Series Diff

I used some JS from this thread: https://community.skuid.com/t/superbank-chart-options-data-preprocess . I think I’m getting the hang of it now! I was able to set a dynamic +/- diff using the following snippet.

var chartObj = arguments[0], $ = skuid.$;<br>var dataLabels = {<br>&nbsp; &nbsp; enabled: true,<br>&nbsp; &nbsp; formatter: function(){<br>&nbsp; &nbsp; &nbsp; &nbsp; var secondY = this.series.chart.series[1].yData[this.point.x],<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; firstY = this.y;<br>&nbsp; &nbsp; &nbsp; &nbsp; var returnVal; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; if(firstY &gt; secondY){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnVal = "+" + (firstY - secondY);<br>&nbsp; &nbsp; &nbsp; &nbsp; }else if(firstY &lt; secondY){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnVal = "-" + (secondY - firstY);<br>&nbsp; &nbsp; &nbsp; &nbsp; }else{<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; returnVal = firstY;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; return returnVal;<br>&nbsp; &nbsp; }<br>};<br>chartObj.series[0].dataLabels = dataLabels;<br>console.log(chartObj);