Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
¿Cómo resolver el cambio del tamaño de react-google-chart?

Estoy usando el mismo componente de gráfico en las pestañas. Cuando se abre la página, el gráfico en la primera pestaña se ve de tamaño normal y cuando hago clic en la segunda pestaña, mi segundo gráfico se ve más pequeño. El tamaño del gráfico cambia. Y cuando hago clic en un botón de filtro para el gráfico, el gráfico tiene el tamaño correcto. El gráfico en la primera pestaña: la primera pestaña

La segunda pestaña: la segunda pestaña

¿Como puedó resolver esté problema?

cuadro

 <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[ai], })), lineWidth: 4, legend: "none", pointSize: 6, }} /> {this.props.titles.map((title, index) => ( <Button ... filters ... </Button> ))} </div>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!