Skip to content

Commit

Permalink
Fix panorama tests related to yAxisScale with various value conversio…
Browse files Browse the repository at this point in the history
…ns (#5532)
  • Loading branch information
ankurjuneja authored May 24, 2024
1 parent c20b4c2 commit a17d354
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/webapp/vis/src/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -1816,8 +1816,14 @@ boxPlot.render();
minValue = mean;
} else if (config.qcPlotType === LABKEY.vis.TrendingLinePlotType.LeveyJennings) {
if (config.properties.boundType === LABKEY.vis.PlotProperties.BoundType.StandardDeviation) {
maxValue = config.properties.upperBound + cushion;
minValue = config.properties.lowerBound - cushion;
if (config.properties.valueConversion === 'standardDeviation') {
maxValue = config.properties.upperBound + cushion;
minValue = config.properties.lowerBound - cushion;
}
else if (config.properties.valueConversion === 'percentDeviation' && !config.properties.combined && stddev ) {
maxValue = mean + ((config.properties.upperBound + cushion) * stddev);
minValue = mean + ((config.properties.lowerBound - cushion) * stddev);
}
}
else if (config.properties.boundType === LABKEY.vis.PlotProperties.BoundType.MeanDeviation) {
maxValue = mean + config.properties.upperBound + cushion;
Expand Down Expand Up @@ -1941,7 +1947,6 @@ boxPlot.render();
// Handle value conversions
convertValues(config.properties.valueConversion);
if (config.qcPlotType === LABKEY.vis.TrendingLinePlotType.LeveyJennings) {
meanStdDevData[index] = row;
if (config.properties.boundType === LABKEY.vis.PlotProperties.BoundType.Absolute) {
row.upperBound = config.properties.upperBound;
row.lowerBound = config.properties.lowerBound;
Expand Down Expand Up @@ -2112,6 +2117,10 @@ boxPlot.render();

tickLabelMap[index] = row[config.properties.xTickLabel];
row.seqValue = index;

if (config.qcPlotType === LABKEY.vis.TrendingLinePlotType.LeveyJennings) {
meanStdDevData[index] = row;
}
}

// min x-axis tick length is 10 by default
Expand Down

0 comments on commit a17d354

Please sign in to comment.