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

126
Vistas
Render chart in bootstrap modal using jquery

I am using chart js to load the chart in my html page. I have created the chart successfully and showing in my canvas. Now I want to load that chart html into my popup using jquery on some button click.

I wrote the code as ---

window.showChartPopup = function(title,id){
    jQuery.noConflict();
    $("#chartPopupModal").find('#chart-title').html(title);
    $("#chartPopupModal").find('#chart-content').html($("#"+id).html());
    $("#chartPopupModal").modal('show');
}

I am calling showChartPopup function on the button click with passing some title and the id of that div which is outer div of the canvas in my html page. but this code showing me the popup with no chart showing on it..

can any one help me how can render the chart html into my modal as I want one modal to all charts in my single page so that i can load each chart in my modal.

Thanks in advance

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