Skip to content

Instantly share code, notes, and snippets.

@lohithgn
Created October 27, 2016 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohithgn/4335afe6accecb76a87764d54da794af to your computer and use it in GitHub Desktop.
Save lohithgn/4335afe6accecb76a87764d54da794af to your computer and use it in GitHub Desktop.
set up Y Axis of the chart
//set up y-axis
var yAxis = plotArea.YAxis;
yAxis.Color = Color.Black;
yAxis.MajorTickSize = 1;
yAxis.MajorTickType = TickType.Outside;
yAxis.MinorTickSize = 1;
yAxis.MinorTickType = TickType.Outside;
yAxis.MaxValue = 100;
yAxis.MinValue = 0;
yAxis.Step = 25;
yAxis.LabelsAppearance.DataFormatString = "{0}";
yAxis.MajorGridLines.Width = 1;
yAxis.MinorGridLines.Width = 1;
yAxis.TitleAppearance.Text = "CPU Load";
yAxis.TitleAppearance.Position = AxisTitlePosition.Center;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment