simple_chartjs 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b2ca58c8360dc9ed5be0ff6eb0952563466c4ea
4
- data.tar.gz: 184192015efb8920505ab2966b2e7b3b9fc24a0e
3
+ metadata.gz: 54a2e61e50e0ea78453e8fce2d852c51a560fc6b
4
+ data.tar.gz: 9fbcc04fab8b4c78a04788036001a709035ed5b4
5
5
  SHA512:
6
- metadata.gz: 4d1be10f22bfa45f4f7650d1b8d74dec5d0aed8d17e54faf22a86b0f17bda70f4a544c3ce6845c1c99819f797e513887598c559db0aaa1868a6ead396d53c969
7
- data.tar.gz: b693ee1646f48b5e88c2a0270609131871482a836781aaa153b7acedc07a36bad350ba69d28b8047802a866f805b6d71dd9ce3b0170987231bdcf0c05b59d995
6
+ metadata.gz: 079a116b48d8e12569ed19098b783cf7a97d949de98e6d00fe162dde52b7e52cbd55d5bbdcf7bae33754fb98f3b9a04d5eede9fad0fa41b77d959bc60c053127
7
+ data.tar.gz: 0fdab0d3dd24e30cbc6e78037d810b74a44badddb81c56eacbde45658c36df9ffe8c215b33a8bccc9203df575e1c629850633642b1f50da1c5adf3fa433ed78d
@@ -1,6 +1,6 @@
1
1
  function SimpleChart(type, id, url, width, height, datasetProperties, configurationOptions) {
2
2
  this.ctx = document.getElementById(id);
3
- this.chartType = type;
3
+ this.chartType = this.convertToCamelCase(type);
4
4
  this.url = url;
5
5
  this.width = width;
6
6
  this.height = height;
@@ -7,7 +7,7 @@ module Chartjs
7
7
  using Squish
8
8
 
9
9
  CHART_TYPES = %i[
10
- line bar radar doughnut pie polar_area bubble scatter area mixed
10
+ line bar horizontal_bar radar doughnut pie polar_area bubble scatter area mixed
11
11
  ].freeze
12
12
 
13
13
  CHART_TYPES.each do |chart|
@@ -1,3 +1,3 @@
1
1
  module SimpleChartjs
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_chartjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Venables