コード例 #1
0
        private static void OnVisibleInLegendChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ChartPlotter plotter = Plotter.GetPlotter(d) as ChartPlotter;

            if (plotter != null)
            {
                plotter.Legend.PopulateLegend();
            }
        }
コード例 #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;
        }
コード例 #3
0
 public GenericChartPlotter(ChartPlotter plotter) : this(plotter, plotter.MainHorizontalAxis as AxisBase <THorizontal>, plotter.MainVerticalAxis as AxisBase <TVertical>)
 {
 }