pizza_chart 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graph.rb +7 -6
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b616f22674d8cec44f4ca60739026b7748fa2297
4
- data.tar.gz: ba54697976552b66ac8efe48d06ab91e856abcf6
3
+ metadata.gz: 69b3388c6fc0a151977e8a17aee5e86755c58980
4
+ data.tar.gz: 5f2f019e116b2535d7969348f9758f4d0a5ebed8
5
5
  SHA512:
6
- metadata.gz: 8aa3e3ae0d680983ebc3ecf16960c4b3fe1e832ddffd730a7bf6ef09f73bb30aac651f379bcdc61848e87bdbba828d7314e36b181d6c582539d93a17ce1c16a2
7
- data.tar.gz: 5a0326a2e34b0e07ff7df28e319262fe71a3f2b390a127a6a8a841efa2dc1b2cf5b9283940d8ce0bf3dbaf68b59dedfa8c966d5744478e03e48033b49eb5c4ac
6
+ metadata.gz: 58fc12746ff4e2141e900f511ef15c4def93f4fb47e01fbe13a462a52e2156dd2e7d541e5ad6a79aa94f5ef0394f42d68518e3cc617e814b63183bc05b7f8b04
7
+ data.tar.gz: 57739a0ef9e94737067055694d1c5783604fd718f1b9e24a87b812e1ba1eb62daa432b19e92cd411086adcd081e7cef52a25a6b28190f71d0fabcde22be65f91
@@ -1,6 +1,6 @@
1
1
  require 'lazy_high_charts'
2
2
  module Charting
3
-
3
+ #this function initializes lazy high chart function specific varaiables with 3 different set of data's and the chart type for multiple columned data
4
4
  def self.multichart(x_name, y_data_1, y_name_1, y_data_2, y_name_2, y_data_3, y_name_3, chart_type)
5
5
  if (chart_type) then
6
6
  case chart_type
@@ -19,9 +19,9 @@ module Charting
19
19
  h = 'bar'
20
20
  end
21
21
  @chart = LazyHighCharts::HighChart.new('graph') do |f|
22
- f.title({ :text=>"Combination chart"})
22
+ f.title({ :text=> y_name_1 + " VS " + y_name_2 + " VS " + y_name_3})
23
23
  f.options[:xAxis][:categories] = x_name
24
- f.labels(:items=>[:html=> y_name_1 + " VS " + y_name_2, :style=>{:left=>"40px", :top=>"8px", :color=>"black"} ])
24
+ f.labels(:items=>[:html=> y_name_1 + " VS " + y_name_2 + " VS " + y_name_3, :style=>{:left=>"40px", :top=>"8px", :color=>"black"} ])
25
25
  f.series(:type=> h,:name=> y_name_1,:data=> y_data_1)
26
26
  f.series(:type=> h,:name=> y_name_2,:data=> y_data_2)
27
27
  f.series(:type=> h,:name=> y_name_3,:data=> y_data_3, :center=> [100, 80], :size=> 100, :showInLegend=> true)
@@ -29,7 +29,7 @@ module Charting
29
29
  end
30
30
  end
31
31
 
32
-
32
+ #this function initializes lazy high chart function specific varaiables with 3 different set of data's and the chart type for a double columned data
33
33
  def self.doublechart(x_name, y_data_1, y_name_1, y_data_2, y_name_2, chart_type)
34
34
  if (chart_type) then
35
35
  case chart_type
@@ -48,7 +48,7 @@ module Charting
48
48
  h = 'bar'
49
49
  end
50
50
  @chart = LazyHighCharts::HighChart.new('graph') do |f|
51
- f.title({ :text=>"Combination chart"})
51
+ f.title({ :text=> y_name_1 + " VS " + y_name_2})
52
52
  f.options[:xAxis][:categories] = x_name
53
53
  f.labels(:items=>[:html=> y_name_1 + " VS " + y_name_2, :style=>{:left=>"40px", :top=>"8px", :color=>"black"} ])
54
54
  f.series(:type=> h,:name=> y_name_1,:data=> y_data_1)
@@ -57,6 +57,7 @@ module Charting
57
57
  end
58
58
  end
59
59
 
60
+ #this function initializes lazy high chart function specific varaiables with 3 different set of data's and the chart type for single columned data
60
61
  def self.singlechart(x_name, y_data_1, y_name_1, chart_type)
61
62
  if (chart_type) then
62
63
  case chart_type
@@ -75,7 +76,7 @@ module Charting
75
76
  h = 'bar'
76
77
  end
77
78
  @chart = LazyHighCharts::HighChart.new('graph') do |f|
78
- f.title({ :text=>"Combination chart"})
79
+ f.title({ :text=> y_name_1})
79
80
  f.options[:xAxis][:categories] = x_name
80
81
  f.labels(:items=>[:html=> y_name_1, :style=>{:left=>"40px", :top=>"8px", :color=>"black"} ])
81
82
  f.series(:type=> h, :name=> y_name_1,:data=> y_data_1)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pizza_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Kishore Kumar '