private void AddRandomRangeBtn_Click(object sender, RoutedEventArgs e) { double min = rnd.NextDouble(); double max = min + rnd.NextDouble(); VerticalRange range = new VerticalRange { Value1 = min, Value2 = max, Fill = Brushes.Green }; plotter.Children.Add(range); }
public void TestAddingToPlotter() { HorizontalLine line = new HorizontalLine { Value = 0.2 }; ChartPlotter plotter = new ChartPlotter(); plotter.Children.Add(line); VerticalLine line2 = new VerticalLine { Value = 0.1 }; plotter.Children.Add(line2); VerticalRange range = new VerticalRange { Value1 = 0.1, Value2 = 0.3 }; plotter.Children.Add(range); RectangleHighlight rect = new RectangleHighlight { Bounds = new Rect(0, 0, 1, 1) }; plotter.Children.Add(rect); }