예제 #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)
        {
            StackedBarChartData  data  = null;
            StackedBarChartStyle style = null;

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

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

            DA.SetData(0, chart);
        }
예제 #2
0
 /// <summary>
 ///     New Grouped Bar Chart object.
 /// </summary>
 /// <param name="Data">Bar Chart Data.</param>
 /// <param name="Style">Bar Chart Style.</param>
 /// <returns name="Chart">Generated Bar Chart.</returns>
 /// <search>bar, chart, grouped</search>
 public static D3jsLib.StackedBarChart.StackedBarChart Chart(StackedBarChartData Data, StackedBarChartStyle Style)
 {
     D3jsLib.StackedBarChart.StackedBarChart chart = new D3jsLib.StackedBarChart.StackedBarChart(Data, Style);
     return(chart);
 }