pizza_chart 2.0.1 → 2.0.2

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 +2 -2
  3. metadata +3 -24
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ed42492a67a903a61f1c2082d1d4afaaf78547b
4
- data.tar.gz: cdf9bd424d86158deaddecbaddfb16d05fc70fb5
3
+ metadata.gz: ef1607b9369dc3f6ac861b60aa3ed733dd1da6ad
4
+ data.tar.gz: e260d756bc68430e2b6fc24cc3b23e759a451f1e
5
5
  SHA512:
6
- metadata.gz: e31e0ca5a10a69e6a162dfde592289eefd375baa756c56e0e1ad8d03c2ed2893986dab70b99d06783e18d22f61d8a57fc41610f54a211f08dfc86638ddae8276
7
- data.tar.gz: b3bc41b47c90ef3cc25bbc2b40c1bbfdbc726102bb0311981f1aa0b57cc1b3cf003d43ace056e27b25eed1c5c5cceb5864cfe81878e07c1e2a8aae2c000ad206
6
+ metadata.gz: b6ab60c97ee9d85143f7a37be0436be8dcb69c26942de483b8543c40d6b3c27638735b5b091215db35c6b40a5426469dd34acf696b4f294eefc479ac0d136bc4
7
+ data.tar.gz: 758a44e1d481c8ee25326e7aa2955d64cf1d2d593c30caef44db01f747e5b36222ef658621927b7b95f080b1c0e5d4caadf7ece885c494c128a423644c2aa818
@@ -107,7 +107,7 @@ module Charting
107
107
  f.title(text: y_name_1 + " VS "+ y_name_2)
108
108
  f.xAxis(categories: x_name)
109
109
  f.series(name: y_name_1, yAxis: 0, data: y_data_1)
110
- f.series(:type=> 'spline', name: y_name_2, yAxis: 1, data: y_data_2)
110
+ f.series(:type=> h, name: y_name_2, yAxis: 1, data: y_data_2)
111
111
 
112
112
  f.yAxis [
113
113
  {title: {text: y_name_1, margin: 70} },
@@ -118,4 +118,4 @@ module Charting
118
118
  f.chart({defaultSeriesType: "column"})
119
119
  end
120
120
  end
121
- end
121
+ end//////
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.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Kishore Kumar '
@@ -66,29 +66,8 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description: "Hi all, \nThis gem customizes the existing gem => lazy high charts and
70
- depends on the lazy high charts gem.\nStep 1 : Please include this gem with 'lazy_high_charts'
71
- gem in your gemfile, which is dependent on it. \n\ngem 'lazy_high_charts'\ngem 'pizza_chart'\n\nStep
72
- 2 : And inculde below items in appliction.js file of app->assets->javascript\n//=
73
- require jquery\n//= require jquery_ujs\n//= require_tree .\n//= require turbolinks\n//=
74
- require highcharts/highcharts\n//= require highcharts/highcharts-more\n//= require
75
- highcharts/highstock\n\nStep 3: Bundel install\n\nStep 4: Then in controller, add
76
- below \n\ndef index\nx_axis_name = ['chicken', 'pepporoni', 'ham'] \n#x axis variable
77
- which you would like to see\ny_axis_data_1 = [4,5,6]\n#data to be shown in the bar\ny_axis_name_1
78
- = original price \n#name on top the bar\ny_axis_data_2 = [1,2,3] \n#another array
79
- of data to be shown in the bar with comparision to data 1\ny_axis_name_2 = offered
80
- price\n#name on top the bar\nchart_type = bar\n#chart type which you would like
81
- to see for the data. \n#Available mothods of Charts are : pie, line, bar and spline\n\n#pass
82
- the required values, this method returns the object of graph controller\n#for single
83
- array data\n@chart = Charting.singlechart(x_name, y_data_1, y_name_1, chart_type)\n
84
- \ \n#for two array data\n@chart = Charting.doublechart(x_axis_name, y_axis_data_1,
85
- y_axis_name_1, y_axis_data_2, y_axis_name_2, chart_type)\n\n#for three array data\n@chart
86
- = Charting.multichart(x_name, y_data_1, y_name_1, y_data_2, y_name_2, y_data_3,
87
- y_name_3, chart_type)\n\n#for two array data with combination of multi design chart
88
- type\n@chart = Charting.function_chart(x_name, y_data_1, y_name_1, y_data_2, y_name_2,
89
- chart_type)\n \nend\n\nStep 5: In you view just copy the below code and put qutoes
90
- between your div id.\n<h1>Charts</h1>\n<%= high_chart(''div_id'', @chart) %>\n\nStep
91
- 6: If not working, I am sorry. Google it out. Thanks for the visit. Good luck."
69
+ description: "Hi all, \nThis gem customizes the lazy high charts gem. Please check
70
+ documentation for the steps"
92
71
  email: spkishore007@gmail.com
93
72
  executables: []
94
73
  extensions: []