Skip to content

Commit

Permalink
Memory timelines are now zoomable.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Feb 6, 2022
1 parent 86bbd14 commit 9c3a6a4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scalene/scalene-gui/scalene-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,20 @@ function makeSparkline(samples, max_x, max_y, height = 10, width = 75) {
"values": values
},
"mark" : { "type" : "line", "strokeWidth": strokeWidth, "interpolate" : "step-after" },
"selection" : {
"grid" : {
"type": "interval",
"bind": "scales"
}
},
"encoding" : {
"x" : {"field": "x",
"type" : "quantitative",
"axis" : false,
"axis" : {
"tickCount" : 10,
"labelExpr" : false,
},
"title" : null,
"scale" : { "domain" : [0, max_x] }},
"y" : {"field": "y",
"type" : "quantitative",
Expand Down

0 comments on commit 9c3a6a4

Please sign in to comment.