/// <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) { PieChartData data = null; PieChartStyle style = null; if (!DA.GetData <PieChartData>(0, ref data)) { return; } if (!DA.GetData <PieChartStyle>(1, ref style)) { return; } D3jsLib.PieChart.PieChart chart = new D3jsLib.PieChart.PieChart(data, style); DA.SetData(0, chart); }
/// <summary> /// Pie chart /// </summary> /// <param name="Data">Pie Chart data object.</param> /// <param name="Style">Pie Chart Style object.</param> /// <returns name="Chart">Pie Chart object.</returns> public static D3jsLib.PieChart.PieChart Chart(PieChartData Data, PieChartStyle Style) { D3jsLib.PieChart.PieChart chart = new D3jsLib.PieChart.PieChart(Data, Style); return(chart); }