Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StripLine stripLine2 = new StripLine();
- stripLine2.BackColor = Color.FromArgb(120, Color.Gold);
- stripLine2.IntervalOffset = -1.5;
- stripLine2.IntervalOffsetType = DateTimeIntervalType.Days;
- stripLine2.Interval = 1;
- stripLine2.IntervalType = DateTimeIntervalType.Weeks;
- stripLine2.StripWidth = 2;
- stripLine2.StripWidthType = DateTimeIntervalType.Days;
- // Add strip line to the chart
- chart1.ChartAreas[0].AxisX.StripLines.Add(stripLine2);
- // Set the axis label to show the name of the day
- // This is done in order to demonstrate that weekends are highlighted
- chart1.ChartAreas[0].AxisX.LabelStyle.Format = "ddd";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement