Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

167
Vistas
How to solve changing react-google-chart size?

I am using the same chart component in the tabs. When the page opens the chart in the first tab looks normal size and when I click the second tab my second chart looks smaller. The size of the chart changes. And when I click a filter button for the chart, the chart comes in the right size. The chart in the first tab: the first tab

The second tab: the second tab

How can I solve this problem?

chart

<div
            style={{
              alignItems: "center",
              justifyContent: "center",
              alignSelf: "center",
              alignContent: "center",
              margin: "auto 0",
              marginLeft: "5%",
            }}
          >
            <Chart
              style={{ margin: "auto 0" }}
              width={"100%"}
              height={"460px"}
              chartType="LineChart"
              loader={<div>Chart Yükleniyor</div>}
              data={a}
              options={{
                backgroundColor: "transparent",
                titleTextStyle: { color: col1 },
                hAxis: {
                  textStyle: { color: col1 },
                  gridlines: { color: col1 },
                  color: col1,
                  baselineColor: col1,
                  direction: "-1",
                },
                vAxis: {
                  textStyle: {
                    color: col1,
                  },
                },
                title: spectitle,
                series: [...titleIndex].reverse().map((a) => ({
                  color: colors[a.i],
                })),
                lineWidth: 4,
                legend: "none",
                pointSize: 6,
              }}
            />
            {this.props.titles.map((title, index) => (
              <Button
                ...
                filters
                ...
              </Button>
            ))}
          </div>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda