Skip to content

Commit

Permalink
added pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
mojafa committed Mar 15, 2023
1 parent 7baf780 commit bde0c7f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,5 @@ gem "chartkick"

gem "dotenv-rails", groups: [:development, :test]
gem "cloudinary"

gem "groupdate", "~> 6.2"
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ GEM
sassc (~> 2.0)
globalid (1.1.0)
activesupport (>= 5.0)
groupdate (6.2.0)
activesupport (>= 5.2)
http-accept (1.7.0)
http-cookie (1.0.5)
domain_name (~> 0.5)
Expand Down Expand Up @@ -285,6 +287,7 @@ DEPENDENCIES
devise
dotenv-rails
font-awesome-sass (~> 6.1)
groupdate (~> 6.2)
jbuilder
jsbundling-rails
pg (~> 1.1)
Expand Down
3 changes: 1 addition & 2 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
import "@hotwired/turbo-rails"
import "./controllers"
import "bootstrap"
import "chartkick"
import "Chart.bundle"
import "chartkick/chart.js"
1 change: 1 addition & 0 deletions app/views/expenses/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
</ul>
<%= pie_chart Expense.group(:name).count %>


</div>
2 changes: 0 additions & 2 deletions config/importmap.rb

This file was deleted.

0 comments on commit bde0c7f

Please sign in to comment.