Esempio n. 1
0
        /// <summary>
        /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.Options"/> set.
        /// </summary>
        /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
        /// <param name="defaults">Default options to copy from.</param>
        public Options(ChartJS chart, Options defaults)
        {
            this.Chart = chart;

            if (defaults != null)
            {
                CopyFrom(defaults);
            }
        }
        /// <summary>
        /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.DataSetCollection"/> class.
        /// </summary>
        /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this collection.</param>
        /// <param name="previous">The previous data sets to reload into this new collection, or null.</param>
        internal DataSetCollection(ChartJS chart, DataSetCollection previous)
        {
            if (chart == null)
            {
                throw new ArgumentNullException("chart");
            }

            this.chart = chart;

            // preserve the previous data sets.
            if (previous != null)
            {
                foreach (var d in previous)
                {
                    DataSet dataSet = CreateDataSet(d.Label);
                    dataSet.CopyFrom(d);
                    Add(dataSet);
                }
            }
        }
Esempio n. 3
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.ScatterOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public ScatterOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.BubbleOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public BubbleOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }
Esempio n. 5
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.RadarOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public RadarOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.DoughnutOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public DoughnutOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }
Esempio n. 7
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.PolarAreaOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public PolarAreaOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }
Esempio n. 8
0
 /// <summary>
 /// Constructs a new instance of the <see cref="T:Wisej.Web.Ext.ChartJS.LineOptions"/> set.
 /// </summary>
 /// <param name="chart">The <see cref="T:Wisej.Web.Ext.ChartJS.ChartJS"/> that owns this set of options.</param>
 /// <param name="defaults">Default options to copy from.</param>
 public LineOptions(ChartJS chart, Options defaults)
     : base(chart, defaults)
 {
 }