コード例 #1
0
        public void Add()
        {
            var chart = new Chart();

            var lineSeries = chart.NewLineSeries();

            lineSeries.DataSource = new ArrayList
                                        {
                                            new {X = 1, Y = 1},
                                            new {X = 2, Y = 3},
                                            new {X = 3, Y = 2},
                                            new {X = 4, Y = 4}
                                        };
            lineSeries.XValuesDataMember = "X";
            lineSeries.YValuesDataMember = "Y";

            chart.Series.Add(lineSeries);
            chartView = new ChartView { Chart = chart };
            chartView.NewSelectPointTool();
            //chartView.NewAddPointTool();
            WindowsFormsTestHelper.ShowModal(chartView);
        }      
コード例 #2
0
        public void Add()
        {
            var chart = new Chart();

            var lineSeries = chart.NewLineSeries();

            lineSeries.DataSource = new ArrayList
            {
                new { X = 1, Y = 1 },
                new { X = 2, Y = 3 },
                new { X = 3, Y = 2 },
                new { X = 4, Y = 4 }
            };
            lineSeries.XValuesDataMember = "X";
            lineSeries.YValuesDataMember = "Y";

            chart.Series.Add(lineSeries);
            chartView = new ChartView {
                Chart = chart
            };
            chartView.NewSelectPointTool();
            //chartView.NewAddPointTool();
            WindowsFormsTestHelper.ShowModal(chartView);
        }