Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sbsoft
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ildar Safiullin
sbsoft
Commits
1ff73c51
Commit
1ff73c51
authored
Apr 22, 2018
by
farax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pivot
parent
816b4a0a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
92 deletions
+8
-92
modules/pivot/src/main/java/ru/systematic/cisstat/portlet/PivotPortlet.java
+2
-0
modules/pivot/src/main/resources/META-INF/resources/dist/pivot.jp.js
+0
-80
modules/pivot/src/main/resources/META-INF/resources/dist/pivot.jp.min.js
+0
-2
modules/pivot/src/main/resources/META-INF/resources/view.jsp
+6
-10
No files found.
modules/pivot/src/main/java/ru/systematic/cisstat/portlet/PivotPortlet.java
View file @
1ff73c51
...
@@ -16,6 +16,8 @@ import org.osgi.service.component.annotations.Component;
...
@@ -16,6 +16,8 @@ import org.osgi.service.component.annotations.Component;
property
=
{
property
=
{
"com.liferay.portlet.display-category=category.sample"
,
"com.liferay.portlet.display-category=category.sample"
,
"com.liferay.portlet.instanceable=true"
,
"com.liferay.portlet.instanceable=true"
,
"com.liferay.portlet.header-portlet-css=/dist/pivot.css"
,
"com.liferay.portlet.header-portlet-javascript=/dist/pivot.js"
,
"javax.portlet.display-name=pivot Portlet"
,
"javax.portlet.display-name=pivot Portlet"
,
"javax.portlet.init-param.template-path=/"
,
"javax.portlet.init-param.template-path=/"
,
"javax.portlet.init-param.view-template=/view.jsp"
,
"javax.portlet.init-param.view-template=/view.jsp"
,
...
...
modules/pivot/src/main/resources/META-INF/resources/dist/pivot.jp.js
deleted
100644 → 0
View file @
816b4a0a
(
function
()
{
var
callWithJQuery
;
callWithJQuery
=
function
(
pivotModule
)
{
if
(
typeof
exports
===
"object"
&&
typeof
module
===
"object"
)
{
return
pivotModule
(
require
(
"jquery"
));
}
else
if
(
typeof
define
===
"function"
&&
define
.
amd
)
{
return
define
([
"jquery"
],
pivotModule
);
}
else
{
return
pivotModule
(
jQuery
);
}
};
callWithJQuery
(
function
(
$
)
{
var
jaFmtInt
,
jaFmtPct
,
jpFmt
,
nf
,
tpl
;
nf
=
$
.
pivotUtilities
.
numberFormat
;
tpl
=
$
.
pivotUtilities
.
aggregatorTemplates
;
jpFmt
=
nf
({
thousandsSep
:
","
,
decimalSep
:
"."
});
jaFmtInt
=
nf
({
digitsAfterDecimal
:
0
,
thousandsSep
:
","
,
decimalSep
:
"."
});
jaFmtPct
=
nf
({
digitsAfterDecimal
:
1
,
scaler
:
100
,
suffix
:
"%"
,
thousandsSep
:
","
,
decimalSep
:
"."
});
return
$
.
pivotUtilities
.
locales
.
ja
=
{
localeStrings
:
{
renderError
:
"描画処理でエラーが発生しました。"
,
computeError
:
"処理中にエラーが発生しました。"
,
uiRenderError
:
"表示処理中にエラーが発生しました。"
,
selectAll
:
"全選択"
,
selectNone
:
"選択解除"
,
tooMany
:
"項目が多すぎます"
,
filterResults
:
"項目を検索する"
,
totals
:
"合計"
,
vs
:
"vs"
,
by
:
"per"
,
apply
:
"適用する"
,
cancel
:
"キャンセル"
},
aggregators
:
{
"件数"
:
tpl
.
count
(
jpFmtInt
),
"件数(ユニーク)"
:
tpl
.
countUnique
(
jpFmtInt
),
"ユニーク値を表示 (CSV)"
:
tpl
.
listUnique
(
", "
),
"合計"
:
tpl
.
sum
(
jpFmt
),
"合計(整数)"
:
tpl
.
sum
(
jpFmtInt
),
"平均"
:
tpl
.
average
(
jpFmt
),
"最小"
:
tpl
.
min
(
jpFmt
),
"最大"
:
tpl
.
max
(
jpFmt
),
"選択2項目の比率"
:
tpl
.
sumOverSum
(
jpFmt
),
"選択2項目の比率(上限80%)"
:
tpl
.
sumOverSumBound80
(
true
,
jpFmt
),
"選択2項目の比率(下限80%)"
:
tpl
.
sumOverSumBound80
(
false
,
jpFmt
),
"合計割合"
:
tpl
.
fractionOf
(
tpl
.
sum
(),
"total"
,
jpFmtPct
),
"合計割合(行)"
:
tpl
.
fractionOf
(
tpl
.
sum
(),
"row"
,
jpFmtPct
),
"合計割合(列)"
:
tpl
.
fractionOf
(
tpl
.
sum
(),
"col"
,
jpFmtPct
),
"件数割合"
:
tpl
.
fractionOf
(
tpl
.
count
(),
"total"
,
jpFmtPct
),
"件数割合(行)"
:
tpl
.
fractionOf
(
tpl
.
count
(),
"row"
,
jpFmtPct
),
"件数割合(列)"
:
tpl
.
fractionOf
(
tpl
.
count
(),
"col"
,
jpFmtPct
)
},
renderers
:
{
"表"
:
$
.
pivotUtilities
.
renderers
[
"Table"
],
"表(棒グラフ)"
:
$
.
pivotUtilities
.
renderers
[
"Table Barchart"
],
"ヒートマップ"
:
$
.
pivotUtilities
.
renderers
[
"Heatmap"
],
"ヒートマップ(行)"
:
$
.
pivotUtilities
.
renderers
[
"Row Heatmap"
],
"ヒートマップ(列)"
:
$
.
pivotUtilities
.
renderers
[
"Col Heatmap"
]
}
};
});
}).
call
(
this
);
//# sourceMappingURL=pivot.jp.js.map
modules/pivot/src/main/resources/META-INF/resources/dist/pivot.jp.min.js
deleted
100644 → 0
View file @
816b4a0a
(
function
(){
var
t
;(
t
=
function
(
t
){
return
"object"
==
typeof
exports
&&
"object"
==
typeof
module
?
t
(
require
(
"jquery"
)):
"function"
==
typeof
define
&&
define
.
amd
?
define
([
"jquery"
],
t
):
t
(
jQuery
)})(
function
(
t
){
var
e
,
r
,
i
,
o
,
n
;
return
o
=
t
.
pivotUtilities
.
numberFormat
,
n
=
t
.
pivotUtilities
.
aggregatorTemplates
,
i
=
o
({
thousandsSep
:
","
,
decimalSep
:
"."
}),
e
=
o
({
digitsAfterDecimal
:
0
,
thousandsSep
:
","
,
decimalSep
:
"."
}),
r
=
o
({
digitsAfterDecimal
:
1
,
scaler
:
100
,
suffix
:
"%"
,
thousandsSep
:
","
,
decimalSep
:
"."
}),
t
.
pivotUtilities
.
locales
.
ja
=
{
localeStrings
:{
renderError
:
"描画処理でエラーが発生しました。"
,
computeError
:
"処理中にエラーが発生しました。"
,
uiRenderError
:
"表示処理中にエラーが発生しました。"
,
selectAll
:
"全選択"
,
selectNone
:
"選択解除"
,
tooMany
:
"項目が多すぎます"
,
filterResults
:
"項目を検索する"
,
totals
:
"合計"
,
vs
:
"vs"
,
by
:
"per"
,
apply
:
"適用する"
,
cancel
:
"キャンセル"
},
aggregators
:{
"件数"
:
n
.
count
(
jpFmtInt
),
"件数(ユニーク)"
:
n
.
countUnique
(
jpFmtInt
),
"ユニーク値を表示 (CSV)"
:
n
.
listUnique
(
", "
),
"合計"
:
n
.
sum
(
i
),
"合計(整数)"
:
n
.
sum
(
jpFmtInt
),
"平均"
:
n
.
average
(
i
),
"最小"
:
n
.
min
(
i
),
"最大"
:
n
.
max
(
i
),
"選択2項目の比率"
:
n
.
sumOverSum
(
i
),
"選択2項目の比率(上限80%)"
:
n
.
sumOverSumBound80
(
!
0
,
i
),
"選択2項目の比率(下限80%)"
:
n
.
sumOverSumBound80
(
!
1
,
i
),
"合計割合"
:
n
.
fractionOf
(
n
.
sum
(),
"total"
,
jpFmtPct
),
"合計割合(行)"
:
n
.
fractionOf
(
n
.
sum
(),
"row"
,
jpFmtPct
),
"合計割合(列)"
:
n
.
fractionOf
(
n
.
sum
(),
"col"
,
jpFmtPct
),
"件数割合"
:
n
.
fractionOf
(
n
.
count
(),
"total"
,
jpFmtPct
),
"件数割合(行)"
:
n
.
fractionOf
(
n
.
count
(),
"row"
,
jpFmtPct
),
"件数割合(列)"
:
n
.
fractionOf
(
n
.
count
(),
"col"
,
jpFmtPct
)},
renderers
:{
"表"
:
t
.
pivotUtilities
.
renderers
.
Table
,
"表(棒グラフ)"
:
t
.
pivotUtilities
.
renderers
[
"Table Barchart"
],
"ヒートマップ"
:
t
.
pivotUtilities
.
renderers
.
Heatmap
,
"ヒートマップ(行)"
:
t
.
pivotUtilities
.
renderers
[
"Row Heatmap"
],
"ヒートマップ(列)"
:
t
.
pivotUtilities
.
renderers
[
"Col Heatmap"
]}}})}).
call
(
this
);
//# sourceMappingURL=pivot.jp.min.js.map
modules/pivot/src/main/resources/META-INF/resources/view.jsp
View file @
1ff73c51
<%@ include file="/init.jsp" %>
<%@ include file="/init.jsp" %>
<!doctype html>
<html>
<body>
<div id="output"></div>
<div id="output"></div>
<
!-- <
script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script
src=
"dist/pivot.js"
></script>
<
!-- <
script src="dist/pivot.js"></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"dist/pivot.css"
>
<link rel="stylesheet" type="text/css" href="dist/pivot.css">
-->
<script>
<script>
$(function(){
$(function(){
$("#output").pivotUI(
$("#output").pivotUI(
...
@@ -24,5 +21,4 @@
...
@@ -24,5 +21,4 @@
);
);
});
});
</script>
</script>
</body>
123
</html>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment