I am using MUI X Line Chart but it is not responsive.
              <div className="grid sm:col-span-full lg:grid-cols-2 lg:grid-rows-3 lg:gap-8">
            <div className="overflow:hidden">
              <LineChart
                xAxis={[
                  {
                    id: "Years",
                    data: years,
                    scaleType: "utc",
                    valueFormatter: (date) =>
                      date.toLocaleDateString("en-US", {
                        year: "numeric",
                        month: "short",
                      }),
                  },
                ]}
                series={[
                  {
                    id: "France",
                    label: "Quarter",
                    data: FranceGDPperCapita,
                    stack: "total",
                    area: true,
                    showMark: true,
                  },
                ]}
                height={400}
                width={600}
                margin={{ left: 70 }}
              />
            </div>
          </div>
 
                        
To make a
LineChartcomponent reactive, you need to remove theheightandwidthproperties and give the parent element a height and width that are reactive, as required.For example: