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

154
Visualizações
Apexcharts Synchronized Line Charts

I developed an angular application with three synchronized line charts (let's assume this is a very helpful example: https://apexcharts.com/angular-chart-demos/line-charts/syncing-charts/).

Now, I cannot find a way to use the toolbar export functionality for all three charts at the same time. I mean: if I click the export PNG button, it exports just one of the three charts. Is it possible to have a kind of "general" export functionality that involves all the charts belonging to the same chart group?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I think the only option is to add a custom menu icon that will download all of them https://apexcharts.com/docs/options/chart/toolbar/#customIcons

And for click method

click: async () => {
    let ids = ['chart1', 'chart2'] // you can't select chart by group so we need all ids
    for await (let id of ids) {
        let dataURI = await ApexCharts.exec(id, 'dataURI')
        fetch(dataURI.imgURI).then(res => res.blob()).then(res2 => {
            let url = URL.createObjectURL(res2)
            let a = document.createElement("a");
            a.href = url
            a.download=`${id}.png`
            a.click();
        })
    }
}
about 4 years ago · Juan Pablo Isaza Relatório
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