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

            var lineChart = new LineChart { Series = null };
            lineChart.UnsafeUpdate();

            var pieChart = new PieChart { Series = null };
            pieChart.UnsafeUpdate();

            var stackedChart = new StackedBarChart { Series = null };
            stackedChart.UnsafeUpdate();
        }
Example #2
0
        public void EmptyValues()
        {
            var vals = new ChartValues<double>();

            var barChart = new BarChart
            {
                Series = new SeriesCollection
                {
                    new BarSeries {Values = vals},
                    new LineSeries {Values = vals}
                }
            };
            barChart.UnsafeUpdate();

            var lineChart = new LineChart
            {
                Series = new SeriesCollection
                {
                    new LineSeries {Values = vals}
                }
            };
            lineChart.UnsafeUpdate();

            var pieChart = new PieChart
            {
                Series = new SeriesCollection
                {
                    new PieSeries {Values = vals}
                }
            };
            pieChart.UnsafeUpdate();

            var stackedChart = new StackedBarChart
            {
                Series = new SeriesCollection
                {
                    new StackedBarSeries {Values = vals}
                }
            };
            stackedChart.UnsafeUpdate();
        }
Example #3
0
        public void NullValues()
        {
            var barChart = new BarChart
            {
                Series = new SeriesCollection
                {
                    new BarSeries {Values = null},
                    new LineSeries {Values = null}
                }
            };
            barChart.UnsafeUpdate();

            var lineChart = new LineChart
            {
                Series = new SeriesCollection
                {
                    new LineSeries {Values = null}
                }
            };
            lineChart.UnsafeUpdate();

            var pieChart = new PieChart
            {
                Series = new SeriesCollection
                {
                    new PieSeries {Values = null}
                }
            };
            pieChart.UnsafeUpdate();

            var stackedChart = new StackedBarChart
            {
                Series = new SeriesCollection
                {
                    new StackedBarSeries {Values = null}
                }
            };
            stackedChart.UnsafeUpdate();
        }
Example #4
0
        public void SharedSeries()
        {
            var sharedSeries = new LineSeries {Values = new ChartValues<double> {1, 2, 3}};

            var lineChart1 = new BarChart
            {
                Series = new SeriesCollection
                {
                    sharedSeries
                }
            };
            lineChart1.UnsafeUpdate();

            var lineChart2 = new LineChart
            {
                Series = new SeriesCollection
                {
                    sharedSeries
                }
            };

            lineChart2.UnsafeUpdate();
        }