Skip to content

Commit

Permalink
fixing graphic order
Browse files Browse the repository at this point in the history
  • Loading branch information
chris263 committed Jan 16, 2025
1 parent cd17376 commit 4a3fbb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mason/tools/qualityControl/validated_trials.mas
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ function drawD3Barplot(statsByTrait, selectedTrait) {
// Top filtering (e.g., "5", "10", "25", etc.)
const percentage = parseInt(filterOption, 10); // Extract percentage from top option
const count = Math.ceil((percentage / 100) * sortedData.length);
filteredData = sortedData.slice(-count); // Get the top entries
filteredData = sortedData.slice(0, count); // Get the top entries
} else {
// Bottom filtering (e.g., "bottom-5", "bottom-25")
const percentage = parseInt(filterOption.split('-')[1], 10); // Extract percentage from "bottom-XX"
const count = Math.ceil((percentage / 100) * sortedData.length);
filteredData = sortedData.slice(0, count); // Get the bottom entries
filteredData = sortedData.slice(-count); // Get the bottom entries
}

// Always show values ordered from major to minor
Expand Down

0 comments on commit 4a3fbb2

Please sign in to comment.