File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 114
114
yAxis : absolute ? {
115
115
title : {
116
116
text : yAxis ,
117
- }
117
+ } ,
118
+ min : 0 ,
118
119
} : {
119
120
softMax : 5 ,
120
121
softMin : - 5 ,
153
154
start : "" ,
154
155
end : "" ,
155
156
stat : "instructions:u" ,
156
- absolute : false ,
157
+ absolute : true ,
157
158
} , state ) ;
158
159
make_request ( "/graph" , values ) . then ( function ( response ) {
159
160
init_graph ( response , values . stat , values . absolute ) ;
Original file line number Diff line number Diff line change @@ -205,6 +205,12 @@ function load_state(callback) {
205
205
}
206
206
if ( state . absolute === true || state . absolute === false ) {
207
207
document . getElementById ( "absolute" ) . checked = state . absolute ;
208
+ } else {
209
+ // check absolute by default
210
+ let element = document . getElementById ( "absolute" ) ;
211
+ if ( element ) {
212
+ element . checked = true ;
213
+ }
208
214
}
209
215
make_settings ( ( ) => {
210
216
if ( state . stat ) {
You can’t perform that action at this time.
0 commit comments