X Axis PlotLines not showing

Jul 14, 2014 at 4:45 PM
Hi everyone,

does anyone have an idea why I can't see x axis plot lines?

Part of my code:
.InitChart(new Chart
         {
             DefaultSeriesType = ChartTypes.Spline,
         })
....
.SetXAxis(new XAxis
         {
             Type = AxisTypes.Datetime,
             DateTimeLabelFormats = new DateTimeLabel { Month = "%e. %b ", Year = "%e. %b %y" },
             PlotLines = new[] {
                                 new XAxisPlotLines
                                 {
                                     Color = ColorTranslator.FromHtml("#808080"),
                                     DashStyle = DashStyles.LongDashDot,
                                     Width = 2,
                                     Value =  12
                                 },
                                 new XAxisPlotLines
                                 {
                                     Color = ColorTranslator.FromHtml("#808080"),
                                     DashStyle = DashStyles.LongDashDot,
                                     Width = 2,
                                     Value = 1
                                 },
                                 new XAxisPlotLines
                                 {
                                     Color = ColorTranslator.FromHtml("#808080"),
                                     DashStyle = DashStyles.LongDashDot,
                                     Width = 2,
                                     Value = 6
                                 }
                            }
         })
.SetSeries(new[] { chartData.FirstSeries, chartData.SecondSeries, chartData.ThirdSeries});


public static Series FirstSeries = new Series
                                          {
                                              Name = "First Series",
                                              Data = new Data(new object[,]
                                                              {
                                                                  { new DateTime(1970, 9, 9), 0 },
                                                                  { new DateTime(1970, 9, 14), 0.15 },
                                                                  { new DateTime(1970, 10, 28), 0.35 },
                                                                  { new DateTime(1970, 11, 12), 0.46 },
                                                                  { new DateTime(1971, 1, 1), 0.59 },
                                                                  { new DateTime(1971, 1, 24), 0.58 },
                                                                  { new DateTime(1971, 2, 1), 0.62 },
                                                                  { new DateTime(1971, 2, 7), 0.65 },
                                                                  { new DateTime(1971, 2, 23), 0.77 },
                                                                  { new DateTime(1971, 3, 8), 0.77 },
                                                                  { new DateTime(1971, 3, 14), 0.79 },
                                                                  { new DateTime(1971, 3, 24), 0.86 },
                                                                  { new DateTime(1971, 4, 4), 0.8 },
                                                                  { new DateTime(1971, 4, 18), 0.94 },

                                                              })