pizza_chart 2.0.2 → 2.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/graph.rb +31 -31
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef1607b9369dc3f6ac861b60aa3ed733dd1da6ad
4
- data.tar.gz: e260d756bc68430e2b6fc24cc3b23e759a451f1e
3
+ metadata.gz: 75d5937dca0f0d434d285d05b8614801d4c733ce
4
+ data.tar.gz: 14d9a0ba98837872af3f699f95453199302ea6a4
5
5
  SHA512:
6
- metadata.gz: b6ab60c97ee9d85143f7a37be0436be8dcb69c26942de483b8543c40d6b3c27638735b5b091215db35c6b40a5426469dd34acf696b4f294eefc479ac0d136bc4
7
- data.tar.gz: 758a44e1d481c8ee25326e7aa2955d64cf1d2d593c30caef44db01f747e5b36222ef658621927b7b95f080b1c0e5d4caadf7ece885c494c128a423644c2aa818
6
+ metadata.gz: 9e4a18b2cfad77ad585b6fa54f4447b821b257d88cef30ef244bac963eba89f2d56b487fafecb20e27b3a5f6cbcaabbcda3e24a32a93e359139da83259dbc15b
7
+ data.tar.gz: faa0f750fecd0f02833ab9e8b2d7e0175e189c9a50e3c52a1e580555b6219c03309bc8cc4e71993bcc5bd19303573c7de1bbf57f4726680ad1bbf800d225f37a
data/lib/graph.rb CHANGED
@@ -83,39 +83,39 @@ module Charting
83
83
  end
84
84
  end
85
85
 
86
- def self.function_chart(x_name, y_data_1, y_name_1, y_data_2, y_name_2, chart_type)
86
+ # def self.function_chart(x_name, y_data_1, y_name_1, y_data_2, y_name_2, chart_type)
87
87
  #x_name = "Actual Price"
88
88
  #y_name = "Offer Price"
89
89
  #x_axis_variables = x_array
90
90
  #y_axis_variables = y_array
91
91
  #food_name = Food.select("foodName").group_by{|o| o.foodName}.keys
92
- if (chart_type) then
93
- case chart_type
94
- when "pie"
95
- h='pie'
96
- when "bar"
97
- h='bar'
98
- when "line"
99
- h='line'
100
- when "spline"
101
- h='spline'
102
- end
103
- else
104
- h = 'bar'
105
- end
106
- @chart = LazyHighCharts::HighChart.new('graph') do |f|
107
- f.title(text: y_name_1 + " VS "+ y_name_2)
108
- f.xAxis(categories: x_name)
109
- f.series(name: y_name_1, yAxis: 0, data: y_data_1)
110
- f.series(:type=> h, name: y_name_2, yAxis: 1, data: y_data_2)
111
-
112
- f.yAxis [
113
- {title: {text: y_name_1, margin: 70} },
114
- {title: {text: y_name_2}, opposite: true},
115
- ]
116
-
117
- f.legend(align: 'right', verticalAlign: 'top', y: 75, x: -50, layout: 'vertical')
118
- f.chart({defaultSeriesType: "column"})
119
- end
120
- end
121
- end//////
92
+ # if (chart_type) then
93
+ # case chart_type
94
+ # when "pie"
95
+ # h='pie'
96
+ # when "bar"
97
+ # h='bar'
98
+ # when "line"
99
+ # h='line'
100
+ # when "spline"
101
+ # h='spline'
102
+ # end
103
+ # else
104
+ # h = 'bar'
105
+ # end
106
+ # @chart = LazyHighCharts::HighChart.new('graph') do |f|
107
+ # f.title(text: y_name_1 + " VS "+ y_name_2)
108
+ # f.xAxis(categories: x_name)
109
+ # f.series(name: y_name_1, yAxis: 0, data: y_data_1)
110
+ # f.series(:type=> h, name: y_name_2, yAxis: 1, data: y_data_2)
111
+ #
112
+ # f.yAxis [
113
+ # {title: {text: y_name_1, margin: 70} },
114
+ # {title: {text: y_name_2}, opposite: true},
115
+ # ]
116
+ #
117
+ # f.legend(align: 'right', verticalAlign: 'top', y: 75, x: -50, layout: 'vertical')
118
+ # f.chart({defaultSeriesType: "column"})
119
+ # end
120
+ #end
121
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pizza_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Kishore Kumar '
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-23 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler