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

105
Visualizações
How can you combine multiple graphs and control with one range selector with Highcharts?

I have multiple graphs one on page. The goal with these charts is to sync the charts up to one range selector (preferably a custom one which allow for predefined time selections ~1day, ~7days, ~30days etc). Something which is similar to that of Grafana and it's layout.

Imagine the following layout

---- Range Selector ----
||||||||||||||||||||||||
------- Graph 1 --------
||||||||||||||||||||||||
------- Graph 2 --------

I have scoured Highcharts forums for an answer and within the documentation and have not found anything other than to make use of master-detail API Reference

If anyone has attempted anything similar, or seen another framework which could better help in the direction I wish to take, it would be appreciated for any input.

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

0

All you need to do is to connect the navigator range with x-axes extremes by using setExtremes method. The below example is using a navigator from Highstock.

    xAxis: {
        ...,
        events: {
            afterSetExtremes: function(e) {
                chart1.xAxis[0].setExtremes(e.min, e.max, true, false);
                chart2.xAxis[0].setExtremes(e.min, e.max, true, false);
            }
        }
    }

Live demo: http://jsfiddle.net/BlackLabel/4Lfegyqa/

API Reference: https://api.highcharts.com/class-reference/Highcharts.Axis#setExtremes

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