Subversion Repositories SmartDukaan

Rev

Rev 28433 | Rev 28435 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28433 Rev 28434
Line 65... Line 65...
65
import com.spice.profitmandi.common.model.Data;
65
import com.spice.profitmandi.common.model.Data;
66
import com.spice.profitmandi.common.model.DataInvestmentModel;
66
import com.spice.profitmandi.common.model.DataInvestmentModel;
67
import com.spice.profitmandi.common.model.DataModel;
67
import com.spice.profitmandi.common.model.DataModel;
68
 
68
 
69
import com.spice.profitmandi.common.model.DatasetModel;
69
import com.spice.profitmandi.common.model.DatasetModel;
-
 
70
import com.spice.profitmandi.common.model.HoverModel;
70
import com.spice.profitmandi.common.model.Legend;
71
import com.spice.profitmandi.common.model.Legend;
71
import com.spice.profitmandi.common.model.LegendModel;
72
import com.spice.profitmandi.common.model.LegendModel;
72
import com.spice.profitmandi.common.model.Notification;
73
import com.spice.profitmandi.common.model.Notification;
73
import com.spice.profitmandi.common.model.OnlineDeliveredOrderSum;
74
import com.spice.profitmandi.common.model.OnlineDeliveredOrderSum;
74
import com.spice.profitmandi.common.model.OptionModel;
75
import com.spice.profitmandi.common.model.OptionModel;
Line 76... Line 77...
76
import com.spice.profitmandi.common.model.PieLables;
77
import com.spice.profitmandi.common.model.PieLables;
77
import com.spice.profitmandi.common.model.PluginsModel;
78
import com.spice.profitmandi.common.model.PluginsModel;
78
import com.spice.profitmandi.common.model.ProfitMandiConstants;
79
import com.spice.profitmandi.common.model.ProfitMandiConstants;
79
import com.spice.profitmandi.common.model.ScalesModel;
80
import com.spice.profitmandi.common.model.ScalesModel;
80
import com.spice.profitmandi.common.model.TitleModel;
81
import com.spice.profitmandi.common.model.TitleModel;
-
 
82
import com.spice.profitmandi.common.model.Tooltips;
81
import com.spice.profitmandi.common.web.util.ResponseSender;
83
import com.spice.profitmandi.common.web.util.ResponseSender;
82
import com.spice.profitmandi.dao.Interface.Campaign;
84
import com.spice.profitmandi.dao.Interface.Campaign;
83
import com.spice.profitmandi.dao.entity.auth.AuthUser;
85
import com.spice.profitmandi.dao.entity.auth.AuthUser;
84
import com.spice.profitmandi.dao.entity.auth.Menu;
86
import com.spice.profitmandi.dao.entity.auth.Menu;
85
import com.spice.profitmandi.dao.entity.catalog.Item;
87
import com.spice.profitmandi.dao.entity.catalog.Item;
Line 970... Line 972...
970
		dm.setDatasets(datasets);
972
		dm.setDatasets(datasets);
971
		dm.setLabels(labels);
973
		dm.setLabels(labels);
972
 
974
 
973
		LegendModel lm = new LegendModel();
975
		LegendModel lm = new LegendModel();
974
		lm.setPosition("top");
976
		lm.setPosition("top");
-
 
977
		
-
 
978
		Tooltips tooltips = new Tooltips();
-
 
979
		tooltips.setBodyFontSize(15);
-
 
980
		tooltips.setTitleFontSize(15);
-
 
981
		tooltips.setMode("index");
-
 
982
		tooltips.setIntersect(false);
975
 
983
		
-
 
984
		HoverModel hover = new HoverModel();
-
 
985
		hover.setIntersect(false);
-
 
986
		hover.setMode("index");
-
 
987
		
-
 
988
		
976
		TitleModel tm = new TitleModel();
989
		TitleModel tm = new TitleModel();
977
		tm.setText("Brand Wise LMS");
990
		tm.setText("Brand Wise LMS");
978
		tm.setDisplay(true);
991
		tm.setDisplay(true);
-
 
992
		tm.setFontSize(20);
-
 
993
        tm.setFontColor("#111");
979
 
994
		
980
		OptionsModel om = new OptionsModel();
995
        OptionsModel om = new OptionsModel();
981
		om.setResponsive(true);
996
		om.setResponsive(true);
982
		om.setLegend(lm);
997
		om.setLegend(lm);
983
		om.setTitle(tm);
998
		om.setTitle(tm);
-
 
999
		om.setTooltips(tooltips);
-
 
1000
		om.setHover(hover);
984
 
1001
 
985
		ChartModel cm = new ChartModel();
1002
		ChartModel cm = new ChartModel();
986
		cm.setType("line");
1003
		cm.setType("line");
987
		cm.setData(dm);
1004
		cm.setData(dm);
988
		cm.setOptions(om);
1005
		cm.setOptions(om);
Line 1146... Line 1163...
1146
		 datasets.add(lineLmtdChart);
1163
		 datasets.add(lineLmtdChart);
1147
 
1164
 
1148
		 DataModel dm = new DataModel();
1165
		 DataModel dm = new DataModel();
1149
		 dm.setDatasets(datasets);
1166
		 dm.setDatasets(datasets);
1150
		 dm.setLabels(labels);
1167
		 dm.setLabels(labels);
-
 
1168
		 
-
 
1169
		 Tooltips tooltips = new Tooltips();
-
 
1170
			tooltips.setBodyFontSize(10);
-
 
1171
			tooltips.setTitleFontSize(10);
-
 
1172
			tooltips.setMode("index");
-
 
1173
			tooltips.setIntersect(false);
-
 
1174
			
-
 
1175
			HoverModel hover = new HoverModel();
-
 
1176
			hover.setIntersect(false);
-
 
1177
			hover.setMode("index");
1151
 
1178
 
1152
		 LegendModel lm = new LegendModel();
1179
		 LegendModel lm = new LegendModel();
1153
		 lm.setPosition("top");
1180
		 lm.setPosition("top");
1154
 
1181
 
1155
		 TitleModel tm = new TitleModel();
1182
		 TitleModel tm = new TitleModel();
1156
		 tm.setText("Brand Wise Sales");
1183
		 tm.setText("Brand Wise Sales");
1157
		 tm.setDisplay(true);
1184
		 tm.setDisplay(true);
-
 
1185
		 tm.setFontSize(20);
-
 
1186
	        tm.setFontColor("#111");
1158
 
1187
 
1159
		 List<Axis> xAxes = new ArrayList<>();
1188
		 List<Axis> xAxes = new ArrayList<>();
1160
		 Axis xAxis = new Axis();
1189
		 Axis xAxis = new Axis();
1161
		 xAxis.setStacked(true);
1190
		 xAxis.setStacked(true);
1162
		 xAxes.add(xAxis);
1191
		 xAxes.add(xAxis);
Line 1171... Line 1200...
1171
 
1200
 
1172
		 OptionsModel om = new OptionsModel();
1201
		 OptionsModel om = new OptionsModel();
1173
		 om.setLegend(lm);
1202
		 om.setLegend(lm);
1174
		 om.setTitle(tm);
1203
		 om.setTitle(tm);
1175
		 om.setScales(sm);
1204
		 om.setScales(sm);
-
 
1205
		 om.setHover(hover);
-
 
1206
		 om.setTooltips(tooltips);
1176
 
1207
 
1177
		 cm.setType("bar");
1208
		 cm.setType("bar");
1178
		 cm.setData(dm);
1209
		 cm.setData(dm);
1179
		 cm.setOptions(om);
1210
		 cm.setOptions(om);
1180
 
1211