Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Draws the graph.
        /// </summary>
        /// <param name="lineGraph">The line graph.</param>
        /// <returns></returns>
        public static Image DrawGraph(LineGraph lineGraph)
        {
            LineGraphRenderer lgr = new LineGraphRenderer();

            return(lgr.DrawGraph(lineGraph));
        }