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

169
Visualizações
how to put a chart js chart inside a table?

I am trying to put a bar chart inside one table field, I am using chart js to create chart and html for making table. The code is...

<div class="table"><table class="table table-borderless">
          <thead>
            <tr>
              <th scope="col">8</th>
              <th scope="col">Product Name</th>
              <th scope="col">Price</th>
              <th scope="col">Sold Items</th>
              <th scope="col">Revenue</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <th scope="row">1.</th>
              <td>Flat 47"1080p</td>
              <td>$ 375</td>
              <td>2,212
                
              </td>
            </tr>
            <tr>
              <th scope="row">2.</th>
              <td>Laptop A10 460M</td>
              <td>$ 345</td>
              <td>2,084</td>
            </tr>
            <tr>
              <th scope="row">3.</th>
              <td>Sound Bar - 600 Watt</td>
              <td>$ 126</td>
              <td>2,018</td>
            </tr>
            <tr>
              <th scope="row">4.</th>
              <td>Flat 55"1080p</td>
              <td >$ 437</td>
              <td>1,921</td>
            </tr>
            <tr>
              <th scope="row">5.</th>
              <td>DSLR D520 18MP1</td>
              <td>$ 460</td>
              <td>1,917</td>
              
            </tr>
            
          </tbody>
        </table></div>
      </div>

I tried adding the chart by simply putting the code of my chart inside a td tag, like how we would add a value to the table. but its not working obviously... How can I add charts in one of the table fields using chart js?

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