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

180
Visualizações
Highcharts Using Data from Ruby on Rails Database

I currently have graphs on my Rails app that I implement using Chartkick. The following code is what I have in my view to render the actual graph. The path graphs_site_hot_water_status_path(@site) connects to a controller where I have all the logic for how my data is being queried from the database, which ideally would stay the same as it is quite complex.

 <%= line_chart graphs_site_hot_water_status_path(@site), colors: ['#AE42CE', '#DD6539','#093FF7', '#B2461F', '#A8BCFD', '#E68F6F'], refresh: @refresh_rate, ytitle: t(".fahrenheit"), xtitle: t(".timestamp") %>

My goal is to be able to format my graph using Highcharts customization, but I can't figure out how to input my data the same way when using Highcharts because I can't pass it into Javascript using Ruby code. Is there a way to pull my data in the same manner I currently am, but without using Chartkick?

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

0

I think you could use daru-view to use Highcharts with Ruby on Rails. For more about that, you can read these articles:

https://www.highcharts.com/blog/tutorials/how-to-create-charts-with-daru-view-and-highcharts/ https://www.highcharts.com/blog/tutorials/i-am-ruby-developer-how-can-i-use-highcharts/

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