Questions tagged [chartkick]

Create beautiful Javascript charts with one line of Ruby, Python, Javascript, React, Vue, Elixir, and Clojure.

Chartkick supports Chart.js, Google Charts, and Highcharts and works with most browsers. Also provides server-side integration for Ruby, Python, Elixir, and Clojure

361 questions
0
votes
1 answer

How to display two values of two tables on chartkick (ruby on rails)

I have column vote_option belong to Vote table and title in VoteOption table and now I want to show vote_option and title in pair in a pie chart(chartkick). So what exactly should I do? I mean what should I do with this code: <%= pie_chart…
DinhNgocHien
  • 707
  • 3
  • 17
  • 34
0
votes
1 answer

Rails Chartkick doesn't join up points on line chart

I'm currently trying to display some data using chartkick in Rails. I have a 4 sets of data already on the chart where each point contains the same x data, the create at date for the klass_result_set. I now want to add a list of tasks to be…
0
votes
1 answer

Chartkick google geo-chart - is it possible to use a string as tooltip value?

I'm using Chartkick to display this map using the Google api: geo_chart @final_output, library: {backgroundColor: "transparent", width: 400} Right now if I pass it a string as the 2nd value it won't work. But an integer…
bcflow
  • 31
  • 8
0
votes
1 answer

Adding Highcharts to Chartkick Gem

I am trying to add Highcharts to my Rails 4 project that already has the chartkick gem installed. When I use the Google charting library, all charts seem to function as expected. When I add Highcharts instead, I am not able to see any charts. I have…
HermannHH
  • 1,732
  • 1
  • 27
  • 57
0
votes
1 answer

explicit group and having clause with `groupdate` gem

I am using groupdate gem for grouping the records with date/time. I want to group the records and select the users with having clause and then group the records with date/month/time. But its not giving proper result which i want. eg:…
jbmyid
  • 1,985
  • 19
  • 22
0
votes
1 answer

How can I group columns with Chartkick

I have the following data structure: @data = [['Year', 'Sales', 'Expenses', 'Profit'], ['2014', 1000, 400, 200], ['2015', 1170, 460, 250], ['2016', 660, 1120, 300], ['2017', 1030, 540, 350]] and I want to…
Luca G. Soave
  • 12,271
  • 12
  • 58
  • 109
0
votes
0 answers

I want to create a General Diagram using Highcharts in rails

I am using Chartkick and I am interested to use Renderer Chart Highcharts But there are no docs for it in charkick how do I implement that for dynamic data in Rails
Suresh Kumar
  • 227
  • 1
  • 11
  • 29
0
votes
1 answer

How can I see the month and year in x axis with a Date? and values in y axis? with chartkick

How can I see the month and year in x axis with a Date? and values in y axis? with chartkick
<%= line_chart [{name: "Cantidad de voluntarios en estado activo", data: [Time.new, '20'] }, {name: "Study",…
0
votes
1 answer

PG::Error with group_date gem in rails

I have been using this for getting the hourly data of one day, so I have tried like this @getting_each_day = Order.group_by_hour_of_day("2014-08-22 00:00:00").count but it's showing error with postgresql..... PG::Error: ERROR: syntax error at or…
amtest
  • 690
  • 1
  • 6
  • 26
0
votes
1 answer

Chartkick/Google charts only using first colour in array on bar graph

I'm using chartkick in rails to produce graphs like this: <% @graphs.each_with_index do |g, i| %> <%= column_chart g, discrete: true, min: 0.0, max: 1.1, colors: ["pink", "blue", "red"], library: {hAxis: {textStyle: {fontSize: 10}}} %> <%…
Darkstarone
  • 4,590
  • 8
  • 37
  • 74
0
votes
1 answer

Charts or Graphs in Rails

I have a Rails 3.2.14 app that I'd like to add graphs to on our app's dashboard. I've looked at HighCharts, and it seems like a really good option though there's a license fee associated with this so I'm looking for other options to easily graph…
nulltek
  • 3,247
  • 9
  • 44
  • 94
0
votes
1 answer

Line Chart from Chartkick displays correctly locally but is backwards on Heroku

I have 3 line charts created using Chartkick and for some reason 2 render correctly but on one chart the dates along the horizontal axis render in the reverse order after I push up to Heroku. They render fine locally for all three charts. I have a…
0
votes
1 answer

undefined method `each_pair' for :name:Symbol with Chartkick and jsapi.js

I've been trying to debug this issue for 3 days now. Can't seem to figure out what would be throwing this error..any help is much appreciated.. I am trying generated a line chart using google charts and chartkick: Events…
ShaunK
  • 1,181
  • 5
  • 22
  • 41
0
votes
1 answer

How do I change the x-axis label orientation/slant using chartkick?

I am using chartkick to draw a line chart. This works fine except that labels on the x-axis are overlapping and unreadable. I want to change the orientation of these labels on the x-axis so that they are angled out at 45 degrees from the axis. …
Adam Jones
  • 2,370
  • 5
  • 23
  • 40
0
votes
1 answer

Using ChartKickjs with Sinatra and HAML

I'm trying to use ChartKick in my Sinatra application. When trying to create a control such as a barchart I get an error stating undefined method `id' for {:cash=>82, :securities=>58}:Hash file: buffer.rb location: parse_object_ref line: 323 Any…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188