예제 #1
0
파일: Chart.cs 프로젝트: webgrid/WebGrid
 /// <summary>
 /// Constructor for charts.
 /// </summary>
 public Chart()
 {
     m_chartHeadline = new ChartHeadline("");
     CreateDefaultBarColors();
 }
예제 #2
0
파일: Chart.cs 프로젝트: webgrid/WebGrid
 /// <summary>
 /// Chart constructor with headline and background.
 /// </summary>
 /// <param name="chartType">Index of which ChartType to render.</param>
 /// <param name="chartHeadline">Create a ChartHeadline object, null if there is no chart headline to render.</param>
 /// <param name="chartBackground">Create a ChartBackground object, null if there is no background (white).</param>
 /// <param name="width">The charts width.</param>
 /// <param name="height">The charts height.</param>
 public Chart(ChartType chartType, ChartHeadline chartHeadline, ChartBackground chartBackground, int width,
     int height)
 {
     m_chartType = chartType;
     if (chartHeadline == null)
     {
         chartHeadline = new ChartHeadline("");
     }
     m_chartHeadline = chartHeadline;
     ChartBackground = chartBackground;
     m_width = width;
     m_height = height;
     CreateDefaultBarColors();
 }
예제 #3
0
파일: Chart.cs 프로젝트: webgrid/WebGrid
        /// <summary>
        /// Creates a chart with default properties.
        /// </summary>
        /// <param name="chartType">The type of chart to create.</param>
        /// <param name="width">The charts width.</param>
        /// <param name="height">The charts height.</param>
        public Chart(ChartType chartType, int width, int height)
        {
            m_chartHeadline = new ChartHeadline("");
            m_chartType = chartType;
            m_width = width;
            m_height = height;

            CreateDefaultBarColors();
        }