private static void OnVisibleInLegendChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { ChartPlotter plotter = Plotter.GetPlotter(d) as ChartPlotter; if (plotter != null) { plotter.Legend.PopulateLegend(); } }
public GenericChartPlotter(ChartPlotter plotter, AxisBase <THorizontal> horizontalAxis, AxisBase <TVertical> verticalAxis) { if (horizontalAxis == null) { throw new ArgumentNullException(Strings.Exceptions.PlotterMainHorizontalAxisShouldNotBeNull); } if (verticalAxis == null) { throw new ArgumentNullException(Strings.Exceptions.PlotterMainVerticalAxisShouldNotBeNull); } this.horizontalAxis = horizontalAxis; this.verticalAxis = verticalAxis; this.plotter = plotter; }
public GenericChartPlotter(ChartPlotter plotter) : this(plotter, plotter.MainHorizontalAxis as AxisBase <THorizontal>, plotter.MainVerticalAxis as AxisBase <TVertical>) { }