@@ -32,6 +32,8 @@ const Charts: React.FC<ChartsProps> = ({
3232 yAxis,
3333 noData,
3434 height = 400 ,
35+ showHeader = true ,
36+ showCollapseIcon = true ,
3537} ) => {
3638 const { breakPointLabel } = useBreakpoints ( BREAKPOINTS )
3739 const isSmallScreen = breakPointLabel === 'sm'
@@ -216,17 +218,20 @@ const Charts: React.FC<ChartsProps> = ({
216218 chartTokens . container . backgroundColor . fullscreen
217219 }
218220 >
219- < ChartHeader
220- slot1 = { slot1 }
221- slot2 = { slot2 }
222- slot3 = { slot3 }
223- chartHeaderSlot = { chartHeaderSlot }
224- onFullscreen = { handleFullscreen }
225- onExitFullscreen = { handleExitFullscreen }
226- isFullscreen = { isFullscreen }
227- isExpanded = { isExpanded }
228- setIsExpanded = { setIsExpanded }
229- />
221+ { showHeader && (
222+ < ChartHeader
223+ slot1 = { slot1 }
224+ slot2 = { slot2 }
225+ slot3 = { slot3 }
226+ chartHeaderSlot = { chartHeaderSlot }
227+ onFullscreen = { handleFullscreen }
228+ onExitFullscreen = { handleExitFullscreen }
229+ isFullscreen = { isFullscreen }
230+ isExpanded = { isExpanded }
231+ setIsExpanded = { setIsExpanded }
232+ showCollapseIcon = { showCollapseIcon }
233+ />
234+ ) }
230235 { showHorizontallyStackedLegends ( )
231236 ? isExpanded && (
232237 < Block
@@ -399,16 +404,19 @@ const Charts: React.FC<ChartsProps> = ({
399404 borderRadius = { chartTokens . container . borderRadius . default }
400405 backgroundColor = { chartTokens . container . backgroundColor . default }
401406 >
402- < ChartHeader
403- slot1 = { slot1 }
404- slot2 = { slot2 }
405- slot3 = { slot3 }
406- chartHeaderSlot = { chartHeaderSlot }
407- onFullscreen = { handleFullscreen }
408- isSmallScreen = { isSmallScreen }
409- isExpanded = { isExpanded }
410- setIsExpanded = { setIsExpanded }
411- />
407+ { showHeader && (
408+ < ChartHeader
409+ slot1 = { slot1 }
410+ slot2 = { slot2 }
411+ slot3 = { slot3 }
412+ chartHeaderSlot = { chartHeaderSlot }
413+ onFullscreen = { handleFullscreen }
414+ isSmallScreen = { isSmallScreen }
415+ isExpanded = { isExpanded }
416+ setIsExpanded = { setIsExpanded }
417+ showCollapseIcon = { showCollapseIcon }
418+ />
419+ ) }
412420 { showHorizontallyStackedLegends ( )
413421 ? isExpanded && (
414422 < Block
0 commit comments