Exemplo n.º 1
0
        protected MultipleCategorySeries BuildMultipleCategoryDataset(String title, IList <String[]> titles, IList <double[]> values)
        {
            MultipleCategorySeries series = new MultipleCategorySeries(title);

            for (int i = 0; i < values.Count; i++)
            {
                series.Add(2007 + i++ + "", titles[i], values[i]);
            }
            return(series);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Builds a multiple category series using the provided values.
        /// </summary>
        /// <param name="titles"> the series titles </param>
        /// <param name="values"> the values </param>
        /// <returns> the category series </returns>
        protected internal virtual MultipleCategorySeries BuildMultipleCategoryDataset(string title, IList <string[]> titles, IList <double[]> values)
        {
            MultipleCategorySeries series = new MultipleCategorySeries(title);
            int k = 0;

            foreach (double[] value in values)
            {
                series.Add(2007 + k + "", titles[k], value);
                k++;
            }
            return(series);
        }