TARUNTEjjjj commented on code in PR #21794:
URL: https://github.com/apache/echarts/pull/21794#discussion_r4604451370


##########
src/chart/line/LineView.ts:
##########
@@ -874,7 +912,10 @@ class LineView extends ChartView {
             ));
 
             if (stackedOnSeries) {
-                stackedOnSmooth = getSmooth(stackedOnSeries.get('smooth'));
+                const stackedSmooth = stackedOnSeries.get('smooth');
+                stackedOnSmooth = (smoothMonotone === 'monotoneX' || 
smoothMonotone === 'monotoneY')

Review Comment:
   Could the stacked area's lower edge resolve both its smoothing mode and 
strength from `stackedOnSeries`? This branch chooses the strength from the 
current series' `smoothMonotone`, and `ECPolygon` also reuses that mode for its 
baseline. Mixing the new mode with a legacy-smoothed lower series therefore 
makes the area's lower edge disagree with the line it is stacked on.
   
   I reproduced this through `setOption` using two `stack: 'total', smooth: 
true, areaStyle: {}` line series, values `[1,4,2,5]` and `[2,2,2,2]`, with only 
the upper series set to `smoothMonotone: 'monotoneX'`. The lower line resolves 
to strength 0.5, but the upper baseline uses monotone cubics at strength 1. The 
reverse combination is wrong too. Extracting the rendered path commands shows 
different curves; setting both to `monotoneX` gives identical shared-boundary 
commands. Resolving the lower series separately and carrying its own baseline 
mode into the polygon would keep stacked boundaries aligned.
   
   All 13 existing monotone tests pass; the independent Jest/jsdom integration 
check reproduced both mixed-mode cases. This is source/path validation with 
canvas mocks, not a visual browser run. AI-assisted review and local validation 
with OpenAI Codex.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to