Commit d4d51ef7 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed to work with category X axis instead of time

parent 76c913fd
......@@ -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@
});
......
......@@ -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';
......
......@@ -172,7 +172,6 @@ set report_sql "
order by
revenue DESC
"
# ad_return_complaint 1 [im_ad_hoc_query -format html $report_sql]
# ------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment