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

201
Visualizações
Problems with fill cell in grid: Amcharts + React Grid Layout

I have complicated problem. I am trying to build customizable dashboard. On one page will be view with charts (I am using amcharts 5). Charts should be resizeable - for this purpose I am using React-Grid-Layout. I want to achieve resizeable charts - should fill container, doesn't matter how big will be. But I can't. I can change size of cell, but charts still has sam size (or change only width). I tried with some custom hooks, forward ref passed to Graph element, width.clientHeight and much more. I tried flows:

  • resize child -> change parent size -resize parent -> change child size I used different css properties in material ui - inherit, fit-content. Charts is render as a canvas - it can be a problem. My another idea was pass numer as a prop to ReactGridLayout - to rowHeight. I have no idea what I can do more. Please take a look on my code in sandbox. https://codesandbox.io/s/sparkling-smoke-fcjt8?file=/src/Layout.js

Thanks in advance guys. Cheers.

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