Commit 14b438b5 authored by skamble's avatar skamble

xml changes for chc sales performance dashboard -

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217888 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b2d0cc1d
......@@ -161,141 +161,6 @@
}
]]></composite_config>
</composite>
<composite>
<composite_type><![CDATA[CHART_PANEL]]></composite_type>
<composite_id><![CDATA[_composite_tot_calls_kpi]]></composite_id>
<composite_descr><![CDATA[QTR2[JUL-SEP]]]></composite_descr>
<composite_css><![CDATA[db-col-1]]></composite_css>
<link_metadata><![CDATA[]]></link_metadata>
<composite_config><![CDATA[
{
chartDetailModel: {
summary : {
info_column : 'ACTUAL_VALUE_STR',
subinfo_column : 'TARGET_VALUE_STR',
data_column : 'SALES_VAL',
target_column : 'TARGET_VAL',
sh_descr : 'SH_DESCR'
}
},
chartConfig: {
chartType: 'bar',
image: 'total_calls.svg',
title_column: 'Monthwise Sales Summary',
theme : 'violet',
datasets: [
{
x_column: 'PRD_MONTH',
y_column: 'SALES_VAL',
y_column_descr: 'SALES VALUE',
fill: false,
lineTension: 0.1,
pointHoverRadius: 5,
pointHoverBorderWidth: 2,
backgroundColor : "rgba(0, 123, 171, 1)"
},
{
x_column: 'PRD_MONTH',
y_column: 'TARGET_VAL',
y_column_descr: 'TARGET VALUE',
fill: false,
lineTension: 0.1,
pointHoverRadius: 5,
pointHoverBorderWidth: 2,
backgroundColor : "rgba(1, 162, 127, 1)"
}
],
options: {
x_column_label: 'Duration',
y_column_label: 'Sales ( in \u20B9 )',
percentFactorColumn: 'TARGET_VAL',
animateScale: true,
animateRotate: true,
width: 400,
height: 191,
responsive: true,
maintainAspectRatio: false,
tooltip: true,
cutOutPercentage: 70,
chartCenterText: "data[0] + '%'",
chartCenterTextFont1 : "20px Roboto,sans-serif",
condnFormat: [
{
id: "RED",
expression: "data[0] <= 60",
colors: [[252, 101, 101], [248, 248, 248]]
},
{
id: "YELLOW",
expression: " ( 61 <= data[0] ) && ( data[0] <= 80 )",
colors: [[255, 211, 90], [248, 248, 248]]
},
{
id: "GREEN",
expression: " 81 <= data[0] ",
colors: [[0, 199, 153], [248, 248, 248]]
}
],
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: [
{
ticks:
{
callback: function( label, index, labels ) {
if ( /\s/.test( label ) ) {
return label.split( " " );
} else {
return label;
}
},
fontSize: 7
}
}
],
yAxes: [
{
ticks:
{
fontSize: 10,
beginAtZero: true,
min: 0,
callback: function(value, index, values) {
if (Math.floor(value) === value) {
return value;
}
}
}
}
]
}
}
}
]]></composite_config>
</composite>
</component>
</view>
</Root>
......
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