asp.net中VML图表控件

最近老是用到报表的东西
找到些JS的看写的还不错
就自己弄了一下,写的第一个控件望大家多多指点

引用就不用说了,下面说下例子:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="Vml.Chart" Namespace="Vml.Chart" TagPrefix="cc1" %>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head runat="server">
    <title>Untitled Page</title>
    <style>  v\:* { BEHAVIOR: URL(#default#VML) }
    o\:* { BEHAVIOR: URL(#default#VML) } </style>
</head>
<body>
    <form id="form1" runat="server">
        <cc1:Chart ID="Chart1" runat="server" Height="450" Width="800">
        </cc1:Chart>
        <cc1:Chart ID="Chart2" runat="server" Height="500" Width="800">
        </cc1:Chart>
    </form>
</body>
</html>

CS代码如下:
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Chart1.XData = "一月,二月,三月,四月,五月,六月,七月,八月,九月,十月,十一月";
        Chart1.YData = "10,10,10,10,10,100,10,10,10,100,999";
        //Chart1.Title = "这是标题";
        Chart1.Is3D = true;
        Chart2.XData = "一月,二月,三月,四月,五月,六月,七月,八月,九月,十月";
        Chart2.YData = "10,10,10,10,10,10,10,10,10,100";
        //Chart1.Title = "这是标题";
        Chart2.Is3D = true;
    }

}


把DLL也发给大家

你可能感兴趣的:(c,.net,UI,asp.net,asp)