using Imsl.Chart2D; using System.Drawing; public class SampleBarGroup : FrameChart { public SampleBarGroup() { Chart chart = this.Chart; AxisXY axis = new AxisXY(chart); double[][] y = new double[2][] { new double[] {4, 2, 3, 9}, new double[] {6, 7, 5, 2}}; Bar bar = new Bar(axis, y); bar.BarType = Bar.BAR_TYPE_VERTICAL; bar.SetLabels(new string[] {"A","B","C","D"}); bar.GetBarSet(0).FillColor = Color.Red; bar.GetBarSet(1).FillColor = Color.Blue; } public static void Main(string[] argv) { System.Windows.Forms.Application.Run(new SampleBarGroup()); } }