Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Update dann.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasvlevi committed Oct 14, 2020
1 parent 12582f7 commit 061c209
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dann.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,14 @@ class Graph {
fill(this.color[a])
rect((this.pos.x+this.w)-((this.pos.x+this.w)/6),(a*20)+10+this.pos.y,20,10);
//let textstr = Object.keys({this.lines[a]})[0];
line(i/int(this.s))+this.pos.x,this.pos.y-10,i/int(this.s))+this.pos.x,this.pos.y)

//console.log(Object.keys(this.lines[a])[0]);
text(this.names[a],(this.pos.x+this.w)-((this.pos.x+this.w)/6)+23,(a*20)+19+this.pos.y);
noFill();
}
for (let i = 0; i < (this.w/this.step)*(this.s); i++) {
line((this.step*i)/int(this.s)+this.pos.x,this.pos.y-10,(this.step*i)/int(this.s)+this.pos.x,this.pos.y)
}
noStroke();
}

Expand Down

0 comments on commit 061c209

Please sign in to comment.