Align combined defect chart rows and spacing

This commit is contained in:
2026-10-24 10:29:37 +08:00
parent e2fb128911
commit 55327df5e4
3 changed files with 17 additions and 5 deletions
@@ -115,6 +115,13 @@ test('same-scope black and bright defect changes become one stage-colored chart'
assert.deepEqual(combined[0].series[0].values, [265.85, null, null, -12]);
assert.deepEqual(combined[0].series[1].values, [null, 123.42, 39.25, null]);
assert.equal(combined[0].chartable, true);
const chart = buildAnalysisVisualOption(combined[0]);
assert.equal(chart.legend.show, false);
assert.equal(chart.series[0].stack, chart.series[1].stack);
assert.equal(chart.series[0].barWidth, 18);
const reportChart = buildAnalysisVisualExportOption(combined[0], 1280, 'report').option;
assert.equal(reportChart.legend.show, false);
assert.equal(reportChart.series[0].stack, reportChart.series[1].stack);
assert.equal(combined[1].scope.product, '规格 B');
assert.equal(combineStageDefectVisuals(combined).length, 2);
});