I have two Y Series groupings, 'points completed' and 'points remaining' and am trying to set the label to be the Percent complete.<br />
<br />
Is it possible to dynamically set the series label (1) based on another series label (2)?<br />
<br />
So far, I have logic within the beforeDrawDataPointLabel(dph, label, icsc) function that stores the val in an object for YSeries1, then calls that for YSeries2. <br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
//Storing while iterating YSeries1
pointsCompletedList[dph.getBaseValue()] = dph.getDisplayValue();
</pre>
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
//Fetching while iterating YSeries2
var pointsCompleted = pointsCompletedList[dph.getBaseValue()];
</pre>
<br />
After calculating I set the label: <br />
<pre class='_prettyXprint _lang-auto _linenums:0'>label.getCaption().setValue((percentComplete) + "%");</pre>
<br />
Where I'm stuck is when points remaining = 0. Then for that instance, it does not loop through YSeries2. <br />
<br />
<img src='
https://lh6.googleusercontent.com/-8_fY-0Unc3I/T43ao-Vpl9I/AAAAAAAAAJ8/zOIrgt0UVec/s1152/birtpercent.jpg' alt='Posted Image' class='bbc_img' /><br />
<br />
Is there another approach to this? Is it possible to set define one label per data point when you have two Y Series?