Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PlotModel model = new PlotModel();
- CategoryAxis axis = new CategoryAxis
- {
- Position = AxisPosition.Bottom,
- MajorStep = 1,
- MinorStep = 1,
- TextColor = OxyColors.RoyalBlue,
- FontSize = 10,
- MajorGridlineStyle = LineStyle.LongDash
- };
- LineSeries series = new LineSeries
- {
- MarkerType = MarkerType.Circle,
- MarkerFill = OxyColor.FromRgb(0x20, 0xf0, 0xf0),
- Color = OxyColor.FromRgb(0x20, 0x20, 0xf0)
- };
- for (int i = 0; i < data.Length; i++)
- {
- series.Points.Add(new DataPoint(i, data[i].Count));
- axis.Labels.Add(data[i].Label);
- } //efor
- model.Axes.Add(axis);
- model.Series.Add(series);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement