gerbilcharts 0.10.10 → 0.10.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a1ce510c0c862f122e62a8f8344e327fc945b99
4
- data.tar.gz: 90277699683b3ea5e065d749c44c66ebd257a571
3
+ metadata.gz: eac05bcf070421eba5ebe21442773e9e91bf7791
4
+ data.tar.gz: a8cd6440ac08915c40fb7bc66b0fd6e381d09ac1
5
5
  SHA512:
6
- metadata.gz: a5c8044f04f71eb6b4631fe24481903896d14e80f2b73934b7aa9be7fc56573e88c7393427a153759a81db30f5031deff573ba2ec41b685abfa9330718bd8ad6
7
- data.tar.gz: a508675d306932b4c8c57a03ebc9eb1902609b59b697a9d5c064a79abb0482fee90b74b12e986a2189eb0792316c6ae444d6744df377d7f94134c5de788c46fc
6
+ metadata.gz: eb58c9b6ce5af8ebf18c0bbde1c43fc387205da047dffe9f0de91fdfe592e760b9e652d02e3bba3b19342b7a62981e9653f75a5b9fae216b00de76e5ef75ff6d
7
+ data.tar.gz: 51d9d3aaa4710a9dfb2307a571f210015afa75dcc2e72379e8ec54e23c728f4164744a012d41b0498bb06171a24c6d2a2ad21e2eeb24cbb674531f7404a39b81
@@ -13,6 +13,7 @@ class BucketizedTimeSeriesGraphModel < TimeSeriesGraphModel
13
13
  attr_reader :bucket_size_secs # current bucket size
14
14
  attr_reader :behavior # :average or :max or :sum
15
15
  attr_reader :last_sweep_pos # :nodoc:
16
+ attr_reader :vartype
16
17
 
17
18
  def initialize(name,bucketsec, opt={:behavior => :average, :vartype => :bits_per_sec })
18
19
  super(name,opt)
@@ -20,6 +21,7 @@ class BucketizedTimeSeriesGraphModel < TimeSeriesGraphModel
20
21
  @samp_count =0
21
22
  @behavior = opt[:behavior]
22
23
  @last_sweep_pos=0
24
+ @vartype = opt[:vartype]
23
25
  @aggregation_factor = case opt[:vartype]
24
26
  when :bits_per_sec ; @bucket_size_secs / 8.0
25
27
  when :per_sec ; @bucket_size_secs
@@ -24,12 +24,12 @@ class Grid < GraphElement
24
24
  end
25
25
 
26
26
  # horiz subticks
27
- g.newwin('hgridsub', {:class => "gridlinesub"} ) do |g|
28
- ry.each_tick(@tick_count) do |val|
29
- yp = scale_y val,ry
30
- g.line(@bounds.left,yp,@bounds.right,yp)
31
- end
32
- end
27
+ # g.newwin('hgridsub', {:class => "gridlinesub"} ) do |g|
28
+ # ry.each_tick(@tick_count) do |val|
29
+ # yp = scale_y val,ry
30
+ # g.line(@bounds.left,yp,@bounds.right,yp)
31
+ # end
32
+ # end
33
33
 
34
34
 
35
35
  scaling_x = parent.get_global_option(:scaling_x,:auto)
@@ -47,12 +47,12 @@ class Grid < GraphElement
47
47
  end
48
48
 
49
49
 
50
- g.newwin('vgridsub', {:class => "gridlinesub"} ) do |g|
51
- rx.each_tick(0) do |val|
52
- xp = scale_x val,rwx
53
- g.line(xp,@bounds.top,xp,@bounds.bottom)
54
- end
55
- end
50
+ # g.newwin('vgridsub', {:class => "gridlinesub"} ) do |g|
51
+ # rx.each_tick(0) do |val|
52
+ # xp = scale_x val,rwx
53
+ # g.line(xp,@bounds.top,xp,@bounds.bottom)
54
+ # end
55
+ # end
56
56
 
57
57
 
58
58
  end
@@ -19,16 +19,17 @@ class LinkPivots < GraphElement
19
19
  g.setactivewindow(win)
20
20
 
21
21
  # count determines the bounds
22
- @bounds.top = @bounds.bottom - 20 * parent.modelgroup.count
22
+ @bounds.top = @bounds.bottom - 20 * parent.modelgroup.count - 10
23
23
  if @bounds.top < 0
24
24
  @bounds.top =0
25
25
  end
26
26
 
27
+
27
28
  g.rectangle_r(@bounds)
28
29
 
29
30
  # start
30
31
  x = @bounds.left + @bounds.width/2
31
- y = @bounds.top + 20
32
+ y = @bounds.top + 15
32
33
 
33
34
  parent.modelgroup.each_model_with_index do | mod, i|
34
35
 
@@ -37,7 +38,7 @@ class LinkPivots < GraphElement
37
38
  opts.store(:base_href, mod.href_pivot)
38
39
  end
39
40
 
40
- opts.merge!( :id => "item#{i}")
41
+ opts.merge!( :class => "legendtext")
41
42
  g.textout(x,y, "Drill down into #{mod.name}",opts)
42
43
 
43
44
  y += 20;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gerbilcharts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.10
4
+ version: 0.10.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2018-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda