Commit f10c73fa authored by skamble's avatar skamble

changes for chc_sales_kpi

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217713 ce508802-f39f-4f6c-b175-0d175dae99d5
parent af1b8a32
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
{ {
component_type: 'CUSTOM_CHART_4', component_type: 'CUSTOM_CHART_4',
detailModel: { detailModel: {
image_column: 'ICON', image_column: 'image',
image: 'ICON', image: 'date_white.svg',
title_column: 'PRD_QTR_STR', title_column: 'PRD_QTR_STR',
sales_info_column: 'SALES_VAL', sales_info_column: 'SALES_VAL',
target_info_column: 'TARGET_VAL', target_info_column: 'TARGET_VAL',
...@@ -110,27 +110,23 @@ ...@@ -110,27 +110,23 @@
} }
}, },
chartConfig: { chartConfig: {
chartType: 'line', chartType: 'bar',
image: 'total_calls.svg', image: 'total_calls.svg',
title_column: 'Monthwise Sales Summary', title_column: 'Monthwise Sales Summary',
theme : 'violet', theme : 'violet',
datasets: [ datasets: [
{ {
x_column: 'CODE', x_column: 'PRD_MONTH',
x_column_label: 'Duration',
y_column: 'SALES_VAL', y_column: 'SALES_VAL',
y_column_label: 'Sales',
fill: false, fill: false,
lineTension: 0.1, lineTension: 0.1,
pointHoverRadius: 5, pointHoverRadius: 5,
pointHoverBorderWidth: 2, pointHoverBorderWidth: 2,
backgroundColor : "rgba(163, 142, 230, 1)" backgroundColor : "rgba(0, 123, 171, 1)"
}, },
{ {
x_column: 'CODE', x_column: 'PRD_MONTH',
x_column_label: 'Duration',
y_column: 'TARGET_VAL', y_column: 'TARGET_VAL',
y_column_label: 'Sales',
fill: false, fill: false,
lineTension: 0.1, lineTension: 0.1,
pointHoverRadius: 5, pointHoverRadius: 5,
...@@ -140,6 +136,8 @@ ...@@ -140,6 +136,8 @@
], ],
options: { options: {
x_column_label: 'Duration',
y_column_label: 'Sales',
percentFactorColumn: 'TARGET_VAL', percentFactorColumn: 'TARGET_VAL',
animateScale: true, animateScale: true,
animateRotate: true, animateRotate: true,
...@@ -167,10 +165,28 @@ ...@@ -167,10 +165,28 @@
expression: " 81 <= data[0] ", expression: " 81 <= data[0] ",
colors: [[0, 199, 153], [248, 248, 248]] colors: [[0, 199, 153], [248, 248, 248]]
} }
],
scales: {
xAxes: [
{
scaleLabel:{
display : '',
labelString: ''
}
}
],
yAxes: [
{
scaleLabel:{
display : '',
labelString: ''
}
}
] ]
} }
} }
} }
}
]]></composite_config> ]]></composite_config>
</composite> </composite>
......
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