chartkick 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  * Chartkick.js
3
3
  * Create beautiful charts with one line of JavaScript
4
4
  * https://github.com/ankane/chartkick.js
5
- * v4.1.0
5
+ * v4.1.1
6
6
  * MIT License
7
7
  */
8
8
 
@@ -748,17 +748,17 @@
748
748
 
749
749
  if (chart.xtype === "datetime") {
750
750
  if (notnull(xmin)) {
751
- options.scales.x.ticks.min = toDate(xmin).getTime();
751
+ options.scales.x.min = toDate(xmin).getTime();
752
752
  }
753
753
  if (notnull(xmax)) {
754
- options.scales.x.ticks.max = toDate(xmax).getTime();
754
+ options.scales.x.max = toDate(xmax).getTime();
755
755
  }
756
756
  } else if (chart.xtype === "number") {
757
757
  if (notnull(xmin)) {
758
- options.scales.x.ticks.min = xmin;
758
+ options.scales.x.min = xmin;
759
759
  }
760
760
  if (notnull(xmax)) {
761
- options.scales.x.ticks.max = xmax;
761
+ options.scales.x.max = xmax;
762
762
  }
763
763
  }
764
764
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chartkick
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-23 00:00:00.000000000 Z
11
+ date: 2021-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org