Esempio n. 1
0
        /// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            AreaChartData  data  = null;
            AreaChartStyle style = null;

            if (!DA.GetData <AreaChartData>(0, ref data))
            {
                return;
            }
            if (!DA.GetData <AreaChartStyle>(1, ref style))
            {
                return;
            }

            D3jsLib.AreaCharts.AreaChart chart = new D3jsLib.AreaCharts.AreaChart(data, style);

            DA.SetData(0, chart);
        }
Esempio n. 2
0
 /// <summary>
 ///     New Area Chart object
 /// </summary>
 /// <param name="Data">Area Chart Data.</param>
 /// <param name="Style">Area Chart Style.</param>
 /// <returns name="Chart">Area Chart.</returns>
 /// <search>area, chart</search>
 public static D3jsLib.AreaCharts.AreaChart Chart(AreaChartData Data, AreaChartStyle Style)
 {
     D3jsLib.AreaCharts.AreaChart chart = new D3jsLib.AreaCharts.AreaChart(Data, Style);
     return(chart);
 }