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