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
15
votes
1 answer

Rails chartkick stacked bar charts

I'm trying to create a stacked bar chart using Rails Chartkick gem and I'm using Google charts API. I have use this line to generate the bar chart using chartkick. <%= bar_chart data, :library => {:isStacked => true} %> But what i'm getting is a…
TMKasun
  • 784
  • 7
  • 24
9
votes
4 answers

Chartkick Pie chart not showing percentages when using library options

In my ROR I want to add Percentages to my Piechart, I'm using the chartkick gem to render the Pie chart. I've tried various approaches to the problem, but none seems to work. I've also googled around and look at similar posts at stack overflow.…
Slowboy
  • 581
  • 1
  • 7
  • 25
7
votes
2 answers

Rails + Chartkick: How to change the date format of the tooltip?

I am generating the chart (with using Google Chart) this way: <%= area_chart [{:name => "Sold items", data: @items.group(:created_at).count}], :library => {hAxis: {title: "Period"}, vAxis: {title: "Amounts in UDS"}, title: "History Of Sales"} …
user984621
  • 46,344
  • 73
  • 224
  • 412
7
votes
2 answers

Rails chartkick: want only integer values on axes. Use discrete or something else?

Say I have the following code <% data = [ [1,1],[2,3],[3,5],[4,8],[6,4],[7,2] ] %> <%= line_chart data, {discrete: true, library: {width: 600} }%> Using chartkick, this produces the following graph I want the vertical axis to be labeled using…
user2664110
7
votes
5 answers

Rails Chartkick Gem Error Loading Chart No Adapter Found

I have a Rails 3.2.14 app where I'm using the chartkick and groupdate gem to try to generate some basic charts. When I load my view I get the error: Error Loading Chart: No adapter found Here's what my view code looks like: index.html.erb <%=…
nulltek
  • 3,247
  • 9
  • 44
  • 94
6
votes
4 answers

Rails Active Admin + Chartkick = Not working?

I was trying to use Chartkick to generate graph that shows on rails active admin dashboard. Here is the tutorial I am using: http://www.patrickedelman.com/simple-charting-for-activeadmin/ However, the graph did not show up, instead, it shows…
Juan Kou
  • 155
  • 5
  • 12
6
votes
3 answers

Chartkick column charts multiple colors

I'm using chartckick in my RoR project to generate charts, which works quite nice. (along with Google Charts). I've created a column chart with only 2 bars (male and female). And now the client wants that each bar have different color? Is that…
Vucko
  • 20,555
  • 10
  • 56
  • 107
6
votes
2 answers

Making line straight in a line_chart using chartkick and removing dots

I am using a very nice gem to create charts using Ruby on Rails. But I am struggling to make a line chart with straight lines connecting the dots. It always creates curves. I need straight lines. Also I want to know if someone knows how to remove…
erickva
  • 513
  • 6
  • 17
6
votes
3 answers

How can I mix a column and line chart in Rails using Chartkick?

I would like to present graphs in my rails app. I was able to find a lot of projects that could do that, as Chartkick. But I would like to have charts like this one, where I max lines and columns. Is there any project that is able to draw this kind…
JSBach
  • 4,679
  • 8
  • 51
  • 98
6
votes
1 answer

How do i label gem "Chartkick" y & x axis?

Does Chartkick allow users to label the x/y axies? Sample Code: <%= line_chart Product.group("purchased").maximum(:price) %>
elyrly
  • 61
  • 1
  • 7
5
votes
0 answers

Is there a way to include ticks/gridlines on non sequential axis? Also, is it possible to add border styling and custom tick positions?

So, Google charts API is getting deprecated soon, and we're migrating from it into chartkick + chart.js. I've just joined the project, in a change of development team, so I'm fairly new to it, which makes matters even more complicated. Anyway, I've…
5
votes
0 answers

How to customize legend in Google Charts with Chartkick

I'm using Chartkick for visualization some statisitcs data in my Ruby-on-Rails project. Chartkick based on Google Charts. Is there some way to customized data output in legend of chart? For example: = pie_chart User.get_country_statistic, library:…
Gena Shumilkin
  • 713
  • 4
  • 16
5
votes
1 answer

Rails chartkick: customizing separate curves in multi series line chart?

I'm using chartkick to make a multiple series line chart with the following code: <%= line_chart [ {name: @track.name, data: records_of_track(@track).map{|record| [record.time_entered, record.entry]}}, {name: "Goal", data: [[@track.goal_by,…
user2664110
5
votes
4 answers

ReferenceError: Chartkick is not defined

I am using chartkick gem to display chart. I have followed the proper installation documentation but whenever I am trying to use their methods like timeline [["Washington", "1789-04-29", "1797-03-03"], ["Adams", "1797-03-03", "1801-03-03"],…
Sabyasachi Ghosh
  • 2,765
  • 22
  • 33
4
votes
3 answers

Differently displayed colors on chart.js

I pass the same colors to chart.js via Chartkick-vue but they are displayed differently. Why?
Leos Literak
  • 8,805
  • 19
  • 81
  • 156
1
2 3
24 25