- Timestamp:
- 05/07/11 18:44:15 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Views/Chart/BubbleChart.ascx
r6118 r6165 4 4 5 5 6 <% using (Html.BeginForm( )) %>6 <% using (Html.BeginForm("UpdateBubbleChart","Chart")) %> 7 7 <% { %> 8 8 … … 16 16 <%: Html.DropDownList("bubbleSizeCombobox", new SelectList(((ChartModel)Model).bubbleSize))%> 17 17 18 < %: Html.ActionLink("update chart","UpdateBubbleChart") %>18 <input type="submit" value="update chart" /> 19 19 20 20 <% } %> 21 21 22 22 23 <asp:Chart ID="bubbleChart" runat="server" />23 <asp:Chart ID="bubbleChart" runat="server" Visible="true" /> 24 24 25 25 26 26 <% 27 //if (((ChartModel)Model).Series != null) 28 //{ 29 // bubbleChart = new Chart(); 30 // bubbleChart.Width = 150; 31 // bubbleChart.Height = 300; 32 // bubbleChart.Attributes.Add("align", "left"); 33 // bubbleChart.Titles.Add("bubbe chart"); 34 // bubbleChart.ChartAreas.Add(new ChartArea()); 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 } 35 41 36 // bubbleChart.Series.Add(((ChartModel)Model).Series); 37 // bubbleChart.Legends.Add(new Legend("DBAs")); 38 // bubbleChart.Legends[0].TableStyle = LegendTableStyle.Auto; 39 // bubbleChart.Legends[0].Docking = Docking.Bottom; 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 42 72 43 73 %>
Note: See TracChangeset
for help on using the changeset viewer.