Guest User

Untitled

a guest
Oct 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. using System.Data;
  8. using System.Data.SqlClient;
  9. using System.Web.UI.DataVisualization.Charting;
  10.  
  11. namespace Sample
  12. {
  13. public partial class _Default : System.Web.UI.Page
  14. {
  15. protected void Page_Load(object sender, EventArgs e)
  16. {
  17. double[] arr = new double[80];
  18. DataView dv = dal.GetReportList(20110609, arr);
  19. dg.Visible = true;
  20. dg.DataSource = dv;
  21. dg.DataBind();
  22.  
  23. Chart1.Series["DataSeries"].Points.DataBindY(arr);
  24. Chart1.Series["BoxPlotSeries"].ChartType = SeriesChartType.BoxPlot;
  25. Chart1.Series["BoxPlotSeries"]["BoxPlotSeries"] = "DataSeries";
  26. // Set whiskers percentile
  27. Chart1.Series["BoxPlotSeries"]["BoxPlotWhiskerPercentile"] = "10";
  28.  
  29. // Set box percentile
  30. Chart1.Series["BoxPlotSeries"]["BoxPlotPercentile"] = "25";
  31.  
  32. // Hide Average line
  33. Chart1.Series["BoxPlotSeries"]["BoxPlotShowAverage"] = "false";
  34.  
  35. // Show/Hide Median line
  36. Chart1.Series["BoxPlotSeries"]["BoxPlotShowMedian"] = "true";
  37.  
  38. // Show Unusual points
  39. Chart1.Series["BoxPlotSeries"]["BoxPlotShowUnusualValues"] = "true";
  40. //dal.GetReportList(2011, 06, 01);
  41.  
  42. //String s = Request.QueryString("name");
  43.  
  44. }
  45.  
  46.  
  47. protected void submit(object sender, EventArgs e)
  48. {
  49. int i = 3;
  50. //i = TextBox("indate");
  51. i = Convert.ToInt32(Request["indate"]);
  52. return;
  53. }
  54.  
  55.  
  56. }
  57. }
Add Comment
Please, Sign In to add comment