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.
- checksums.yaml +4 -4
- data/lib/graph.rb +2 -2
- metadata +3 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef1607b9369dc3f6ac861b60aa3ed733dd1da6ad
|
4
|
+
data.tar.gz: e260d756bc68430e2b6fc24cc3b23e759a451f1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6ab60c97ee9d85143f7a37be0436be8dcb69c26942de483b8543c40d6b3c27638735b5b091215db35c6b40a5426469dd34acf696b4f294eefc479ac0d136bc4
|
7
|
+
data.tar.gz: 758a44e1d481c8ee25326e7aa2955d64cf1d2d593c30caef44db01f747e5b36222ef658621927b7b95f080b1c0e5d4caadf7ece885c494c128a423644c2aa818
|
data/lib/graph.rb
CHANGED
@@ -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=>
|
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.
|
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
|
70
|
-
|
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: []
|