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

94
Visualizações
Chart where x axis is time of day with data covering months. Rails

I have a data taken at various times of day for more than a year. I want to plot the data by time of day. In other words, the x-axis will go from midnight to midnight (00:00 to 23:59).

I'm using Chartkick with High Charts, although I could use Chart.js.

I could create a column with just time of day, but a direct way would be cleaner.

The chart code for all data plotted for recent data is, i.e., from months ago to now:

<%= line_chart Data.where(statdate: date_in_the_past..current_date).pluck(:statdate, :data %>

Trying @ppotaczek's code

The deep dive. Already had the same src for high charts and added code to a scripts tag and added the id="container". line 224 is what to do with an an error. Haven't gone beyond that yet.

highcharts.src.js:224 Uncaught Error: Highcharts error #13: www.highcharts.com/errors/13/
at Object.<anonymous> (highcharts.src.js:224)
at B (highcharts.src.js:1676)
at u (highcharts.src.js:246)
at a.getContainer (highcharts.src.js:31053)
at a.firstRender (highcharts.src.js:31988)
at a.<anonymous> (highcharts.src.js:30306)
at B (highcharts.src.js:1676)
at a.init (highcharts.src.js:30180)
at a.getArgs (highcharts.src.js:30152)
at new a (highcharts.src.js:30094)
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