Exemplo n.º 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)
        {
            BarData  data  = null;
            BarStyle style = null;

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

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

            DA.SetData(0, chart);
        }
Exemplo n.º 2
0
 /// <summary>
 ///     New 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</search>
 public static D3jsLib.BarChart.BarChart Chart(BarData Data, BarStyle Style)
 {
     D3jsLib.BarChart.BarChart chart = new D3jsLib.BarChart.BarChart(Data, Style);
     return(chart);
 }