I put the Grid Container component above the Chart component in the hope that the child(Chart) component can follow the height of its parent, why isn't this working?

1 Answer 39 Views
Charts
Noor
Top achievements
Rank 1
Iron
Noor asked on 11 Feb 2022, 08:13 AM

I put the Grid Container component above the Chart component in the hope that the child(Chart) component can follow the height of its parent, why isn't this working?

here is my code snippet


<TabPanel value={value} index={0} dir={theme.direction}>
   <Grid container spacing={3} className={styles['card']}>
      <Grid item xs={12} sm={6}>
          <ChartPredictionAnalytic />
       </Grid>
       <Grid item xs={12} sm={6}>
           <ChartAccuration />
       </Grid>
    </Grid>
</TabPanel>

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 11 Feb 2022, 08:25 AM

Hello,

The GridLayout component has default space between its items. That can be controlled with the properties shown here:

https://www.telerik.com/kendo-react-ui/components/layout/gridlayout/layout/

Regards,
Stefan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Charts
Asked by
Noor
Top achievements
Rank 1
Iron
Answers by
Stefan
Telerik team
Share this question
or