graph_decorator 0.1.8 → 0.1.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e10932bbfd58ee6e48f15fd32db858a376c898b6
4
- data.tar.gz: 3eb8b03cafaebc4f2c2172ff378f5c5697748048
3
+ metadata.gz: c415bfdb5216c0aefc86318f4c601086ac15badf
4
+ data.tar.gz: c4386dcfd61354d2a1cddad53b1a37ab95ffc8e4
5
5
  SHA512:
6
- metadata.gz: 4ada6da57f72c0f085e8225b90aeec20bc929a1185dadf6bb8ab875c4d04b2324df2a15dc6eabc4ebe75a2097d0b7a41513026fbedcbed7da254950c30e74484
7
- data.tar.gz: e9bfa8f22a7fae0fa64df524eb371947c6bee813c2103fd04c61dfa65272f542c43160e3e9d541e77a2092a34a170a60c5378afb9d63a15b7a05216ef215fb86
6
+ metadata.gz: bd2dd6a53d78a58aa0e67a89458871dc290f0860aa2529a9c4337b6ee664d148a2102bc832572bc05546abf23fd824ed99066f5066d66e819c951bfde803eceb
7
+ data.tar.gz: 24bfbc60e205f0044390b7db1a44c7c3e77220056df88ef3ad414d37b7d105f880cab156d32a4f8bb68574e9d4bbcacae5568adebee3254e10a65ebc694ad559
@@ -342,12 +342,12 @@ class ReturningCustomers < GraphDecoration
342
342
  #this functionality initialises with the data from the application models
343
343
  def initialize(real_graph)
344
344
  super(real_graph)
345
- @y_name_1 = "New Cusomtomers"
346
- @y_name_2 = "Frequent Customers"
345
+ @y_name_1 = "New Cusomtomers count"
346
+ @y_name_2 = "Frequent Customers count"
347
347
  @y_name_3 = "Total no of sign in count in this website"
348
+ #@new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
348
349
  @cust_new = 0
349
350
  @customer_return = 0
350
- #@new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
351
351
  @new_customer_count = []
352
352
  @y_cust_data = Member.all
353
353
  @y_cust_data.each do |cp|
@@ -362,8 +362,10 @@ class ReturningCustomers < GraphDecoration
362
362
  end
363
363
  @y_data_1 = @cust_new
364
364
  @y_data_2 = @customer_return
365
- @x_name = ['Customer Ratio']
365
+ @x_name = 'Customer Ratio'
366
366
  @y_data_3 = Member.sum("sign_in_count")
367
-
367
+ puts(@y_data_1)
368
+ puts(@y_data_2)
369
+ puts(@y_data_3)
368
370
  end
369
371
  end
@@ -1,3 +1,3 @@
1
1
  module GraphDecorator
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_decorator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kishore Kumar