Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/Charts/MultiLine/MultiLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export function MultiLineChart({
enableSeriesFilter = false,
relativeSlots,
syncGroup,
notMerge = true,
}: MultiLineChartProps): React.JSX.Element {
// Get callback ref for crosshair sync
const chartRef = useSharedCrosshairs({ syncGroup });
Expand Down Expand Up @@ -767,7 +768,7 @@ export function MultiLineChart({
minHeight: typeof _height === 'number' && !(showLegend && series.length > 1) ? _height + 52 : _height,
pointerEvents: 'auto',
}}
notMerge={false}
notMerge={notMerge}
opts={{ renderer: 'canvas' }}
/>
</div>
Expand Down
7 changes: 7 additions & 0 deletions src/components/Charts/MultiLine/MultiLine.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,11 @@ export interface MultiLineChartProps {
* Charts with the same syncGroup will have synchronized tooltips and axis pointers
*/
syncGroup?: string;
/**
* Whether to merge or replace chart options on update
* When true, completely replaces chart options (recommended for toggling series)
* When false, merges new options with existing chart state (better performance for frequent updates)
* @default true
*/
notMerge?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ function BlobDataAvailabilityComponent({
tooltipTrigger="axis"
tooltipFormatter={continentalTooltipFormatter}
animationDuration={0}
notMerge={false}
/>
</div>
</div>
Expand Down Expand Up @@ -232,6 +233,7 @@ function BlobDataAvailabilityComponent({
tooltipTrigger="axis"
tooltipFormatter={continentalTooltipFormatter}
animationDuration={0}
notMerge={false}
/>
</div>
</div>
Expand All @@ -248,6 +250,7 @@ function BlobDataAvailabilityComponent({
tooltipTrigger="axis"
tooltipFormatter={continentalTooltipFormatter}
animationDuration={0}
notMerge={false}
/>
</div>
</>
Expand Down