Пример #1
0
 /// <summary>
 /// Constructor for charts.
 /// </summary>
 public Chart()
 {
     m_chartHeadline = new ChartHeadline("");
     CreateDefaultBarColors();
 }
Пример #2
0
 /// <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
        /// <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();
        }