Created
October 27, 2016 07:47
-
-
Save lohithgn/4335afe6accecb76a87764d54da794af to your computer and use it in GitHub Desktop.
set up Y Axis of the chart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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