mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
#2259: Use a Chartjs-ror version with airblade/chartjs-ror#57 applied. Adds a container around each chart allowing to enable responsivity and get a less fuzzy chart.
This commit is contained in:
parent
5ec2c77f78
commit
e92b22ea30
4 changed files with 10 additions and 8 deletions
2
Gemfile
2
Gemfile
|
|
@ -38,7 +38,7 @@ gem 'paperclip'
|
|||
# To use ActiveModel has_secure_password
|
||||
gem 'bcrypt', '~> 3.1.13'
|
||||
|
||||
gem 'chartjs-ror'
|
||||
gem 'chartjs-ror', :github => 'ZeiP/chartjs-ror', :branch => 'bug/41_container_element'
|
||||
|
||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||
# gem 'turbolinks'
|
||||
|
|
|
|||
12
Gemfile.lock
12
Gemfile.lock
|
|
@ -1,3 +1,11 @@
|
|||
GIT
|
||||
remote: git://github.com/ZeiP/chartjs-ror.git
|
||||
revision: e9d3aabbda3059c001144833d915a386d8b511c5
|
||||
branch: bug/41_container_element
|
||||
specs:
|
||||
chartjs-ror (3.6.4)
|
||||
rails (>= 3.1)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
|
|
@ -66,8 +74,6 @@ GEM
|
|||
activesupport (>= 3.0.0)
|
||||
uniform_notifier (~> 1.11)
|
||||
byebug (11.0.1)
|
||||
chartjs-ror (3.6.4)
|
||||
rails (>= 3.1)
|
||||
childprocess (1.0.1)
|
||||
rake (< 13.0)
|
||||
climate_control (0.2.0)
|
||||
|
|
@ -277,7 +283,7 @@ DEPENDENCIES
|
|||
bootstrap-sass (= 3.4.1)
|
||||
bullet
|
||||
byebug
|
||||
chartjs-ror
|
||||
chartjs-ror!
|
||||
codeclimate-test-reporter (= 1.0.7)
|
||||
coffee-rails (~> 4.2.0)
|
||||
database_cleaner
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
options = {
|
||||
width: "400px",
|
||||
height: "400px",
|
||||
maintainAspectRatio: false,
|
||||
responsive: false,
|
||||
plugins: {
|
||||
colorschemes: {
|
||||
scheme: 'brewer.Paired12',
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ Stats::TopContextsQuery.new(current_user).result.map { |context|
|
|||
options = {
|
||||
width: "400px",
|
||||
height: "400px",
|
||||
maintainAspectRatio: false,
|
||||
responsive: false,
|
||||
plugins: {
|
||||
colorschemes: {
|
||||
scheme: 'brewer.Paired12',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue