示例#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)
        {
            ScatterPlotData  data  = null;
            ScatterPlotStyle style = null;

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

            d3ScatterPlot chart = new d3ScatterPlot(data, style);

            DA.SetData(0, chart);
        }
示例#2
0
        /// <summary>
        ///     Scatter Plot Chart.
        /// </summary>
        /// <param name="Data">Scatter Plot Data.</param>
        /// <param name="Style">Scatter Plot Style.</param>
        /// <returns name="Chart">Scatter Plot Chart.</returns>
        /// <search>scatter plot, chart</search>
        public static d3ScatterPlot Chart(ScatterPlotData Data, ScatterPlotStyle Style)
        {
            d3ScatterPlot chart = new d3ScatterPlot(Data, Style);

            return(chart);
        }