thecore_ui_commons 2.3.6 → 2.3.7

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
  SHA256:
3
- metadata.gz: a1fe931815502b3bd3884c4df50f2bd6ee8c22bf1cccbabc6828545caba767d5
4
- data.tar.gz: 12bc1f502d25f2084805d567fff6bf24a967dc647eacca5deece6e6ecb83bc44
3
+ metadata.gz: b8699769cd96205b5f12bfea2f86857ac0b1099a0b721a3ef88840aec5585321
4
+ data.tar.gz: 3684e8e3a77f903ed3c866c7b6f41122e269e42b7f20b6d3666a44cc918b2e05
5
5
  SHA512:
6
- metadata.gz: d82e219ae9e3e63a6b898759e3854db59fa2dbcf3199d93ba4347fd8f52427b4cc770b2220d1828faeb4d2033f843e6f28de95da31c35c276d0719babde56d31
7
- data.tar.gz: 3e1077e269d86899a1f0c00d1fda522247607afa792821dfaf13f13725252505b0ec33b975b98c001d264e7444619eed1f15731237a89f7bb18e3ac980833c93
6
+ metadata.gz: 27e4668aaa144658701cbaa04e1573b3b6549efab1e13105edbaef12aeb64ba884afda5e8a311ab9b353e43e1e6ab8d2a2f3bac8154db8aa7054bb88a7595469
7
+ data.tar.gz: 05c0e5c32a953ca6867fdfb21770cd31dffbfc7cd107dfcddfc644aca56f6cd3b82e69946ba834b1af16f371172700ed0d20dd9c9e63ce4eea72072183e4eb3f
@@ -1,44 +1,47 @@
1
1
  require 'date'
2
2
  module Helpers
3
3
  module ChartsHelper
4
- def candlestick_data
5
- @acc = rand(6570..6650)
6
- 60.times.map {|i| [Date.today - 60 + i, ohlc] }.to_h
7
- end
4
+ # Please override this in your gems to add charts, here some
5
+ # working, but commented out charts as example.
6
+
7
+ # def candlestick_data
8
+ # @acc = rand(6570..6650)
9
+ # 60.times.map {|i| [Date.today - 60 + i, ohlc] }.to_h
10
+ # end
8
11
 
9
- def ohlc
10
- open = @acc + rand(-20..20)
11
- high = open + rand(0..100)
12
- low = open - rand(0..100)
13
- @acc = close = open + rand(-((high-low)/3)..((high-low)/2))
14
- [open, high, low, close]
15
- end
12
+ # def ohlc
13
+ # open = @acc + rand(-20..20)
14
+ # high = open + rand(0..100)
15
+ # low = open - rand(0..100)
16
+ # @acc = close = open + rand(-((high-low)/3)..((high-low)/2))
17
+ # [open, high, low, close]
18
+ # end
16
19
 
17
- ### HIGH PRIORITY CHARTS
18
- def charts_high_pie_demo
19
- pie_chart([{name: "Series A", data: 25},{name: "Series B", data: 100},{name: "Series C", data: 200},{name: "Series D", data: 125}], legend: "left")
20
- end
20
+ # ### HIGH PRIORITY CHARTS
21
+ # def charts_high_pie_demo
22
+ # pie_chart([{name: "Series A", data: 25},{name: "Series B", data: 100},{name: "Series C", data: 200},{name: "Series D", data: 125}], legend: "left")
23
+ # end
21
24
 
22
- def charts_high_candlestick_demo
23
- candlestick_options = {plot_options: {candlestick: {colors: {upward: '#3C90EB',downward: '#DF7D46'}}}}
24
- candlestick_chart(candlestick_data, candlestick_options)
25
- end
25
+ # def charts_high_candlestick_demo
26
+ # candlestick_options = {plot_options: {candlestick: {colors: {upward: '#3C90EB',downward: '#DF7D46'}}}}
27
+ # candlestick_chart(candlestick_data, candlestick_options)
28
+ # end
26
29
 
27
- ### MEDIUM PRIORITY CHARTS
28
- def charts_medium_radar_demo
29
- radar_series = [{name: "What it should be",data: { "Code review"=>10, "Issues"=>5, "Pull request"=>25, "Commits"=>60 }},{name: "What it really is",data: { "Code review"=>1, "Issues"=>3, "Pull request"=>7, "Commits"=>89 }}]
30
- radar_chart(radar_series,{title: "GitHub Radar", markers: {size: 4}, theme: 'palette4'})
31
- end
30
+ # ### MEDIUM PRIORITY CHARTS
31
+ # def charts_medium_radar_demo
32
+ # radar_series = [{name: "What it should be",data: { "Code review"=>10, "Issues"=>5, "Pull request"=>25, "Commits"=>60 }},{name: "What it really is",data: { "Code review"=>1, "Issues"=>3, "Pull request"=>7, "Commits"=>89 }}]
33
+ # radar_chart(radar_series,{title: "GitHub Radar", markers: {size: 4}, theme: 'palette4'})
34
+ # end
32
35
 
33
- def charts_medium_bubble_demo
34
- bubble_series = (1..4).map do |n|{name: "Bubble#{n}",data: 20.times.map{[rand(750),rand(10..60),rand(70)]}}end
35
- bubble_chart(bubble_series, data_labels: false, theme: 'palette6')
36
- end
36
+ # def charts_medium_bubble_demo
37
+ # bubble_series = (1..4).map do |n|{name: "Bubble#{n}",data: 20.times.map{[rand(750),rand(10..60),rand(70)]}}end
38
+ # bubble_chart(bubble_series, data_labels: false, theme: 'palette6')
39
+ # end
37
40
 
38
- def charts_medium_range_demo
39
- range_bar_series = [{name: "Series A",data: {'A' => [1, 5],'B' => [4, 6],'C' => [5, 8],'D' => [3, 11]}}, {name: "Series B",data: {'A' => [2, 6],'B' => [1, 3],'C' => [7, 8],'D' => [5, 9]}}]
40
- range_bar_chart(range_bar_series, theme: 'palette3')
41
- end
41
+ # def charts_medium_range_demo
42
+ # range_bar_series = [{name: "Series A",data: {'A' => [1, 5],'B' => [4, 6],'C' => [5, 8],'D' => [3, 11]}}, {name: "Series B",data: {'A' => [2, 6],'B' => [1, 3],'C' => [7, 8],'D' => [5, 9]}}]
43
+ # range_bar_chart(range_bar_series, theme: 'palette3')
44
+ # end
42
45
  end
43
46
  end
44
47
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6
4
+ version: 2.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_background_jobs