<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Import Namespace="HLWebOKBQueryPlugin.Models" %> <%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %> <% using (Html.BeginForm()) %> <% { %> <%: Html.Label("x axis")%> <%: Html.DropDownList("valuesAxisXCombobox", new SelectList(((ChartModel)Model).valuesAxisX))%> <%: Html.Label("y axis")%> <%: Html.DropDownList("valuesAxisYCombobox", new SelectList(((ChartModel)Model).valuesAxisY))%> <%: Html.Label("bubble size")%> <%: Html.DropDownList("bubbleSizeCombobox", new SelectList(((ChartModel)Model).bubbleSize))%> <%: Html.ActionLink("update chart","UpdateBubbleChart") %> <% } %> <% //if (((ChartModel)Model).Series != null) //{ // bubbleChart = new Chart(); // bubbleChart.Width = 150; // bubbleChart.Height = 300; // bubbleChart.Attributes.Add("align", "left"); // bubbleChart.Titles.Add("bubbe chart"); // bubbleChart.ChartAreas.Add(new ChartArea()); // bubbleChart.Series.Add(((ChartModel)Model).Series); // bubbleChart.Legends.Add(new Legend("DBAs")); // bubbleChart.Legends[0].TableStyle = LegendTableStyle.Auto; // bubbleChart.Legends[0].Docking = Docking.Bottom; //} %>