.net web图表类


https://files.cnblogs.com/ahuo/Chart.rar

用法:
            Response.ContentType = "image/png";
            string[] xValues, yValues;
            LineChart line = new LineChart(Color.White);
            line.VerticalLabel = "告警数量";
            line.ShowLegend = false;
            line.ShowData = true;
            line.Height = 250;
            line.Width = 250;
            GetValues(out xValues, out yValues); //填充数据
            line.CollectDataPoints(xValues, yValues);
            Bitmap StockBitMap = line.Draw();
            MemoryStream memStream = new MemoryStream();
            StockBitMap.Save(memStream, ImageFormat.Png);
            memStream.WriteTo(Response.OutputStream);
posted @ 2007-07-11 15:57  ahuo  阅读(344)  评论(0编辑  收藏  举报