private static void OnVisibleInLegendChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ChartPlotter plotter = Plotter.GetPlotter(d) as ChartPlotter;

            if (plotter != null)
            {
                plotter.Legend.PopulateLegend();
            }
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public GenericChartPlotter(ChartPlotter plotter) : this(plotter, plotter.MainHorizontalAxis as AxisBase <THorizontal>, plotter.MainVerticalAxis as AxisBase <TVertical>)
 {
 }