highcharts-rails 2.2.2 → 2.2.3

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.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.2.3 (2012-05-07)
2
+
3
+ * Updated Highcharts to 2.2.3
4
+
1
5
  ## 2.2.2 (2012-04-26)
2
6
 
3
7
  * Updated Highcharts to 2.2.2
data/README.markdown CHANGED
@@ -12,7 +12,9 @@ Add the gem to the Gemfile
12
12
 
13
13
  ## Changes
14
14
 
15
- Refer to the [Highcharts changelog](http://www.highcharts.com/documentation/changelog#highcharts)
15
+ We have a tiny changelog for this gem, but since it's just a tiny wrapper gem,
16
+ refer to the [Highcharts changelog](http://www.highcharts.com/documentation/changelog#highcharts)
17
+ for the important things.
16
18
 
17
19
  ## Usage
18
20
 
@@ -1,3 +1,3 @@
1
1
  module Highcharts
2
- VERSION = "2.2.2"
2
+ VERSION = "2.2.3"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  // @compilation_level SIMPLE_OPTIMIZATIONS
3
3
 
4
4
  /**
5
- * @license Highcharts JS v2.2.2 (2012-04-26)
5
+ * @license Highcharts JS v2.2.3 (2012-05-07)
6
6
  *
7
7
  * (c) 2009-2011 Torstein Hønsi
8
8
  *
@@ -1284,7 +1284,7 @@ defaultOptions = {
1284
1284
  },
1285
1285
  global: {
1286
1286
  useUTC: true,
1287
- canvasToolsURL: 'http://code.highcharts.com/2.2.2/modules/canvas-tools.js'
1287
+ canvasToolsURL: 'http://code.highcharts.com/2.2.3/modules/canvas-tools.js'
1288
1288
  },
1289
1289
  chart: {
1290
1290
  //animation: true,
@@ -6676,20 +6676,26 @@ function Chart(userOptions, callback) {
6676
6676
  } else if (max < roundedMax) {
6677
6677
  tickPositions.pop();
6678
6678
  }
6679
+ }
6680
+ }
6679
6681
 
6680
- // record the greatest number of ticks for multi axis
6681
- if (!maxTicks) { // first call, or maxTicks have been reset after a zoom operation
6682
- maxTicks = {
6683
- x: 0,
6684
- y: 0
6685
- };
6686
- }
6682
+ /**
6683
+ * Set the max ticks of either the x and y axis collection. #840.
6684
+ */
6685
+ axis.setMaxTicks = function () {
6687
6686
 
6688
- if (!isDatetimeAxis && tickPositions.length > maxTicks[xOrY] && options.alignTicks !== false) {
6689
- maxTicks[xOrY] = tickPositions.length;
6690
- }
6687
+ // record the greatest number of ticks for multi axis
6688
+ if (!maxTicks) { // first call, or maxTicks have been reset after a zoom operation
6689
+ maxTicks = {
6690
+ x: 0,
6691
+ y: 0
6692
+ };
6691
6693
  }
6692
- }
6694
+
6695
+ if (!isLinked && !isDatetimeAxis && tickPositions.length > maxTicks[xOrY] && options.alignTicks !== false) {
6696
+ maxTicks[xOrY] = tickPositions.length;
6697
+ }
6698
+ };
6693
6699
 
6694
6700
  /**
6695
6701
  * When using multiple axes, adjust the number of ticks to match the highest
@@ -6776,6 +6782,8 @@ function Chart(userOptions, callback) {
6776
6782
  axis.isDirty = isDirtyAxisLength || min !== oldMin || max !== oldMax;
6777
6783
  }
6778
6784
  }
6785
+
6786
+ axis.setMaxTicks();
6779
6787
  }
6780
6788
 
6781
6789
  /**
@@ -9733,6 +9741,7 @@ function Chart(userOptions, callback) {
9733
9741
  maxTicks = null; // reset for second pass
9734
9742
  each(axes, function (axis) {
9735
9743
  axis.setTickPositions(true); // update to reflect the new margins
9744
+ axis.setMaxTicks();
9736
9745
  });
9737
9746
  adjustTickAmounts();
9738
9747
  getMargins(); // second pass to check for new labels
@@ -13635,6 +13644,6 @@ extend(Highcharts, {
13635
13644
  extendClass: extendClass,
13636
13645
  placeBox: placeBox,
13637
13646
  product: 'Highcharts',
13638
- version: '2.2.2'
13647
+ version: '2.2.3'
13639
13648
  });
13640
- }());
13649
+ }());
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.2 (2012-04-26)
2
+ * @license Highcharts JS v2.2.3 (2012-05-07)
3
3
  * MooTools adapter
4
4
  *
5
5
  * (c) 2010-2011 Torstein Hønsi
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.2 (2012-04-26)
2
+ * @license Highcharts JS v2.2.3 (2012-05-07)
3
3
  * Prototype adapter
4
4
  *
5
5
  * @author Michael Nelson, Torstein Hønsi.
@@ -2908,7 +2908,7 @@ if (CanvasRenderingContext2D) {
2908
2908
  });
2909
2909
  }
2910
2910
  }/**
2911
- * @license Highcharts JS v2.2.2 (2012-04-26)
2911
+ * @license Highcharts JS v2.2.3 (2012-05-07)
2912
2912
  * CanVGRenderer Extension module
2913
2913
  *
2914
2914
  * (c) 2011-2012 Torstein Hønsi, Erik Olsson
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v2.2.2 (2012-04-26)
2
+ * @license Highcharts JS v2.2.3 (2012-05-07)
3
3
  * Exporting module
4
4
  *
5
5
  * (c) 2010-2011 Torstein Hønsi
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-26 00:00:00.000000000 +02:00
12
+ date: 2012-05-07 00:00:00.000000000 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
17
- requirement: &70185090385860 !ruby/object:Gem::Requirement
17
+ requirement: &70141128675820 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70185090385860
25
+ version_requirements: *70141128675820
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: bundler
28
- requirement: &70185090385360 !ruby/object:Gem::Requirement
28
+ requirement: &70141128675320 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '1.0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70185090385360
36
+ version_requirements: *70141128675320
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: rails
39
- requirement: &70185090384900 !ruby/object:Gem::Requirement
39
+ requirement: &70141128674860 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '3.1'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70185090384900
47
+ version_requirements: *70141128674860
48
48
  description: Gem that includes Highcharts (Interactive JavaScript charts for your
49
49
  web projects), in the Rails Asset Pipeline introduced in Rails 3.1
50
50
  email: