You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from Version 3.51.0 and higher The chart is showing the wrong info in the datalabels. It's showing the value of the first series for the 2nd series. Downgrading the version to 3.50.0 fixes the issue.
conststartValue=70;constgrowthPercentage=.10;// F = A * ((1 + B) ^ C)for(leti=0;i<12;++i){options.series[0].data[i]=startValue*Math.pow(1+growthPercentage,i);}options.series[1].data[0]=50;
After some debugging I found out that the "val" passed into the datalabels formatter function is wrong. Using the opts.w.config.series with the seriesIndex and dataPointIndex gives back the right value.
Description
Starting from Version 3.51.0 and higher The chart is showing the wrong info in the datalabels. It's showing the value of the first series for the 2nd series. Downgrading the version to 3.50.0 fixes the issue.
Steps to Reproduce
Expected Behavior
Datalabel for series[0] show 70
Datalabel for series[1] shows 50
Actual Behavior
Datalabel for series[0] show 70
Datalabel for series[1] shows 70
Screenshots
Reproduction Link
https://codepen.io/jeffreygoudzwaard/pen/zYVRZqR
The text was updated successfully, but these errors were encountered: