Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-reporting-dashboard
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-reporting-dashboard
Commits
d4d51ef7
Commit
d4d51ef7
authored
Apr 20, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed to work with category X axis instead of time
parent
76c913fd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
revenue-by-dept.adp
lib/revenue-by-dept.adp
+8
-6
revenue-by-dept.tcl
lib/revenue-by-dept.tcl
+1
-1
revenue-by-dept-details.tcl
www/revenue-by-dept-details.tcl
+0
-1
No files found.
lib/revenue-by-dept.adp
View file @
d4d51ef7
...
...
@@ -55,14 +55,16 @@ Ext.onReady(function () {
fields: @dept_list_json;noquote@,
title: 'Revenue (x 1000 @default_currency@)'
}, {
type: 'Time',
title: false,
type: 'Category',
position: 'bottom',
fields: ['Date'],
dateFormat: 'M Y',
constraint: false,
step: [Ext.Date.MONTH, 1],
toDate: new Date('@axis_to_date@'),
label: {rotate: {degrees: 315}}
label: {
rotate: {degrees: 315},
renderer: function(v) {
return Ext.Date.format(v, 'M y');
}
}
}],
series: @series_list_json;noquote@
});
...
...
lib/revenue-by-dept.tcl
View file @
d4d51ef7
...
...
@@ -69,7 +69,7 @@ foreach dept $dept_list {
highlight:
{
size: 7, radius: 7
}
,
listeners:
{
'itemclick': function
(
item, event
)
{
var date = item.
value
\[
0
\]
.toISOString
()
.substring
(
0,10
);
var date = item.
storeItem.get
(
'Date'
)
.toISOString
()
.substring
(
0,10
);
var value = item.value
\[
1
\]
;
var dept = item.series.yField
;
var url = '/intranet-reporting-dashboard/revenue-by-dept-details'
;
...
...
www/revenue-by-dept-details.tcl
View file @
d4d51ef7
...
...
@@ -172,7 +172,6 @@ set report_sql "
order by
revenue DESC
"
# ad_return_complaint 1 [im_ad_hoc_query -format html $report_sql
]
# ------------------------------------------------------------
...
...
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