/// <summary> /// Draws the graph. /// </summary> /// <param name="dateLineGraph">The date line graph.</param> /// <returns></returns> public Image DrawGraph(DateLineGraph dateLineGraph) { try { if (dateLineGraph == null) { return(null); } this.dateLineGraph = dateLineGraph; CalculateValues(); SetValues(); LineGraphRenderer lgr = new LineGraphRenderer(); return(lgr.DrawGraph(this.dateLineGraph)); } catch { return(null); } }
/// <summary> /// Draws the graph. /// </summary> /// <param name="dateLineGraph">The date line graph.</param> /// <returns></returns> public static Image DrawGraph(DateLineGraph dateLineGraph) { DateLineGraphRenderer dlgr = new DateLineGraphRenderer(); return(dlgr.DrawGraph(dateLineGraph)); }