Hi Team!
I would like to report another minor bug. Based on #2 in the latest release notes, the indexLabel has been fixed if percent is zero. However, the same bug affects the dataSeries’s ‘#total’ indexLabel if the total is zero. Please take a look at http://jsfiddle.net/y2301jm1/1/
I think the bug is caused by line 13116 of the source code. Here is the excerpt:
total = percentAndTotal.total ? percentAndTotal.total : total;
Since 0 is a falsey value, the original string in the variable total
enters line 13136 and causes the NaN.undefined error.
str = str.replace("#total", numberFormat(total, ds.yValueFormatString ? ds.yValueFormatString : "#,##0.########"));
I modified my own copy like so to check for a number, but I am not sure if doing so might break other functionalities I have not yet used. Hopefully this gets fixed too! Thanks!
total = isNaN(percentAndTotal.total) ? total : percentAndTotal.total;