コード例 #1
0
        /// <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);
            }
        }
コード例 #2
0
ファイル: GraphRenderer.cs プロジェクト: dayrl/Utility
        /// <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));
        }