Skip to content

Commit

Permalink
/DG: added rescale and subchart on zooming
Browse files Browse the repository at this point in the history
subchart side effect:
when zoomed in, de-/selecting curves doesn't zoom out
  • Loading branch information
DE-cr committed Sep 4, 2024
1 parent 525c202 commit ca9819a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion BSB_LAN/html_strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ const char graph_html[] =
"}," NEWLINE
"point:{show:false}," NEWLINE
"axis:{x:{type:'timeseries',tick:{count:3,format:e}}}," NEWLINE
"zoom:{enabled:true}," NEWLINE
"zoom:{" NEWLINE
"enabled:true," NEWLINE
"rescale:true," NEWLINE
"onzoomstart:function(){c.subchart.show()}" NEWLINE
"}," NEWLINE
"size:{height:window.innerHeight-20}," NEWLINE
"onresize:function(){c.resize({height:window.innerHeight-20})}" NEWLINE
"})" NEWLINE
Expand Down
6 changes: 5 additions & 1 deletion BSB_LAN/scripts/BSB-LAN_datalog-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@
},
point:{show:false},
axis:{x:{type:'timeseries',tick:{count:3,format:f}}},
zoom:{enabled:true},
zoom:{
enabled:true,
rescale:true,
onzoomstart:function(){c.subchart.show()}
},
size:{height:window.innerHeight-40},
onresize:function(){c.resize({height:window.innerHeight-40})}
});
Expand Down

0 comments on commit ca9819a

Please sign in to comment.