public Chart GetComparativeChartData(string uniqueName, string datePeriodType) { ChartSeri seri1 = new ChartSeri(); ChartSeri seri2 = new ChartSeri(); if (datePeriodType == "Daily") for (int i = 0; i < 24; i++) { seri1.Points.Add(new ChartPoint(i.ToString(), (i + 1) * 100000)); seri2.Points.Add(new ChartPoint(i.ToString(), (i + 1) * 2 * 100000)); } else if (datePeriodType == "Weekly") for (int i = 0; i < 7; i++) { seri1.Points.Add(new ChartPoint(getDayName(i), (i + 1) * 100000)); seri2.Points.Add(new ChartPoint(getDayName(i), (i + 1) * 2 * 100000)); } else if (datePeriodType == "Monthly") for (int i = 0; i < 30; i++) { seri1.Points.Add(new ChartPoint((i + 1).ToString(), (i + 1) * 100000)); seri2.Points.Add(new ChartPoint((i + 1).ToString(), (i + 1) * 2 * 100000)); } else if (datePeriodType == "Yearly") for (int i = 0; i < 12; i++) { seri1.Points.Add(new ChartPoint(getMonthName(i), (i + 1) * 100000)); seri2.Points.Add(new ChartPoint(getMonthName(i), (i + 1) * 2 * 100000)); } return new Chart() { Series = new List<ChartSeri>() { seri1, seri2 } }; }
public Chart GetChartData(string uniqueName, string datePeriodType) { ChartSeri seri = new ChartSeri(); for (int i = 1; i < 9; i++) { seri.Points.Add(new ChartPoint() { Name = string.Format("رسته {0}", i), Value = i * 23 }); } return new Chart() { Series = new List<ChartSeri>() { seri } }; }
public Chart GetComparativeChartData(string uniqueName, string datePeriodType) { ChartSeri seri1 = new ChartSeri(); ChartSeri seri2 = new ChartSeri(); for (int i = 0; i < 5; i++) { seri1.Points.Add(new ChartPoint() { Name = string.Format("رسته {0}", i), Value = i * 23 }); seri2.Points.Add(new ChartPoint() { Name = string.Format("رسته {0}", i), Value = i * 41 }); } return new Chart() { Series = new List<ChartSeri>() { seri1, seri2 } }; }
public Chart GetChartData(string uniqueName, string datePeriodType) { ChartSeri seri = new ChartSeri(); if (datePeriodType == "Daily") for (int i = 0; i < 24; i++) seri.Points.Add(new ChartPoint(i.ToString(), i * 100000)); else if (datePeriodType == "Weekly") for (int i = 0; i < 7; i++) seri.Points.Add(new ChartPoint(getDayName(i), i * 100000)); else if (datePeriodType == "Monthly") for (int i = 0; i < 30; i++) seri.Points.Add(new ChartPoint((i + 1).ToString(), (i + 1) * 100000)); else if (datePeriodType == "Yearly") for (int i = 0; i < 12; i++) seri.Points.Add(new ChartPoint(getMonthName(i), (i + 1) * 100000)); return new Chart() { Series = new List<ChartSeri>() { seri } }; }
public Chart GetComparativeChartData(string uniqueName, string datePeriodType) { ChartSeri seri1 = new ChartSeri() { Points = new List<ChartPoint>() { new ChartPoint("داخلی", 60000000), new ChartPoint("بسته بندی", 30000000), new ChartPoint("ارسال", 100000000) } }; ChartSeri seri2 = new ChartSeri() { Points = new List<ChartPoint>() { new ChartPoint("داخلی", 80000000), new ChartPoint("بسته بندی", 35000000), new ChartPoint("ارسال", 80000000) } }; return new Chart() { Series = new List<ChartSeri>() { seri1, seri2 } }; }