Skip to content

Commit

Permalink
Update allTraits.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenasandoval88 committed Mar 25, 2024
1 parent e27266d commit c8b7d87
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sdk/allTraits.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,6 @@ topBarCategoriesDiv.on('plotly_click', async function (data) {

// bar chart of variant size by trait from pie selection------------------------
document.getElementById("pgsPie").on('plotly_click', async function (data3) {
console.log(data3)
console.log("scoreFiles", scoreFiles)
let res = scoreFiles.filter(x => x.trait_reported === data3.points[0].label).sort((a, b) => a.variants_number - b.variants_number)
console.log("res", res)

Expand All @@ -338,16 +336,14 @@ topBarCategoriesDiv.on('plotly_click', async function (data) {
}];
var layout = {
autosize: true,
title: `${res.length} "${data3.points[0].label}" entries`,
title: `Variant sizes ${res.length} "${data3.points[0].label}" entries`,
margin: { l: 290, r: 20, t: -10, b: -10 },
xaxis: {
autorange: false,
range: [0, 500],
type: 'linear'
},
}

console.log("layout", layout)
plotly.newPlot('thirdBarCategories', data2, layout);

})
Expand Down

0 comments on commit c8b7d87

Please sign in to comment.