@@ -170,7 +170,8 @@ export class ParallelCoordinatesController extends DatasetController<
170
170
const meta = this . _cachedMeta as unknown as IExtendedChartMeta ;
171
171
172
172
const firstOpts = this . resolveDataElementOptions ( start , mode ) ;
173
- const sharedOptions = this . getSharedOptions ( firstOpts ) ?? { } ;
173
+ const dummyShared = { } ;
174
+ const sharedOptions = this . getSharedOptions ( firstOpts ) ?? dummyShared ;
174
175
const includeOptions = this . includeOptions ( mode , sharedOptions ) ;
175
176
const getPoint = ( metaIndex : number , index : number , defaultValue : { x : number ; y : number } ) => {
176
177
const m = meta . _metas [ metaIndex ] ;
@@ -192,7 +193,8 @@ export class ParallelCoordinatesController extends DatasetController<
192
193
this . updateSharedOptions ( sharedOptions , mode , firstOpts ) ;
193
194
194
195
for ( let i = start ; i < start + count ; i += 1 ) {
195
- const options = this . resolveDataElementOptions ( i , mode ) ;
196
+ const options : typeof firstOpts =
197
+ sharedOptions === dummyShared ? this . resolveDataElementOptions ( i , mode ) : sharedOptions ;
196
198
197
199
const xy = getPoint ( meta . _metaIndex , i , { x : 0 , y : 0 } ) ;
198
200
const xyPrevious = getPoint ( meta . _metaIndex - 1 , i , xy ) ;
@@ -218,7 +220,7 @@ export class ParallelCoordinatesController extends DatasetController<
218
220
}
219
221
220
222
if ( includeOptions ) {
221
- properties . options = ( sharedOptions || options ) as any ;
223
+ properties . options = options as any ;
222
224
}
223
225
this . updateElement ( rectangles [ i ] , i , properties , mode ) ;
224
226
}
0 commit comments