示例#1
0
        private System.Web.UI.DataVisualization.Charting.Chart GetChart2(string[] xValues, string[] yValues, string url)
        {
            var chart = new System.Web.UI.DataVisualization.Charting.Chart
            {
                Width                   = 600,
                Height                  = 300,
                BackColor               = Color.FromArgb(255, 140, 0),
                BorderlineDashStyle     = ChartDashStyle.Solid,
                BackSecondaryColor      = Color.White,
                BackGradientStyle       = GradientStyle.TopBottom,
                BorderlineWidth         = 1,
                Palette                 = ChartColorPalette.BrightPastel,
                BorderlineColor         = Color.FromArgb(0, 0, 0),
                RenderType              = RenderType.BinaryStreaming,
                BorderSkin              = { SkinStyle = BorderSkinStyle.Emboss },
                AntiAliasing            = AntiAliasingStyles.All,
                TextAntiAliasingQuality = TextAntiAliasingQuality.Normal
            };

            chart.Titles.Add(CreateTitle(url));
            //chart.Legends.Add(CreateLegend());
            chart.Series.Add(CreateSeries(xValues, yValues, url));
            chart.ChartAreas.Add(CreateChartArea(url));


            return(chart);
        }
示例#2
0
        private System.Web.UI.DataVisualization.Charting.Chart GetChart2(string[] xValues, string[] yValues, string url)
        {
            var chart = new System.Web.UI.DataVisualization.Charting.Chart
            {
                Width                   = 600,
                Height                  = 300,
                BackColor               = Color.FromArgb(255, 140, 0),
                BorderlineDashStyle     = ChartDashStyle.Solid,
                BackSecondaryColor      = Color.White,
                BackGradientStyle       = GradientStyle.TopBottom,
                BorderlineWidth         = 1,
                Palette                 = ChartColorPalette.BrightPastel,
                BorderlineColor         = Color.FromArgb(0, 0, 0),
                RenderType              = RenderType.BinaryStreaming,
                BorderSkin              = {SkinStyle = BorderSkinStyle.Emboss},
                AntiAliasing            = AntiAliasingStyles.All,
                TextAntiAliasingQuality = TextAntiAliasingQuality.Normal
            };

            chart.Titles.Add(CreateTitle(url));
            //chart.Legends.Add(CreateLegend());
            chart.Series.Add(CreateSeries(xValues, yValues, url));
            chart.ChartAreas.Add(CreateChartArea(url));

            return chart;
        }