File tree 1 file changed +2
-3
lines changed
app/ui/src/components/charts/spark_lines
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ export class SparkLines {
51
51
52
52
let idx = 0
53
53
for ( let s of this . currentSeries . concat ( this . baseSeries ) ) {
54
- let series = s . series
55
54
if ( ! this . uniqueItems . has ( s . name ) ) {
56
55
this . uniqueItems . set ( s . name , idx ++ )
57
56
}
@@ -65,11 +64,11 @@ export class SparkLines {
65
64
let [ smoothWindow , _ ] = getSmoothWindow ( this . currentSeries , this . baseSeries , opt . smoothValue )
66
65
for ( let i = 0 ; i < this . currentSeries . length ; i ++ ) {
67
66
let smoothedSeries = smoothSeries ( this . currentSeries [ i ] . series , smoothWindow [ 0 ] [ i ] )
68
- this . currentSmoothedValues . push ( smoothedSeries . map ( d => d . value ) )
67
+ this . currentSmoothedValues . push ( smoothedSeries . map ( d => d . smoothed ) )
69
68
}
70
69
for ( let i = 0 ; i < this . baseSeries . length ; i ++ ) {
71
70
let smoothedSeries = smoothSeries ( this . baseSeries [ i ] . series , smoothWindow [ 0 ] [ 1 ] )
72
- this . baseSmoothedValues . push ( smoothedSeries . map ( d => d . value ) )
71
+ this . baseSmoothedValues . push ( smoothedSeries . map ( d => d . smoothed ) )
73
72
}
74
73
75
74
this . stepExtent = getExtent ( this . currentSeries . concat ( this . baseSeries ) . map ( s => s . series ) , d => d . step )
You can’t perform that action at this time.
0 commit comments