Beispiel #1
0
        public void NullSeries()
        {
            var barChart = new BarChart {
                Series = null
            };

            barChart.UnsafeRedraw();

            var lineChart = new LineChart {
                Series = null
            };

            lineChart.UnsafeRedraw();

            var pieChart = new PieChart {
                Series = null
            };

            pieChart.UnsafeRedraw();

            var stackedChart = new StackedBarChart {
                Series = null
            };

            stackedChart.UnsafeRedraw();
        }
Beispiel #2
0
        public void MaxEqMinValues()
        {
            var vals = new ChartValues <double> {
                1, 1
            };

            var barChart = new BarChart
            {
                Series = new SeriesCollection
                {
                    new BarSeries {
                        Values = vals
                    },
                    new LineSeries {
                        Values = vals
                    }
                }
            };

            barChart.UnsafeRedraw();

            var lineChart = new LineChart
            {
                Series = new SeriesCollection
                {
                    new LineSeries {
                        Values = vals
                    }
                }
            };

            lineChart.UnsafeRedraw();

            var pieChart = new PieChart
            {
                Series = new SeriesCollection
                {
                    new PieSeries {
                        Values = vals
                    }
                }
            };

            pieChart.UnsafeRedraw();

            var stackedChart = new StackedBarChart
            {
                Series = new SeriesCollection
                {
                    new StackedBarSeries {
                        Values = vals
                    }
                }
            };

            stackedChart.UnsafeRedraw();
        }
Beispiel #3
0
        public void NullValues()
        {
            var barChart = new BarChart
            {
                Series = new SeriesCollection
                {
                    new BarSeries {
                        Values = null
                    },
                    new LineSeries {
                        Values = null
                    }
                }
            };

            barChart.UnsafeRedraw();

            var lineChart = new LineChart
            {
                Series = new SeriesCollection
                {
                    new LineSeries {
                        Values = null
                    }
                }
            };

            lineChart.UnsafeRedraw();

            var pieChart = new PieChart
            {
                Series = new SeriesCollection
                {
                    new PieSeries {
                        Values = null
                    }
                }
            };

            pieChart.UnsafeRedraw();

            var stackedChart = new StackedBarChart
            {
                Series = new SeriesCollection
                {
                    new StackedBarSeries {
                        Values = null
                    }
                }
            };

            stackedChart.UnsafeRedraw();
        }