private void render_stacked_bar_100_Click(object sender, EventArgs e) { lbl.Text = "Bunifu " + ((Button)sender).Text; lbl.ForeColor = ((Button)sender).BackColor; // data Canvas Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint datapoint1 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_stackedBar100); datapoint1.addLabely("Winter", r.Next(1000, 2000)); datapoint1.addLabely("Monsoon", r.Next(1000, 2000)); datapoint1.addLabely("Winter", r.Next(1000, 2000)); datapoint1.addLabely("Automn", r.Next(1000, 2000)); datapoint1.addLabely("Summer", r.Next(1000, 2000)); datapoint1.addLabely("Spring", r.Next(1000, 2000)); //add datapoint to cnavas canvas.addData(datapoint1); //rem you can add several datapointsof different chart Type to one canvas Bunifu.DataViz.DataPoint datapoint2 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_stackedBar100); datapoint2.addLabely("Winter", r.Next(1000, 2000)); datapoint2.addLabely("Monsoon", r.Next(1000, 2000)); datapoint2.addLabely("Winter", r.Next(1000, 2000)); datapoint2.addLabely("Automn", r.Next(1000, 2000)); datapoint2.addLabely("Summer", r.Next(1000, 2000)); datapoint2.addLabely("Spring", r.Next(1000, 2000)); //add datapoint to cnavas canvas.addData(datapoint2); //rem you can add several datapointsof different chart Type to one canvas //render canvas bunifuDataViz1.Render(canvas); }
public void plotdata() { //create a new canvas for the charts var canvas = new Bunifu.DataViz.Canvas(); //add datapoints of the two area charts(Bunifu_stackedArea_Chart) var datapoint_low = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_stackedArea); var datapoint_high = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_stackedArea); datapoint_low.addLabely("Jan", "100"); datapoint_low.addLabely("Feb", "160"); datapoint_low.addLabely("Mar", "155"); datapoint_low.addLabely("Apr", "165"); datapoint_low.addLabely("May", "205"); datapoint_low.addLabely("Jun", "155"); datapoint_low.addLabely("Jul", "120"); datapoint_low.addLabely("Aug", "100"); datapoint_low.addLabely("Sep", "130"); datapoint_low.addLabely("Oct", "125"); datapoint_low.addLabely("Nov", "150"); datapoint_low.addLabely("Dec", "90"); datapoint_high.addLabely("Jan", "100"); datapoint_high.addLabely("Feb", "190"); datapoint_high.addLabely("Mar", "165"); datapoint_high.addLabely("Apr", "180"); datapoint_high.addLabely("May", "240"); datapoint_high.addLabely("Jun", "195"); datapoint_high.addLabely("Jul", "190"); datapoint_high.addLabely("Aug", "130"); datapoint_high.addLabely("Sep", "160"); datapoint_high.addLabely("Oct", "155"); //add the datapoints to the canvas canvas.addData(datapoint_low); canvas.addData(datapoint_high); //to the same canvas, create datapoints for Bunifu_line var bunifu_line_datapoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_line); bunifu_line_datapoint.addLabely("Jan", "100"); bunifu_line_datapoint.addLabely("Feb", "160"); bunifu_line_datapoint.addLabely("Mar", "155"); bunifu_line_datapoint.addLabely("Apr", "165"); bunifu_line_datapoint.addLabely("May", "205"); bunifu_line_datapoint.addLabely("Jun", "155"); bunifu_line_datapoint.addLabely("Jul", "120"); bunifu_line_datapoint.addLabely("Aug", "100"); bunifu_line_datapoint.addLabely("Sep", "130"); bunifu_line_datapoint.addLabely("Oct", "125"); bunifu_line_datapoint.addLabely("Nov", "150"); bunifu_line_datapoint.addLabely("Dec", "90"); //add those datapoints to the chart canvas.addData(bunifu_line_datapoint); //render canvas bunifuDataViz1.Render(canvas); }
private void plotdata() { var canvas1 = new Bunifu.DataViz.Canvas(); var canvas2 = new Bunifu.DataViz.Canvas(); var datapoint1 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_area); datapoint1.addLabely("label1", "45"); datapoint1.addLabely("label2", "60"); datapoint1.addLabely("label3", "50"); datapoint1.addLabely("label4", "80"); datapoint1.addLabely("label5", "70"); datapoint1.addLabely("label6", "90"); datapoint1.addLabely("label7", "100"); datapoint1.addLabely("label8", "95"); datapoint1.addLabely("label9", "60"); datapoint1.addLabely("label10", "45"); canvas1.addData(datapoint1); var datapoint2 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_line); datapoint2.addLabely("label1", "55"); datapoint2.addLabely("label2", "70"); datapoint2.addLabely("label3", "60"); datapoint2.addLabely("label4", "90"); datapoint2.addLabely("label5", "80"); datapoint2.addLabely("label6", "100"); datapoint2.addLabely("label7", "110"); datapoint2.addLabely("label8", "105"); datapoint2.addLabely("label9", "70"); datapoint2.addLabely("label10", "55"); canvas1.addData(datapoint2); bunifuDataViz1.Render(canvas1); var datapoint3 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_pie); datapoint3.addLabely("", "55"); datapoint3.addLabely("", "70"); datapoint3.addLabely("", "60"); datapoint3.addLabely("", "90"); datapoint3.addLabely("", "80"); datapoint3.addLabely("", "100"); canvas2.addData(datapoint3); bunifuDataViz2.Render(canvas2); }
/// <summary> /// Handles the Click event of the render_ohlc control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void render_ohlc_Click(object sender, EventArgs e) { lbl.Text = "Bunifu " + ((Button)sender).Text; lbl.ForeColor = ((Button)sender).BackColor; // data Canvas Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint datapoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_ohlc); //add sample data to datapoint // Y: [Open, High ,Low, Close] //:[19.97, 20.47, 16.23, 17.99] //x= date //Use "new Date" tag to format any date to chart compatible datapoint.addxy("new Date (2002,11,10)", new JArray(19.97, 20.47, 16.23, 17.99).ToString()); datapoint.addxy("new Date (2002, 11, 9)", new JArray(16.68, 19.65, 15.95, 19.25).ToString()); datapoint.addxy("new Date (2002, 11, 8)", new JArray(14.20, 17.86, 11.30, 16.88).ToString()); datapoint.addxy("new Date (2002, 11, 7)", new JArray(16.45, 16.61, 13.29, 14.28).ToString()); datapoint.addxy("new Date (2002, 11, 6)", new JArray(16.50, 19.20, 15.23, 16.45).ToString()); datapoint.addxy("new Date (2002, 11, 5)", new JArray(19.00, 19.00, 13.70, 16.50).ToString()); datapoint.addxy("new Date (2002, 11, 4)", new JArray(20.75, 20.99, 17.50, 19.00).ToString()); datapoint.addxy("new Date (2002, 11, 3)", new JArray(21.38, 23.08, 19.50, 20.85).ToString()); datapoint.addxy("new Date (2002, 11, 2)", new JArray(26.65, 26.70, 20.07, 21.44).ToString()); datapoint.addxy("new Date (2002, 11, 1)", new JArray(26.30, 30.50, 25.00, 26.70).ToString()); //add datapoint to cnavas canvas.addData(datapoint); //rem you can add several datapointsof different chart Type to one canvas //render canvas bunifuDataViz1.Render(canvas); }
/// <summary> /// Handles the Click event of the render_range_spline_area control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void render_range_spline_area_Click(object sender, EventArgs e) { lbl.Text = "Bunifu " + ((Button)sender).Text; lbl.ForeColor = ((Button)sender).BackColor; // data Canvas Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint datapoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_rangeSplineArea); //add sample data to datapoint // Y: [Low, High] //x= date //Use "new Date" tag to format any date to chart compatible datapoint.addxy("new Date (2002,11,10)", new JArray(16.23, 17.99).ToString()); datapoint.addxy("new Date (2002, 11, 9)", new JArray(15.95, 19.25).ToString()); datapoint.addxy("new Date (2002, 11, 8)", new JArray(11.30, 16.88).ToString()); datapoint.addxy("new Date (2002, 11, 7)", new JArray(13.29, 14.28).ToString()); datapoint.addxy("new Date (2002, 11, 6)", new JArray(15.23, 16.45).ToString()); datapoint.addxy("new Date (2002, 11, 5)", new JArray(13.70, 16.50).ToString()); datapoint.addxy("new Date (2002, 11, 4)", new JArray(17.50, 19.00).ToString()); datapoint.addxy("new Date (2002, 11, 3)", new JArray(19.50, 20.85).ToString()); datapoint.addxy("new Date (2002, 11, 2)", new JArray(20.07, 21.44).ToString()); datapoint.addxy("new Date (2002, 11, 1)", new JArray(25.00, 26.70).ToString()); //add datapoint to cnavas canvas.addData(datapoint); //rem you can add several datapointsof different chart Type to one canvas //render canvas bunifuDataViz1.Render(canvas); }
/// <summary> /// Button1s the click. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param> private void button1_Click(object sender, EventArgs e) { lbl.Text = "Bunifu " + ((Button)sender).Text; lbl.ForeColor = ((Button)sender).BackColor; // data Canvas Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint datapoint1 = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_stepArea); datapoint1.addxy("new Date (2002,11,10)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 9)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 8)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 7)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 6)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 5)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 4)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 3)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 2)", r.Next(1000, 2000)); datapoint1.addxy("new Date (2002, 11, 1)", r.Next(1000, 2000)); //add datapoint to cnavas canvas.addData(datapoint1); //rem you can add several datapointsof different chart Type to one canvas //render canvas bunifuDataViz1.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderTwo() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Values.Categories.kpiCategories[(int)Values.Sections.KpiSection.PurchSub][(int)Values.Categories.KpiCategory.PurchSub.POCreationDatevsConfirmationEntryDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Values.Sections.kpiections[(int)Values.Sections.KpiSection.PurchSub]; AnalysisOne = "- Will show if PO line has a confirmation date."; AnalysisTwo = "- Difference between initial confirmation date creation and PO line item creation."; TemplateFour tempFour = KpiOverallReport.Indicators[(int)KpiOption.PurchSub_PoCreationDateVsConfirmationEntryDate].TemplateBlock as TemplateFour; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFour.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFour.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFour.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFour.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFour.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFour.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFour.TwentyNineToThirtyFiveDays.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFour.ThirtySixtoFourtyTwoDays.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFour.FourtyThreeToFourtyNineDays.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFour.FiftyToFiftySixDays.ToString()); dp.addLabely(lbl_xLabelEleven.Text, tempFour.FiftySevenPlusDays.ToString()); // Add the data to the time spans Average = string.Format("{0:n}", tempFour.Average); TimeBucketOne = string.Format("{0:n0}", tempFour.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempFour.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempFour.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempFour.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempFour.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempFour.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempFour.TwentyNineToThirtyFiveDays); TimeBucketEight = string.Format("{0:n0}", tempFour.ThirtySixtoFourtyTwoDays); TimeBucketNine = string.Format("{0:n0}", tempFour.FourtyThreeToFourtyNineDays); TimeBucketTen = string.Format("{0:n0}", tempFour.FiftyToFiftySixDays); TimeBucketEleven = string.Format("{0:n0}", tempFour.FiftySevenPlusDays); TotalOrders = string.Format("{0:n0}", tempFour.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.PurchSub_PoCreationDateVsConfirmationEntryDate] as IUnconfirmed); // Get the uncofnrimed information PercNoConf = string.Format("{0:n}", unconfirmedInfo.PercentUnconfirmed); PercNoConfTotal = string.Format("{0:n0}", unconfirmedInfo.UnconfirmedTotal); canvas.addData(dp); dataviz.Render(canvas); }
private void LoadChart() { var cnv = new Bunifu.DataViz.Canvas(); var dataPoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_pie); dataPoint.addLabely("Books", rand.Next(0, 500).ToString()); dataPoint.addLabely("Magazines", rand.Next(0, 500).ToString()); dataPoint.addLabely("Music", rand.Next(0, 500).ToString()); cnv.addData(dataPoint); bunifuDataViz1.Render(cnv); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PR Release to Confirmation Entry"; TimeBucketOne = overallData.kpi.purchTotal.prRelConfEntry.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpi.purchTotal.prRelConfEntry.data.One_Three.ToString(); TimeBucketThree = overallData.kpi.purchTotal.prRelConfEntry.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpi.purchTotal.prRelConfEntry.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpi.purchTotal.prRelConfEntry.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpi.purchTotal.prRelConfEntry.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpi.purchTotal.prRelConfEntry.data.TwentyNine_ThirtyFive.ToString(); TimeBucketEight = overallData.kpi.purchTotal.prRelConfEntry.data.ThirtySix_FourtyTwo.ToString(); TimeBucketNine = overallData.kpi.purchTotal.prRelConfEntry.data.FourtyThree_FourtyNine.ToString(); TimeBucketTen = overallData.kpi.purchTotal.prRelConfEntry.data.greaterThanEqualFifty.ToString(); AnalysisOne = "- Will show if PO line item has a confirmation date."; AnalysisTwo = "- Difference between initial confirmation date creation and PR 2nd level release."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); dp.addLabely(lbl_xLabelTen.Text, TimeBucketTen); TotalOrders = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Total); Average = String.Format("{0:n}", overallData.kpi.purchTotal.prRelConfEntry.data.Average); PercNoConf = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.PercentUnconf); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.TwentyNine_ThirtyFive); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.ThirtySix_FourtyTwo); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.FourtyThree_FourtyNine); TimeBucketTen = String.Format("{0:n0}", overallData.kpi.purchTotal.prRelConfEntry.data.greaterThanEqualFifty); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA data on the template /// </summary> private void RenderCurrPlanCurrConfDateHotJobs() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "Current planned date vs current confirmation date (Open POs) - Hot Job Only"; TimeBucketOne = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusFourWeeks.ToString(); TimeBucketTwo = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusThreeWeeks.ToString(); TimeBucketThree = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusTwoWeeks.ToString(); TimeBucketFour = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusOneWeeks.ToString(); TimeBucketFive = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.ZeroWeeks.ToString(); TimeBucketSix = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.OneWeek.ToString(); TimeBucketSeven = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.TwoWeeks.ToString(); TimeBucketEight = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.ThreeWeeks.ToString(); TimeBucketNine = overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.FourWeeksPlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.Total); Average = String.Format("{0:n}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.Average); AnalysisOne = "- Will only show if the PO line has a confirmed date and the PO is not received complete."; AnalysisTwo = "- Difference between confirmation date and the current planned date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusFourWeeks); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusThreeWeeks); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusTwoWeeks); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.LessThanMinusOneWeeks); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.ZeroWeeks); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.OneWeek); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.TwoWeeks); TimeBucketEight = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.ThreeWeeks); TimeBucketNine = String.Format("{0:n0}", overallData.kpa.currPlanVsActual.currPlanDateCurrConfDateHotJobs.data.FourWeeksPlus); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderTwo() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PRs Released"; TimeBucketOne = overallData.kpi.other.prsReleased.data.Zero.ToString(); TimeBucketTwo = overallData.kpi.other.prsReleased.data.LessOneWeek.ToString(); TimeBucketThree = overallData.kpi.other.prsReleased.data.LessTwoWeeks.ToString(); TimeBucketFour = overallData.kpi.other.prsReleased.data.LessThreeWeeks.ToString(); TimeBucketFive = overallData.kpi.other.prsReleased.data.LessFourWeeks.ToString(); TimeBucketSix = overallData.kpi.other.prsReleased.data.LessFiveWeeks.ToString(); TimeBucketSeven = overallData.kpi.other.prsReleased.data.LessSixWeeks.ToString(); TimeBucketEight = overallData.kpi.other.prsReleased.data.LessSevenWeeks.ToString(); TimeBucketNine = overallData.kpi.other.prsReleased.data.LessEightWeeks.ToString(); TimeBucketTen = overallData.kpi.other.prsReleased.data.LessNinePlusWeeks.ToString(); AnalysisOne = "- Count of PRs by 2nd level release date."; AnalysisTwo = "- Difference between the date the PR was released to the 2nd level and todays date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); dp.addLabely(lbl_xLabelTen.Text, TimeBucketTen); TotalOrders = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.Total); TotalValue = String.Format("{0:n}", overallData.kpi.other.prsReleased.data.TotalValue); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.Zero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessOneWeek); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessTwoWeeks); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessThreeWeeks); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessFourWeeks); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessFiveWeeks); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessSixWeeks); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessSevenWeeks); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessEightWeeks); TimeBucketTen = String.Format("{0:n0}", overallData.kpi.other.prsReleased.data.LessNinePlusWeeks); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Values.Categories.kpiCategories[(int)Values.Sections.KpiSection.Purch][(int)Values.Categories.KpiCategory.Purch.InitialConfirmationDatevsPRPlanDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Values.Sections.kpiections[(int)Values.Sections.KpiSection.Purch]; AnalysisOne = "- Will show if the PR is on a PO."; AnalysisTwo = "- Difference between first confirmed date and PR planned date."; TemplateThree tempThree = KpiOverallReport.Indicators[(int)KpiOption.Purch_InitialConfirmationDateVsPrPlanDate].TemplateBlock as TemplateThree; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempThree.LessThanEqualToNegTwentyTwoDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempThree.NegTwentyOneToNegFifteenDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempThree.NegFourteenToNegEightDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempThree.NegSevenToNegOneDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempThree.ZeroDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempThree.OneToSevenDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempThree.GreaterThanEqualToTwentyTwoDays.ToString()); Average = string.Format("{0:n}", tempThree.Average); TimeBucketOne = string.Format("{0:n0}", tempThree.LessThanEqualToNegTwentyTwoDays); TimeBucketTwo = string.Format("{0:n0}", tempThree.NegTwentyOneToNegFifteenDays); TimeBucketThree = string.Format("{0:n0}", tempThree.NegFourteenToNegEightDays); TimeBucketFour = string.Format("{0:n0}", tempThree.NegSevenToNegOneDays); TimeBucketFive = string.Format("{0:n0}", tempThree.ZeroDays); TimeBucketSix = string.Format("{0:n0}", tempThree.OneToSevenDays); TimeBucketSeven = string.Format("{0:n0}", tempThree.EightToFourteenDays); TimeBucketEight = string.Format("{0:n0}", tempThree.FifteenToTwentyOneDays); TimeBucketNine = string.Format("{0:n0}", tempThree.GreaterThanEqualToTwentyTwoDays); TotalOrders = string.Format("{0:n0}", tempThree.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.Purch_InitialConfirmationDateVsPrPlanDate] as IUnconfirmed); // Get the uncofnrimed information PercNoConf = string.Format("{0:n}", unconfirmedInfo.PercentUnconfirmed); PercNoConfTotal = string.Format("{0:n0}", unconfirmedInfo.UnconfirmedTotal); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PR Planned Date vs Current Planned"; Average = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Average.ToString(); TotalOrders = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Total.ToString(); TimeBucketOne = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_TwentyTwo.ToString(); TimeBucketTwo = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Fifteen_TwentyOne.ToString(); TimeBucketThree = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Eight_Fourteen.ToString(); TimeBucketFour = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_One_Seven.ToString(); TimeBucketFive = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Zero.ToString(); TimeBucketSix = overallData.kpi.plan.prPlanDateVsCurrPlan.data.One_Seven.ToString(); TimeBucketSeven = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Eight_Fourteen.ToString(); TimeBucketEight = overallData.kpi.plan.prPlanDateVsCurrPlan.data.Fifteen_TwentyOne.ToString(); TimeBucketNine = overallData.kpi.plan.prPlanDateVsCurrPlan.data.TwentyTwo.ToString(); AnalysisOne = "- Will show for PRs that are on a PO."; AnalysisTwo = "- Difference between current planned date and PR planned date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); Average = String.Format("{0:n}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Average); TotalOrders = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Total); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_TwentyTwo); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Fifteen_TwentyOne); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_Eight_Fourteen); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Minus_One_Seven); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Zero); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.One_Seven); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Eight_Fourteen); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.Fifteen_TwentyOne); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.plan.prPlanDateVsCurrPlan.data.TwentyTwo); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PR Release vs PO Release"; TimeBucketOne = overallData.kpi.purchSub.prRelVsPORel.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpi.purchSub.prRelVsPORel.data.One_Three.ToString(); TimeBucketThree = overallData.kpi.purchSub.prRelVsPORel.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpi.purchSub.prRelVsPORel.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpi.purchSub.prRelVsPORel.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpi.purchSub.prRelVsPORel.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpi.purchSub.prRelVsPORel.data.TwentyNine_ThirtyFive.ToString(); TimeBucketEight = overallData.kpi.purchSub.prRelVsPORel.data.ThirtySix_FourtyTwo.ToString(); TimeBucketNine = overallData.kpi.purchSub.prRelVsPORel.data.FourtyThree_FourtyNine.ToString(); TimeBucketTen = overallData.kpi.purchSub.prRelVsPORel.data.greaterThanEqualFifty.ToString(); AnalysisOne = "- Will show if PR is on a PO that has previously been released."; AnalysisTwo = "- Difference between PO line initial release date and PR second level release."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); dp.addLabely(lbl_xLabelTen.Text, TimeBucketTen); Average = String.Format("{0:n}", overallData.kpi.purchSub.prRelVsPORel.data.Average); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.TwentyNine_ThirtyFive); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.ThirtySix_FourtyTwo); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.FourtyThree_FourtyNine); TimeBucketTen = String.Format("{0:n0}", overallData.kpi.purchSub.prRelVsPORel.data.greaterThanEqualFifty); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderThree() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "(Curr Plan Date - 2nd Lvl Rel Date) vs Coded Lead-time"; Average = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Average.ToString(); TotalOrders = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Total.ToString(); TimeBucketOne = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_TwentyTwo.ToString(); TimeBucketTwo = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_Fifteen_TwentyOne.ToString(); TimeBucketThree = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_Eight_Fourteen.ToString(); TimeBucketFour = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_One_Seven.ToString(); TimeBucketFive = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Zero.ToString(); TimeBucketSix = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.One_Seven.ToString(); TimeBucketSeven = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Eight_Fourteen.ToString(); TimeBucketEight = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Fifteen_TwentyOne.ToString(); TimeBucketNine = overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.TwentyTwo.ToString(); AnalysisOne = "- Will show if PR has 2nd level release."; AnalysisTwo = "- (current planned date - 2nd level release date) - commodity coded leadtime."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); Average = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Average); TotalOrders = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Total); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_TwentyTwo); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_Fifteen_TwentyOne); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_Eight_Fourteen); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Minus_One_Seven); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Zero); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.One_Seven); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Eight_Fourteen); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.Fifteen_TwentyOne); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.plan.currPlanDateMinus2ndLvlRelDateVsCodedLead.data.TwentyTwo); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpiCategories[(int)Sections.KpiSection.PlanTwo][(int)Categories.KpiCategory.PlanTwo.MaterialDueOriginalPlanDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpiections[(int)Sections.KpiSection.PlanTwo]; AnalysisOne = "- Will show if the PR has been fully released."; AnalysisTwo = "- Difference between PR delivery date and the date the PR was fully released."; TemplateFour tempFour = KpiOverallReport.Indicators[(int)KpiOption.PlanTwo_MaterialDueOriginalPlannedDate].TemplateBlock as TemplateFour; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFour.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFour.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFour.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFour.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFour.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFour.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFour.TwentyNineToThirtyFiveDays.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFour.ThirtySixtoFourtyTwoDays.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFour.FourtyThreeToFourtyNineDays.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFour.FiftyToFiftySixDays.ToString()); dp.addLabely(lbl_xLabelEleven.Text, tempFour.FiftySevenPlusDays.ToString()); // Add the data to the time spans Average = string.Format("{0:n}", tempFour.Average); TimeBucketOne = string.Format("{0:n0}", tempFour.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempFour.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempFour.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempFour.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempFour.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempFour.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempFour.TwentyNineToThirtyFiveDays); TimeBucketEight = string.Format("{0:n0}", tempFour.ThirtySixtoFourtyTwoDays); TimeBucketNine = string.Format("{0:n0}", tempFour.FourtyThreeToFourtyNineDays); TimeBucketTen = string.Format("{0:n0}", tempFour.FiftyToFiftySixDays); TimeBucketEleven = string.Format("{0:n0}", tempFour.FiftySevenPlusDays); TotalOrders = string.Format("{0:n0}", tempFour.TotalRecords); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderTwo() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PR 2nd Level Release to Original Planned Delivery Date"; TimeBucketOne = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.One_Three.ToString(); TimeBucketThree = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyNine_ThirtyFive.ToString(); TimeBucketEight = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.ThirtySix_FourtyTwo.ToString(); TimeBucketNine = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.FourtyThree_FourtyNine.ToString(); TimeBucketTen = overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.greaterThanEqualFifty.ToString(); AnalysisOne = "- Will show if PR is released to 2nd or 3rd level."; AnalysisTwo = "- Difference between PR delivery date and PR 2nd level release Date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); dp.addLabely(lbl_xLabelTen.Text, TimeBucketTen); TotalOrders = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Total); Average = String.Format("{0:n}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Average); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.TwentyNine_ThirtyFive); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.ThirtySix_FourtyTwo); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.FourtyThree_FourtyNine); TimeBucketTen = String.Format("{0:n0}", overallData.kpi.purchPlan.pr2ndLvlRelOrigPlanDelDate.data.greaterThanEqualFifty); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpiCategories[(int)Sections.KpiSection.FollowUpTwo][(int)Categories.KpiCategory.FollowUpTwo.PoReleaseToLastPoReceiptDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpiections[(int)Sections.KpiSection.FollowUpTwo]; AnalysisOne = "- Will show if the PO has been received complete."; AnalysisTwo = "- Difference between the last PO receipt date and the PO line 1st release date."; // TODO: Need to get the template from the correct KPI. TemplateFour tempFour = KpiOverallReport.Indicators[(int)KpiOption.FollowUpTwo_PoReleaseToLastPoReceiptDate].TemplateBlock as TemplateFour; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFour.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFour.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFour.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFour.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFour.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFour.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFour.TwentyNineToThirtyFiveDays.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFour.ThirtySixtoFourtyTwoDays.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFour.FourtyThreeToFourtyNineDays.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFour.FiftyToFiftySixDays.ToString()); dp.addLabely(lbl_xLabelEleven.Text, tempFour.FiftySevenPlusDays.ToString()); // Add the data to the time spans Average = string.Format("{0:n}", tempFour.Average); TimeBucketOne = string.Format("{0:n0}", tempFour.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempFour.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempFour.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempFour.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempFour.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempFour.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempFour.TwentyNineToThirtyFiveDays); TimeBucketEight = string.Format("{0:n0}", tempFour.ThirtySixtoFourtyTwoDays); TimeBucketNine = string.Format("{0:n0}", tempFour.FourtyThreeToFourtyNineDays); TimeBucketTen = string.Format("{0:n0}", tempFour.FiftyToFiftySixDays); TimeBucketEleven = string.Format("{0:n0}", tempFour.FiftySevenPlusDays); TotalOrders = string.Format("{0:n0}", tempFour.TotalRecords); IUnconfirmed unconfirmedInfo = (KpiOverallReport.Indicators[(int)KpiOption.FollowUpTwo_PoReleaseToLastPoReceiptDate] as IUnconfirmed); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void POCreateConfEntry() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PO Creation to Confirmation Entry"; TimeBucketOne = overallData.kpa.purchSub.POCreatToConfEntry.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpa.purchSub.POCreatToConfEntry.data.One_Three.ToString(); TimeBucketThree = overallData.kpa.purchSub.POCreatToConfEntry.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpa.purchSub.POCreatToConfEntry.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpa.purchSub.POCreatToConfEntry.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpa.purchSub.POCreatToConfEntry.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpa.purchSub.POCreatToConfEntry.data.TwentyNinePlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.Total); Average = String.Format("{0:n}", overallData.kpa.purchSub.POCreatToConfEntry.data.Average); AnalysisOne = "- Will only show in this field if PR is on PO, PO line item does not have a confirmation date and PO line is not received complete."; AnalysisTwo = "- Difference between todays date and the date the PR was added to the PO."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.purchSub.POCreatToConfEntry.data.TwentyNinePlus); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderOne() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "Initial Confirmation vs PR Planned Date"; TimeBucketOne = overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_TwentyTwo.ToString(); TimeBucketTwo = overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Fifteen_TwentyOne.ToString(); TimeBucketThree = overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Eight_Fourteen.ToString(); TimeBucketFour = overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_One_Seven.ToString(); TimeBucketFive = overallData.kpi.purch.initConfVsPRPlanDate.data.Zero.ToString(); TimeBucketSix = overallData.kpi.purch.initConfVsPRPlanDate.data.One_Seven.ToString(); TimeBucketSeven = overallData.kpi.purch.initConfVsPRPlanDate.data.Eight_Fourteen.ToString(); TimeBucketEight = overallData.kpi.purch.initConfVsPRPlanDate.data.Fifteen_TwentyOne.ToString(); TimeBucketNine = overallData.kpi.purch.initConfVsPRPlanDate.data.TwentyTwo.ToString(); AnalysisOne = "- Will show if PO line item has been confirmed."; AnalysisTwo = "- Difference between first confirmed date and PR planned date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); dp.addLabely(lbl_xLabelEight.Text, TimeBucketEight); dp.addLabely(lbl_xLabelNine.Text, TimeBucketNine); TotalOrders = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Total); Average = String.Format("{0:n}", overallData.kpi.purch.initConfVsPRPlanDate.data.Average); PercNoConf = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.PercentUnconf); TimeBucketOne = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_TwentyTwo); TimeBucketTwo = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Fifteen_TwentyOne); TimeBucketThree = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_Eight_Fourteen); TimeBucketFour = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Minus_One_Seven); TimeBucketFive = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Zero); TimeBucketSix = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.One_Seven); TimeBucketSeven = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Eight_Fourteen); TimeBucketEight = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.Fifteen_TwentyOne); TimeBucketNine = String.Format("{0:n0}", overallData.kpi.purch.initConfVsPRPlanDate.data.TwentyTwo); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA data on the template /// </summary> private void RenderCurrPlanCurrConfDateOpenPO() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Values.Categories.kpaCategories[(int)Values.Sections.KpaSection.CurrPlanActual][(int)Values.Categories.KpaCategory.CurrPlanVsActual.CurrPlanDateCurrConfDateOpenPO]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Values.Sections.kpaSections[(int)Values.Sections.KpaSection.CurrPlanActual]; AnalysisOne = "- Will only show if the PO line has a confirmed date AND is not received complete."; AnalysisTwo = "- Difference between the confirmation date and the current planned date."; TemplateTwo tempTwo = KpaOverallReport.Actions[(int)KpaOption.CurrentPlanVsActual_CurrentPlanDateVsCurrentConfirmationDate].TemplateBlock as TemplateTwo; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempTwo.LessthanNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempTwo.GreaterThanEqualToNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempTwo.GreaterThanEqualToNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempTwo.GreaterThanEqualToNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempTwo.ZeroWeeks.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempTwo.LessThanEqualToOneWeek.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempTwo.LessThanEqualToTwoWeeks.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempTwo.LessThanEqualToThreeWeeks.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempTwo.GreaterThanThreeWeeks.ToString()); Average = string.Format("{0:n}", tempTwo.Average); TimeBucketOne = string.Format("{0:n0}", tempTwo.LessthanNegThreeWeeks); TimeBucketTwo = string.Format("{0:n0}", tempTwo.GreaterThanEqualToNegThreeWeeks); TimeBucketThree = string.Format("{0:n0}", tempTwo.GreaterThanEqualToNegTwoWeeks); TimeBucketFour = string.Format("{0:n0}", tempTwo.GreaterThanEqualNegOneWeek); TimeBucketFive = string.Format("{0:n0}", tempTwo.ZeroWeeks); TimeBucketSix = string.Format("{0:n0}", tempTwo.LessThanEqualToOneWeek); TimeBucketSeven = string.Format("{0:n0}", tempTwo.LessThanEqualToTwoWeeks); TimeBucketEight = string.Format("{0:n0}", tempTwo.LessThanEqualToThreeWeeks); TimeBucketNine = string.Format("{0:n0}", tempTwo.GreaterThanThreeWeeks); TotalOrders = string.Format("{0:n0}", tempTwo.TotalRecords); // Render the column chart canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Handles the Click event of the render_bubble_chart control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void render_bubble_chart_Click(object sender, EventArgs e) { lbl.Text = "Bunifu " + ((Button)sender).Text; lbl.ForeColor = ((Button)sender).BackColor; //Canvas data Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint datapoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_bubble); //add sample data to datapoint for (int i = 1; i <= 30; i++) { datapoint.addxyzname(r.Next(0, 100), r.Next(0, 100), r.Next(10, 100), "Bubble" + i); //x y z, name } //add datapoint to cnavas canvas.addData(datapoint); //render canvas bunifuDataViz1.Render(canvas); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderThree() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpiCategories[(int)Sections.KpiSection.Other][(int)Categories.KpiCategory.Other.TotalSpend]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpiections[(int)Sections.KpiSection.Other]; AnalysisOne = "- Value of PO Lines based on PO line Creation Date."; AnalysisTwo = ""; TemplateFive tempFive = KpiOverallReport.Indicators[(int)KpiOption.Other_TotalSpend].TemplateBlock as TemplateFive; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFive.GreaterThanEqualToZeroWeeks.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFive.GreaterThanEqualToNegOneWeek.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFive.GreaterThanEqualToNegTwoWeeks.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFive.GreaterThanEqualToNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFive.GreaterThanEqualToNegFourWeeks.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFive.GreaterThanEqualToNegFiveWeeks.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFive.GreaterThanEqualToNegSixWeeks.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFive.GreaterThanEqualToNegSevenWeeks.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFive.GreaterThanEqualToNegEightWeeks.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFive.LessThanNegEightWeeks.ToString()); // Add the data to the time spans TotalValue = string.Format("{0:n0}", tempFive.TotalValue); TimeBucketOne = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToZeroWeeks); TimeBucketTwo = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegOneWeek); TimeBucketThree = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegTwoWeeks); TimeBucketFour = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegThreeWeeks); TimeBucketFive = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegFourWeeks); TimeBucketSix = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegFiveWeeks); TimeBucketSeven = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegSixWeeks); TimeBucketEight = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegSevenWeeks); TimeBucketNine = "$" + string.Format("{0:n}", tempFive.GreaterThanEqualToNegEightWeeks); TimeBucketTen = "$" + string.Format("{0:n}", tempFive.LessThanNegEightWeeks); TotalOrders = string.Format("{0:n0}", tempFive.TotalRecords); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void RenderConfirmedVsPlanDate() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "Confirmed vs Plan Date"; TimeBucketOne = overallData.kpa.followUp.confDateVsPlanDate.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpa.followUp.confDateVsPlanDate.data.One_Three.ToString(); TimeBucketThree = overallData.kpa.followUp.confDateVsPlanDate.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpa.followUp.confDateVsPlanDate.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpa.followUp.confDateVsPlanDate.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpa.followUp.confDateVsPlanDate.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpa.followUp.confDateVsPlanDate.data.TwentyNinePlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.Total); Average = String.Format("{0:n}", overallData.kpa.followUp.confDateVsPlanDate.data.Average); AnalysisOne = "- Will only show in this field if PR is on a PO, the line item does have a confirmation date and the line is not received complete."; AnalysisTwo = "- Difference between current confirmed date and current plan date."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.followUp.confDateVsPlanDate.data.TwentyNinePlus); canvas.addData(dp); dataviz.Render(canvas); }
private void LoadChar() { var cnv = new Bunifu.DataViz.Canvas(); var dataPoint = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_splineArea); dataPoint.addLabely("Jan", ran.Next(0, 50).ToString()); dataPoint.addLabely("Feb", ran.Next(0, 50).ToString()); dataPoint.addLabely("Mar", ran.Next(0, 50).ToString()); dataPoint.addLabely("Apr", ran.Next(0, 50).ToString()); dataPoint.addLabely("Jun", ran.Next(0, 50).ToString()); dataPoint.addLabely("Aug", ran.Next(0, 50).ToString()); dataPoint.addLabely("Sep", ran.Next(0, 50).ToString()); dataPoint.addLabely("Oct", ran.Next(0, 50).ToString()); cnv.addData(dataPoint); bunifuDataViz1.colorSet.Add(Color.Red); bunifuDataViz1.Render(cnv); }
/// <summary> /// Renders the specific KPI category into the loaded template /// </summary> private void RenderFive() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpiCategories[(int)Sections.KpiSection.Other][(int)Categories.KpiCategory.Other.HotJobPRs]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpiections[(int)Sections.KpiSection.Other]; AnalysisOne = "- Will show for PRs which have Purchase Group of 'UHJ'."; AnalysisTwo = "- Difference between the date the PR was created and todays date."; TemplateFive tempFive = KpiOverallReport.Indicators[(int)KpiOption.Other_HotJobPRs].TemplateBlock as TemplateFive; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempFive.GreaterThanEqualToZeroWeeks.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempFive.GreaterThanEqualToNegOneWeek.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempFive.GreaterThanEqualToNegTwoWeeks.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempFive.GreaterThanEqualToNegThreeWeeks.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempFive.GreaterThanEqualToNegFourWeeks.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempFive.GreaterThanEqualToNegFiveWeeks.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempFive.GreaterThanEqualToNegSixWeeks.ToString()); dp.addLabely(lbl_xLabelEight.Text, tempFive.GreaterThanEqualToNegSevenWeeks.ToString()); dp.addLabely(lbl_xLabelNine.Text, tempFive.GreaterThanEqualToNegEightWeeks.ToString()); dp.addLabely(lbl_xLabelTen.Text, tempFive.LessThanNegEightWeeks.ToString()); // Add the data to the time spans TotalValue = string.Format("{0:n}", tempFive.TotalValue); TimeBucketOne = string.Format("{0:n0}", tempFive.GreaterThanEqualToZeroWeeks); TimeBucketTwo = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegOneWeek); TimeBucketThree = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegTwoWeeks); TimeBucketFour = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegThreeWeeks); TimeBucketFive = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegFourWeeks); TimeBucketSix = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegFiveWeeks); TimeBucketSeven = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegSixWeeks); TimeBucketEight = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegSevenWeeks); TimeBucketNine = string.Format("{0:n0}", tempFive.GreaterThanEqualToNegEightWeeks); TimeBucketTen = string.Format("{0:n0}", tempFive.LessThanNegEightWeeks); TotalOrders = string.Format("{0:n0}", tempFive.TotalRecords); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void NoConfirmation() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "No Confirmations"; TimeBucketOne = overallData.kpa.purch.noConfirmation.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpa.purch.noConfirmation.data.One_Three.ToString(); TimeBucketThree = overallData.kpa.purch.noConfirmation.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpa.purch.noConfirmation.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpa.purch.noConfirmation.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpa.purch.noConfirmation.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpa.purch.noConfirmation.data.TwentyNinePlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.Total); Average = String.Format("{0:n}", overallData.kpa.purch.noConfirmation.data.Average); AnalysisOne = "- PR is on PO, PO previously released, no confirmation, and line not received complete."; AnalysisTwo = "- Difference between todays date and the date that PO line item first approved."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.purch.noConfirmation.data.TwentyNinePlus); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void RenderPOPrevRel() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PO Previous Release"; TimeBucketOne = overallData.kpa.purch.poPrevRel.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpa.purch.poPrevRel.data.One_Three.ToString(); TimeBucketThree = overallData.kpa.purch.poPrevRel.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpa.purch.poPrevRel.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpa.purch.poPrevRel.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpa.purch.poPrevRel.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpa.purch.poPrevRel.data.TwentyNinePlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.Total); Average = String.Format("{0:n}", overallData.kpa.purch.poPrevRel.data.Average); AnalysisOne = "- PR is on the PO, PO line items was previously released, PO currently not released (approved), and line item is not received."; AnalysisTwo = "- Difference between todays date and the date the PR was added to the PO."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.purch.poPrevRel.data.TwentyNinePlus); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void RenderPRRelToPORel() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = "PR Release to PO Release"; TimeBucketOne = overallData.kpa.purchSub.prRelToPORel.data.LessThanZero.ToString(); TimeBucketTwo = overallData.kpa.purchSub.prRelToPORel.data.One_Three.ToString(); TimeBucketThree = overallData.kpa.purchSub.prRelToPORel.data.Four_Seven.ToString(); TimeBucketFour = overallData.kpa.purchSub.prRelToPORel.data.Eight_Fourteen.ToString(); TimeBucketFive = overallData.kpa.purchSub.prRelToPORel.data.Fifteen_TwentyOne.ToString(); TimeBucketSix = overallData.kpa.purchSub.prRelToPORel.data.TwentyTwo_TwentyEight.ToString(); TimeBucketSeven = overallData.kpa.purchSub.prRelToPORel.data.TwentyNinePlus.ToString(); TotalOrders = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.Total); Average = String.Format("{0:n}", overallData.kpa.purchSub.prRelToPORel.data.Average); AnalysisOne = "- Will only show in this field if PR is fully released"; AnalysisTwo = "- Difference between todays date and the date the PR was released to the 2nd level."; dp.addLabely(lbl_xLabelOne.Text, TimeBucketOne); dp.addLabely(lbl_xLabelTwo.Text, TimeBucketTwo); dp.addLabely(lbl_xLabelThree.Text, TimeBucketThree); dp.addLabely(lbl_xLabelFour.Text, TimeBucketFour); dp.addLabely(lbl_xLabelFive.Text, TimeBucketFive); dp.addLabely(lbl_xLabelSix.Text, TimeBucketSix); dp.addLabely(lbl_xLabelSeven.Text, TimeBucketSeven); TimeBucketOne = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.LessThanZero); TimeBucketTwo = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.One_Three); TimeBucketThree = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.Four_Seven); TimeBucketFour = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.Eight_Fourteen); TimeBucketFive = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.Fifteen_TwentyOne); TimeBucketSix = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.TwentyTwo_TwentyEight); TimeBucketSeven = String.Format("{0:n0}", overallData.kpa.purchSub.prRelToPORel.data.TwentyNinePlus); canvas.addData(dp); dataviz.Render(canvas); }
/// <summary> /// Renders the specific KPA category into the loaded template /// </summary> private void RenderConfirmedVsPlanDate() { Bunifu.DataViz.Canvas canvas = new Bunifu.DataViz.Canvas(); Bunifu.DataViz.DataPoint dp = new Bunifu.DataViz.DataPoint(Bunifu.DataViz.BunifuDataViz._type.Bunifu_column); Title = Categories.kpaCategories[(int)Sections.KpaSection.FollowUp][(int)Categories.KpaCategory.FollowUp.ConfPlanDate]; KPA_KPI_UI.topHandleBarModel.Category = Title; KPA_KPI_UI.topHandleBarModel.Section = Sections.kpaSections[(int)Sections.KpaSection.FollowUp]; AnalysisOne = "- Will only show for PO line items with confimration date and have not been received complete."; AnalysisTwo = "- Difference between current confirmed date and current plan date."; // Get the template data TemplateOne tempOne = KpaOverallReport.Actions[(int)KpaOption.FollowUp_ConfirmedDateVsPlanDate].TemplateBlock as TemplateOne; // Add the data to the column chart dp.addLabely(lbl_xLabelOne.Text, tempOne.LessThanEqualToZeroDays.ToString()); dp.addLabely(lbl_xLabelTwo.Text, tempOne.OneToThreeDays.ToString()); dp.addLabely(lbl_xLabelThree.Text, tempOne.FourToSevenDays.ToString()); dp.addLabely(lbl_xLabelFour.Text, tempOne.EightToFourteenDays.ToString()); dp.addLabely(lbl_xLabelFive.Text, tempOne.FifteenToTwentyOneDays.ToString()); dp.addLabely(lbl_xLabelSix.Text, tempOne.TwentyTwoToTwentyEightDays.ToString()); dp.addLabely(lbl_xLabelSeven.Text, tempOne.TwentyNinePlusDays.ToString()); // Add the values to the time spans Average = string.Format("{0:n}", tempOne.Average); TimeBucketOne = string.Format("{0:n0}", tempOne.LessThanEqualToZeroDays); TimeBucketTwo = string.Format("{0:n0}", tempOne.OneToThreeDays); TimeBucketThree = string.Format("{0:n0}", tempOne.FourToSevenDays); TimeBucketFour = string.Format("{0:n0}", tempOne.EightToFourteenDays); TimeBucketFive = string.Format("{0:n0}", tempOne.FifteenToTwentyOneDays); TimeBucketSix = string.Format("{0:n0}", tempOne.TwentyTwoToTwentyEightDays); TimeBucketSeven = string.Format("{0:n0}", tempOne.TwentyNinePlusDays); TotalOrders = string.Format("{0:n0}", tempOne.TotalRecords); // Render the column chart canvas.addData(dp); dataviz.Render(canvas); }