Guest User

Untitled

a guest
Jul 19th, 2016
37
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public MainWindow()
  2.     {
  3.         Loaded += (sender, args) => SetupGraph();
  4.         InitializeComponent();
  5.     }
  6.  
  7.     private void SetupGraph()
  8.     {
  9.         Data = new ObservableDataSource<DataPoint>(new List<DataPoint> {new DataPoint(DataType.Ai0, 0) });
  10.        
  11.         Data.SetYMapping(y => y.Value);
  12.         if(dateAxis == null)
  13.             Console.WriteLine("dateAxis");
  14.        
  15.         Data.SetXMapping(x => dateAxis.ConvertToDouble(x.Date));
  16.         plotter.AddLineGraph(Data, Colors.Green, 2, "Volt");
  17.     }
RAW Paste Data