I'm currently facing a challenge with the stacked area chart. The problem arises when I use the "expand" feature. This option has a y-axis range of 0% to 100%, but the values seem to be multiplied by 100%.
Let's consider this dataset...
x [1,2,3,4,5,6,7]
y [0, 140, 451, 867, 903, 960, 1000]
140 + 451 + 867 + 903 + 960 + 1000 = 4321
960 / 4321 * 100% = 22.21%
So, in the case of the expand option, the value of 960 becomes 960% when it should actually represent 22.21%.
Is there a way to adjust the data format so that the y value aligns with the 0%-100% range in the "expand" mode?
Alternatively, is there a method to detect when a user clicks on the "expand" option?