olap-view 0.0.19 → 0.0.20
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/README.md +8 -2
- data/app/assets/stylesheets/olap-view/olap-view.scss +7 -5
- data/app/helpers/olap_view_helper.rb +2 -2
- data/app/views/olap-view/_table.js.erb +7 -0
- data/lib/olap/view/version.rb +1 -1
- data/olap-view.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c60606c6113ffbdd9470f84c8a88be24b5783f
|
4
|
+
data.tar.gz: 62201cfa22e446d086dd18861bf14c0fad14770c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e6d797a7ac8d137f4d0ebe6ff7c570a9b75f0f4f70a124c733f438d512c0828329e8a53c8ddd8f03b7516c3429e2ddea14ed04229c156d97aff45bcffe54671
|
7
|
+
data.tar.gz: 7237d27f37ca630dd9ed28688d49f0f107ad0f34dabb7edfa9106c856f3b434953ce290fcff36f2b9500a4f4a499e5556949b5df39ad35b4931cf2dfa54a0dcd
|
data/README.md
CHANGED
@@ -87,14 +87,20 @@ In `olap_view_chart_by_mdx` and `olap_view_chart_by_xmla` following properties a
|
|
87
87
|
```
|
88
88
|
|
89
89
|
`total: true` show total string in table chart
|
90
|
+
|
90
91
|
`rowspan: true` unites the cells with the same data from the dimenssions in table chart
|
92
|
+
|
91
93
|
`function: "text on JS"` execute ani js code into chart template
|
92
|
-
|
93
|
-
`
|
94
|
+
|
95
|
+
`dimention: "Source Name"` aggregate xmla data by dimesion
|
96
|
+
|
97
|
+
`measures: "[Measures].[Click]"` remove measure from xmla data
|
98
|
+
|
94
99
|
`options: {}` Google Charts draw options
|
95
100
|
|
96
101
|
|
97
102
|
|
103
|
+
|
98
104
|
## Contributing
|
99
105
|
|
100
106
|
1. Fork it ( https://github.com/Wondersoft/olap-view/fork )
|
@@ -1,9 +1,11 @@
|
|
1
1
|
.google-visualization-table {
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
.google-visualization-table-td{
|
3
|
+
&.dimension{
|
4
|
+
text-align: left;
|
5
|
+
}
|
6
|
+
&.measure{
|
7
|
+
text-align: right;
|
8
|
+
}
|
7
9
|
}
|
8
10
|
.total{
|
9
11
|
background: #e4e9f4;
|
@@ -33,9 +33,9 @@
|
|
33
33
|
def olap_view_render_row row
|
34
34
|
row.collect{|r|
|
35
35
|
if r[:type] == 'dimension'
|
36
|
-
"{v: '#{escape_javascript(r[:value] && !r[:value].empty? ? r[:value] : olap_view_i18n_options[:undefined])}', p:{className: 'google-visualization-table-td #{r[:type]}'}}"
|
36
|
+
"{v: '#{escape_javascript(r[:value] && !r[:value].empty? ? r[:value] : olap_view_i18n_options[:undefined])}', p:{'type': '#{r[:type]}', className: 'google-visualization-table-td #{r[:type]}'}}"
|
37
37
|
else
|
38
|
-
"{v: #{r[:value]}, f: '#{r[:fmt_value] || r[:value]}', p:{className: 'google-visualization-table-td #{r[:type]}'}}"
|
38
|
+
"{v: #{r[:value]}, f: '#{r[:fmt_value] || r[:value]}', p:{'type': '#{r[:type]}', className: 'google-visualization-table-td #{r[:type]}'}}"
|
39
39
|
end
|
40
40
|
}.join(',').html_safe
|
41
41
|
end
|
@@ -18,6 +18,13 @@
|
|
18
18
|
|
19
19
|
<%= "rowSpan('#{id}');".html_safe if properties[:rowspan] == true %>
|
20
20
|
<%= "total(data);".html_safe if properties[:total] == true %>
|
21
|
+
addClassToTh(data);
|
22
|
+
}
|
23
|
+
|
24
|
+
function addClassToTh(data){
|
25
|
+
$('#<%= id %> table th').each(function(i, element){
|
26
|
+
$(this).addClass(data.getColumnProperties(i).type);
|
27
|
+
});
|
21
28
|
}
|
22
29
|
|
23
30
|
function rowSpan(id){
|
data/lib/olap/view/version.rb
CHANGED
data/olap-view.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: olap-view
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stepanovit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.0.9
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.0.9
|
55
55
|
description: Ruby On Rails gem to visualize by Google Charts MDX queries on OLAP databases
|
56
56
|
using XMLA connection. Can be used with any XMLA-compliant server, like Olaper or
|
57
57
|
Mondrian.
|