File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
6666 return color ;
6767 } ;
6868
69- function series2storeData ( s : any , idx : number ) : Series {
69+ function series2storeData ( s : Series | number , idx : number ) : Series {
7070
7171 let data : any = { } ;
7272
@@ -144,6 +144,7 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
144144 perc : Math . round ( sv . perc - ( sv . perc - tv . perc ) * t ) ,
145145 prevOffset : sv . prevOffset - ( sv . prevOffset - tv . prevOffset ) * t ,
146146 } ;
147+
147148 }
148149
149150 const toColor = to . series [ idx ] . hasOwnProperty ( 'color' ) && to . series [ idx ] . color ? to . series [ idx ] . color : getColorForSeries ( newSeries [ idx ] , idx ) ;
@@ -182,10 +183,8 @@ export function seriesStore(series: Array<Series>, props): SeriesStore {
182183 newSeries = [ newSeries ] ;
183184
184185 newSeries = newSeries . map ( s => {
185-
186186 if ( typeof s != 'object' )
187187 s = { perc : s } ;
188-
189188 return s ;
190189 } ) ;
191190
You can’t perform that action at this time.
0 commit comments