/// <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)
        {
            LineChartData  data  = null;
            LineChartStyle style = null;

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

            d3LineChart chart = new d3LineChart(data, style);

            DA.SetData(0, chart);
        }
Exemple #2
0
        /// <summary>
        ///     New Line Chart object.
        /// </summary>
        /// <param name="Data">Line Chart Data.</param>
        /// <param name="Style">Line Chart Style.</param>
        /// <returns name="Chart">Line Chart.</returns>
        /// <search>line, chart</search>
        public static d3LineChart Chart(LineChartData Data, LineChartStyle Style)
        {
            d3LineChart chart = new d3LineChart(Data, Style);

            return(chart);
        }