Preview

image

  • Custom X/Y Axis values
  • Multiple graphs on a single chart

Usage

// create Chart control
Chart myChart = new Chart(new Rectangle(50, 50, 300, 200));

// set some Chart properties
myChart.GridSpacing = 50;
myChart.ChartMargin = 40;
myChart.ShowXAxisRange = false;
myChart.ShowYAxisRange = false;
myChart.ShowGridValues = true;
myChart.Title = "Chart Title";

// add a chart
myChart.AddChart(new List<float> { 1, 2, 3, 4 }, "Name", Color.CornflowerBlue);

// add control to a Window
myWindow.Controls.Add(myChart);

Last edited Apr 4, 2012 at 1:13 AM by qisur, version 5

Comments

No comments yet.