Skip to content

Commit

Permalink
Replaces Highcharts with Chart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaudouinjr committed Feb 22, 2024
1 parent ad8c264 commit f707273
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ gem 'sprockets'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'selectize-rails'
gem 'highcharts-rails', '~> 6.0'
gem 'bootstrap', '~> 4.6.0'
gem 'fullcalendar-rails'
gem 'momentjs-rails'
Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,6 @@ GEM
railties (>= 5.1)
hashdiff (1.1.0)
hashie (5.0.0)
highcharts-rails (6.0.3)
railties (>= 3.1)
httparty (0.21.0)
mini_mime (>= 1.0.0)
multi_xml (>= 0.5.2)
Expand Down Expand Up @@ -557,7 +555,6 @@ DEPENDENCIES
guard
guard-minitest
haml-rails
highcharts-rails (~> 6.0)
httparty
importmap-rails
jbuilder
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//= require activestorage
//= require jquery
//= require jquery-ui/widgets/autocomplete
//= require highcharts
//= require Chart.bundle
//= require chartkick
//= require ./vendor/debounce
//= require_directory .
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/manage/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function applicationReady() {
$('select[data-bulk-row-edit]').bulkRowEdit();
$().bulkRowSelect();
$('body').chartkickAutoReload();
setupHighcharts();
setupChartJs();
$('[data-toggle="popover"]').popover();
$('[data-message-live-preview="textarea"]').messageLivePreview();
setupSimpleMde();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var setupHighcharts = function() {
var setupChartJs = function() {
Highcharts.setOptions({
global: {
useUTC: false,
Expand Down

0 comments on commit f707273

Please sign in to comment.