Changeset 6171 for branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views
- Timestamp:
- 05/09/11 22:42:37 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Chart/BubbleChart.ascx
r6165 r6171 21 21 22 22 23 <asp:Chart ID="bubbleChart" runat="server" Visible="true" /> 24 25 26 <% 27 if (((ChartModel)Model).Series != null) { 28 //bubbleChart = new Chart(); 29 bubbleChart.Width = 150; 30 bubbleChart.Height = 300; 31 bubbleChart.Attributes.Add("align", "left"); 32 bubbleChart.Titles.Add("bubbe chart"); 33 bubbleChart.ChartAreas.Add(new ChartArea()); 34 Response.Write(((ChartModel)Model).Series.Points.Count); 35 bubbleChart.Series.Add(((ChartModel)Model).Series); 36 bubbleChart.Legends.Add(new Legend("DBAs")); 37 bubbleChart.Legends[0].TableStyle = LegendTableStyle.Auto; 38 bubbleChart.Legends[0].Docking = Docking.Bottom; 39 bubbleChart.DataBind(); 40 } 41 42 43 44 //Chart chart = new Chart(); 45 //chart.BackColor = System.Drawing.Color.Transparent; 46 //chart.Width = Unit.Pixel(250); 47 //chart.Height = Unit.Pixel(100); 48 49 //Series series1 = new Series("Series1"); 50 //series1.ChartArea = "ca1"; 51 //series1.ChartType = SeriesChartType.Pie; 52 //series1.Font = new System.Drawing.Font("Verdana", 8.25f, System.Drawing.FontStyle.Regular); 53 //series1.Points.Add(new DataPoint { 54 // AxisLabel = "Value1", YValues = new double[] { 1, 2, 3.1 } 55 //}); 56 //series1.Points.Add(new DataPoint { 57 // AxisLabel = "Value2", YValues = new double[] { 1, 2, 3.1 } 58 //}); 59 //chart.Series.Add(series1); 60 61 //ChartArea ca1 = new ChartArea("ca1"); 62 //ca1.BackColor = System.Drawing.Color.Transparent; 63 //chart.ChartAreas.Add(ca1); 64 65 //using (var ms = new System.IO.MemoryStream()) { 66 // chart.SaveImage(ms, ChartImageFormat.Png); 67 // ms.Seek(0, System.IO.SeekOrigin.Begin); 68 69 // Response.Write(new FileStreamResult(ms, "image/png")); 70 //} 71 72 73 %> 74 75 23 <img src="/Chart/CreateBubbleChart?<%= Model %>" alt="" />
Note: See TracChangeset
for help on using the changeset viewer.