1
+ /* global Highcharts */
2
+
1
3
import { Table } from "./table" ;
2
4
import { DataUtils } from "./utils/data" ;
3
5
import { UIUtils } from "./utils/ui" ;
@@ -120,7 +122,7 @@ class Timeseries {
120
122
/* Get the currently selected subcategory based on the URL */
121
123
const urlParams = new URLSearchParams ( window . location . search ) ;
122
124
const urlSubcategory = urlParams . get ( config . param ) ;
123
- const subcategory = urlSubcategory || config . default ;
125
+ const subcategory = urlSubcategory || config . default ;
124
126
125
127
/* Remove the previous content */
126
128
container . innerHTML = '' ;
@@ -182,7 +184,7 @@ class Timeseries {
182
184
/* Get the currently selected subcategory based on the URL */
183
185
const urlParams = new URLSearchParams ( window . location . search ) ;
184
186
const urlSubcategory = urlParams . get ( config . param ) ;
185
- const subcategory = urlSubcategory || config . default ;
187
+ const subcategory = urlSubcategory || config . default ;
186
188
187
189
/* Get settings */
188
190
const metric = component . dataset . metric ;
@@ -398,7 +400,7 @@ class Timeseries {
398
400
const config = this . pageConfig [ this . id ] ?. viz ;
399
401
const urlParams = new URLSearchParams ( window . location . search ) ;
400
402
const urlSubcategory = urlParams . get ( config . param ) ;
401
- const subcategory = urlSubcategory || config . default ;
403
+ const subcategory = urlSubcategory || config . default ;
402
404
403
405
// Get default colors
404
406
const colors = this . defaults ( config ) ?. chart ?. colors ;
@@ -412,7 +414,7 @@ class Timeseries {
412
414
const value = row ?. [ endpoint ] ?. find ( row => row . name === subcategory ) ?. [ client ] ?. [ metric ] ;
413
415
return {
414
416
x : new Date ( row . date ) . getTime ( ) ,
415
- y : value || 0 ,
417
+ y : value || 0 ,
416
418
} ;
417
419
} ) ;
418
420
0 commit comments