private double InitializeGraph(List <float> valueList, int graphNumber) { GraphPanel graph = graphList[graphNumber]; graph.AddSeriesToGraph(valueList); graph.Size = new Size(300, 400); graph.Location = new Point((administratorPanel.Right / 4 - graph.Width / 2) * graphNumber, this.Bounds.Top + 180); administratorPanel.Controls.Add(graph); return(valueList.Max() * 1.05); }
public void drawGraph(List <float> valueList, string xAxisTitle, string yAxisTitle, string graphTitle, int xAxisInterval, int yAxisMin, int yAxisMax, SeriesChartType chartType) { graphList[graphList.Length] = new GraphPanel { XAxisTitle = xAxisTitle, YAxisTitle = yAxisTitle, GraphTitle = graphTitle, XAxisInterval = xAxisInterval, YAxisMin = yAxisMin, YAxisMax = yAxisMax, ChartType = chartType, }; GraphPanel newGraph = graphList[graphList.Length]; newGraph.UpdateChartLook(); InitializeGraph(valueList, graphList.Length); }