Skip to content

Commit

Permalink
Make taxa labels as italic
Browse files Browse the repository at this point in the history
  • Loading branch information
ttsudipto committed Sep 12, 2023
1 parent 9f09f36 commit ce725b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/plot_heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function extractDataFromCSV(csv) {
for(var i=1; i<csv[0].length; ++i)
x.push(csv[0][order[i-1]+1]);
for(var i=1; i<csv.length; ++i) {
y.push(csv[i][0]);
y.push('<i>' + csv[i][0] + '</i>');
row = [];
for(var j=1; j<csv[i].length; ++j)
row.push(parseFloat(csv[i][order[j-1]+1]).toFixed(3));
Expand Down
2 changes: 1 addition & 1 deletion js/plot_lda.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function getDataMap(csv) {
var dataMap = new Map();
for(var i=1; i<csv.length; ++i) {
var group = csv[i][2];
var name = csv[i][1];
var name = '<i>' + csv[i][1] + '</i>';
var score = parseFloat(csv[i][3]);
if(dataMap.has(group)) {
dataMap.get(group).names.push(name);
Expand Down
2 changes: 1 addition & 1 deletion js/plot_similarity.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function makeLikertPlot(div_id, yAxisHeadings, dataMap) {

chart.data = []
for(var x of intersection.entries()) {
chart.data.push({'category': x[0], 'is1': -x[1][0], 'is2': x[1][1]});
chart.data.push({'category': '[font-style: italic]' + x[0] + '[/]', 'is1': -x[1][0], 'is2': x[1][1]});
}
// document.getElementById('foo').innerHTML = JSON.stringify(chart.data);

Expand Down

0 comments on commit ce725b9

Please sign in to comment.