Пример #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)
        {
            DonutChartData  data  = null;
            DonutChartStyle style = null;

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

            D3jsLib.DonutChart.DonutChart chart = new D3jsLib.DonutChart.DonutChart(data, style);

            DA.SetData(0, chart);
        }
Пример #2
0
 /// <summary>
 ///     Donut Chart object.
 /// </summary>
 /// <param name="Data">Donut Chart Data object.</param>
 /// <param name="Style">Donut Chart Style object.</param>
 /// <returns name="Chart">Donut Chart</returns>
 /// <search>donut chart, chart, donut</search>
 public static D3jsLib.DonutChart.DonutChart Chart(DonutChartData Data, DonutChartStyle Style)
 {
     D3jsLib.DonutChart.DonutChart chart = new D3jsLib.DonutChart.DonutChart(Data, Style);
     return(chart);
 }