Commit 5248237a authored by skamble's avatar skamble

changes for sales kpi dashboard

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217743 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f17a10b9
...@@ -118,6 +118,7 @@ ...@@ -118,6 +118,7 @@
{ {
x_column: 'PRD_MONTH', x_column: 'PRD_MONTH',
y_column: 'SALES_VAL', y_column: 'SALES_VAL',
y_column_descr: 'SALES VALUE',
fill: false, fill: false,
lineTension: 0.1, lineTension: 0.1,
pointHoverRadius: 5, pointHoverRadius: 5,
...@@ -127,6 +128,7 @@ ...@@ -127,6 +128,7 @@
{ {
x_column: 'PRD_MONTH', x_column: 'PRD_MONTH',
y_column: 'TARGET_VAL', y_column: 'TARGET_VAL',
y_column_descr: 'TARGET VALUE',
fill: false, fill: false,
lineTension: 0.1, lineTension: 0.1,
pointHoverRadius: 5, pointHoverRadius: 5,
...@@ -137,7 +139,7 @@ ...@@ -137,7 +139,7 @@
], ],
options: { options: {
x_column_label: 'Duration', x_column_label: 'Duration',
y_column_label: 'Sales', y_column_label: 'Sales ( in \u20B9 )',
percentFactorColumn: 'TARGET_VAL', percentFactorColumn: 'TARGET_VAL',
animateScale: true, animateScale: true,
animateRotate: true, animateRotate: true,
...@@ -166,25 +168,54 @@ ...@@ -166,25 +168,54 @@
colors: [[0, 199, 153], [248, 248, 248]] colors: [[0, 199, 153], [248, 248, 248]]
} }
], ],
scales: { tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var label = '\u20B9 ' + tooltipItem.yLabel + tooltipItem.xLabel ;
return label;
},
title: function(tooltipItem, data) {
return '';
}
},
backgroundColor: 'rgba(0,0,0,1)'
}
},
chartScales: {
xAxes: [ xAxes: [
{ {
scaleLabel:{ ticks:
display : '', {
labelString: '' callback: function( label, index, labels ) {
if ( /\s/.test( label ) ) {
return label.split( " " );
} else {
return label;
} }
},
fontSize: 7
}
} }
], ],
yAxes: [ yAxes: [
{ {
scaleLabel:{ ticks:
display : '', {
labelString: '' fontSize: 10,
beginAtZero: true,
min: 0,
callback: function(value, index, values) {
if (Math.floor(value) === value) {
return value;
} }
} }
]
} }
} }
]
}
} }
} }
]]></composite_config> ]]></composite_config>
......
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