Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

168
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda