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

142
Visualizações
How can I set the timeline range in Apexcharts to a default to 1 month? The events not in the range can be scrolled horizontally

timeline date range

I'm working on a project and for better visibility I would like to display a daterange of max 4 weeks as default. There are timestamps in the future ahead, but it's not important to display them all at once. Scrolling horizontally will help with future timestamps.

this.chartOptions = {
  series: [
    {
      data: [
        {
          x: "System 34",
          y: [
            new Date("2019-03-02").getTime(),
            new Date("2019-03-04").getTime()
          ]
        },
        {
          x: "System 34",
          y: [
            new Date("2019-03-15").getTime(),
            new Date("2019-03-19").getTime()
          ]
        },
        {
          x: "System 34",
          y: [
            new Date("2020-03-15").getTime(),
            new Date("2020-03-19").getTime()
          ]
        },
        {
          x: "System 35",
          y: [
            new Date("2019-04-15").getTime(),
            new Date("2019-04-19").getTime()
          ]
        },
        {
          x: "System 36",
          y: [
            new Date("2019-03-04").getTime(),
            new Date("2019-03-08").getTime()
          ]
        },
        {
          x: "System 38",
          y: [
            new Date("2019-03-08").getTime(),
            new Date("2019-03-12").getTime()
          ]
        },
        {
          x: "System 39",
          y: [
            new Date("2019-03-12").getTime(),
            new Date("2019-03-18").getTime()
          ]
        }
      ]
    }
  ],
  chart: {
    height: 390,
    type: "rangeBar"
  },
  plotOptions: {
    bar: {
      horizontal: true
    }
  },
  xaxis: {
    type: "datetime",

  }
};

Is there a default zoom for the timeline range of the xaxis?

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