zoukankan      html  css  js  c++  java
  • Chart No code

     

    <%
          ZqzWebChart.Charting.Chart Chart1 = new ZqzWebChart.Charting.Chart();
          Chart1.Width = 412;
          Chart1.Height = 296;
          Chart1.RenderType = RenderType.ImageTag;
          Chart1.ImageLocation = "..\\TempImages\\ChartPic_#SEQ(200,30)";
          
          Chart1.Palette = ChartColorPalette.BrightPastel;
                            Title t = new Title("No Code Behind Page", Docking.Top, new System.Drawing.Font("Trebuchet MS", 14, System.Drawing.FontStyle.Bold), System.Drawing.Color.FromArgb(26, 59, 105));
                            Chart1.Titles.Add(t);
                            Chart1.ChartAreas.Add("Series 1");

          // create a couple of series
          Chart1.Series.Add("Series 1");
          Chart1.Series.Add("Series 2");
          
          
          // add points to series 1
          Chart1.Series["Series 1"].Points.AddY(5);
          Chart1.Series["Series 1"].Points.AddY(8);
          Chart1.Series["Series 1"].Points.AddY(12);
          Chart1.Series["Series 1"].Points.AddY(6);
          Chart1.Series["Series 1"].Points.AddY(9);
          Chart1.Series["Series 1"].Points.AddY(4);
          
          // add points to series 2
          Chart1.Series["Series 2"].Points.AddY(2);
          Chart1.Series["Series 2"].Points.AddY(6);
          Chart1.Series["Series 2"].Points.AddY(18);
          Chart1.Series["Series 2"].Points.AddY(16);
          Chart1.Series["Series 2"].Points.AddY(21);
          Chart1.Series["Series 2"].Points.AddY(14);
           
          Chart1.BorderSkin.SkinStyle = BorderSkinStyle.Emboss;
          Chart1.BorderColor = System.Drawing.Color.FromArgb(26, 59, 105);
                            Chart1.BorderlineDashStyle = ChartDashStyle.Solid;
          Chart1.BorderWidth = 2;
          
                            Chart1.Legends.Add("Legend1");
          
              // show legend based on check box value
                            Chart1.Legends["Legend1"].Enabled = ShowLegend.Checked;

          // Render chart control
          Chart1.Page = this;
          HtmlTextWriter writer = new HtmlTextWriter(Page.Response.Output);
          Chart1.RenderControl(writer);     
                         %>

    <p><asp:checkbox id="ShowLegend" runat="server" Text="Show Legend" AutoPostBack="True"></asp:checkbox></p>

  • 相关阅读:
    rsync命令使用方法
    Mysql(MyISAM和InnoDB)及Btree和索引优化
    初级java程序员-各公司技能要求
    Redis学习笔记二 (BitMap算法分析与BitCount语法)
    HTTP、TCP、IP协议常见面试题
    Redis学习笔记一(Redis的详细安装及Linux环境变量配置和启动)
    java-部分精选面试题
    Python基础-TypeError:takes 2 positional arguments but 3 were given
    Python3.7中urllib.urlopen 报错问题
    几道关于springboot、springCloud的面试题。
  • 原文地址:https://www.cnblogs.com/greencolor/p/1726729.html
Copyright © 2011-2022 走看看