Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. StripLine stripLine2 = new StripLine();
  2. stripLine2.BackColor = Color.FromArgb(120, Color.Gold);
  3. stripLine2.IntervalOffset = -1.5;
  4. stripLine2.IntervalOffsetType = DateTimeIntervalType.Days;
  5. stripLine2.Interval = 1;
  6. stripLine2.IntervalType = DateTimeIntervalType.Weeks;
  7. stripLine2.StripWidth = 2;
  8. stripLine2.StripWidthType = DateTimeIntervalType.Days;
  9.  
  10. // Add strip line to the chart
  11. chart1.ChartAreas[0].AxisX.StripLines.Add(stripLine2);
  12.  
  13. // Set the axis label to show the name of the day
  14. // This is done in order to demonstrate that weekends are highlighted
  15. chart1.ChartAreas[0].AxisX.LabelStyle.Format = "ddd";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement