Using Date values for "XAxisPlotBands FROM" and "TO"

Sep 2, 2014 at 8:51 AM
Hi, I'm trying to add XAxisPlotBands to a time series plot. In the Jquery version, it is possible to set the FROM and TO values of the Band as Date Type.
For example:
plotBands: [{
         from: Date.UTC(2009, 9, 5),
         to: Date.UTC(2009, 10, 5),
         color: 'rgba(68, 170, 213, .1)'
      }]
Is there a way to achieve the same result with the asp .net library?
Thanks!
Coordinator
Oct 24, 2014 at 1:42 PM
Hi italiana,

You can have this result with this code:
          From = Tools.GetTotalMilliseconds(new DateTime(2009, 9, 5)),
          To = Tools.GetTotalMilliseconds(new DateTime(2009, 10, 5)),
          Color = Color.FromArgb(26, 68, 170, 213),
          
Is this helps you?

Regards,
Vangi