pizza_chart 1.0.4 → 2.0.0
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
- metadata +25 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2cc9dc00c11e6497f9b2327977cb223cce9e445
|
4
|
+
data.tar.gz: ab11a0a660e201bada6ef3e156df72e4af2c5ec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af5eaed4cbe8ce31c9937b168cbb4be3e442426faca7c8151efb5f20370c10b18f1b6a5fbe271f6689cbbf538f5fd206ff95b611aefe92d6a0b073f983f567c9
|
7
|
+
data.tar.gz: 9ee1940a00f6ec828a37f8dfd4445e46c4eb752136a9b23ef15a20d81477996cd748dc9384951b89f3b468df2fe0146abf641287d8a0c2335e0e6670cb231291
|
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:
|
4
|
+
version: 2.0.0
|
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-
|
11
|
+
date: 2017-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,9 +66,29 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description:
|
70
|
-
|
71
|
-
|
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."
|
72
92
|
email: spkishore007@gmail.com
|
73
93
|
executables: []
|
74
94
|
extensions: []
|