2010年3月3日

说明:

  将鼠标移动到POINT上时,显示该点的值。

  其实就是在一条FASTLINE上再画一组点,二者重叠。

 

  private Steema.TeeChart.Styles.FastLine area1, area2;
        private Steema.TeeChart.Styles.Points points1, points2;
        private Steema.TeeChart.Tools.MarksTip tooltip1, tooltip2;


        private void Form1_Load(object sender, EventArgs e)
        {
            area1 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            points1 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
            area2 = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            points2 = new Steema.TeeChart.Styles.Points(tChart1.Chart);
            tooltip1 = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
            tooltip2 = new Steema.TeeChart.Tools.MarksTip(tChart1.Chart);
            //--------------------------------------------------------//
            tChart1.Aspect.View3D = false;
            area1.Add(1, 10);
            area1.Add(2, 15);
            area1.Add(3, 20);
            area1.Add(4, 25);
            area1.Add(5, 30);
            area2.FillSampleValues();
            points1.DataSource = area1;
            points2.DataSource = area2;
            points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Diamond;
            points2.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Diamond;
            tooltip1.Series = points1;
            points1.Color = area1.Color;
            points1.Pointer.Pen.Color = area1.LinePen.Color;
            tooltip2.Series = points2;
            //---------------------------------------------------------------//
            points2.Color = area2.Color;
            points2.Pointer.Pen.Color = area2.LinePen.Color;
            tooltip1.MouseDelay = 50;
            tooltip1.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;
            tooltip1.Style = Steema.TeeChart.Styles.MarksStyles.XY;
            tooltip2.MouseAction = Steema.TeeChart.Tools.MarksTipMouseAction.Move;
            tooltip2.Style = Steema.TeeChart.Styles.MarksStyles.Value;
            //-------------Style Legend-----------------------------------------//
            points1.ShowInLegend = false;
            points2.ShowInLegend = false;
            tChart1.Legend.LegendStyle = Steema.TeeChart.LegendStyles.Values;
            //-------------------------------------------------------------------//

        }

 

posted @ 2010-03-03 16:23 天高菜鸟飞 阅读(433) 评论(0) 编辑

2009年8月5日

using Steema.TeeChart.Tools;

Code
posted @ 2009-08-05 15:55 天高菜鸟飞 阅读(312) 评论(0) 编辑

2008年10月22日

今天工作需要用ASP.NET制作饼图,研究了半天终于搞定,特此记录。

首先创建一个返回以dataSet、datatable,或强类型的集合作为数据源的静态方法,必须要创建静态的,否则会导致空指针。

添加ReportViewer控件后,选择数据源,会创建一个objdatasource,选择对象-》有静态方法的类-》选择数据源提供方法。

创建一个报表-》在网站数据源中选择数据提供的方法-》将要统计的字段拉到数据字段中-》选择饼图的数据源-》跟OBJECTDATASOURCE一样选择数据提供方法。这个方法的好处是比较灵活,通过修改方法的内容就可以。

OK

posted @ 2008-10-22 15:21 天高菜鸟飞 阅读(313) 评论(1) 编辑

2008年10月9日

今天研究了一下FreeTextBox,项目里主要是需要用到他的插入图片功能,收集了网上众多的资料,也没能解决,在推断下找到原因,解决了问题,特此记录。

     1.安装:将DLL文件添加到项目内,ftb.imagegallery.aspx+aspnet_client文件夹(aspnet_client文件夹一定要添加进来,网上貌似没有说过的) 。

     2:配置:

               ImageGalleryPath:图片的储存路径。

               ImageGalleryurl:ftb.imagegallery.aspx?rif={0}&cif={0}。

               supportFloder:/aspnet_client/FreeTextBox/

               插入图片功能:InsertImageFromGallery

               ftb.imagegallery.aspx 的 SupportFolder="~/Site/News/aspnet_client/FreeTextBox/" 这里一定要定位到aspnet_client文件            夹,否则会出现弹出选择图片窗口 点击任何按钮没反应的结果

添加中文字体:

     this.txt_content.FontFacesMenuList = new string[] { "宋体", "黑体", "楷体", "仿宋", "隶书" };

posted @ 2008-10-09 21:07 天高菜鸟飞 阅读(35) 评论(0) 编辑

2008年6月19日

打开服务资源管理器,创建连接。在当前项目下添加LINQ to SQL类,将表从服务资源管理器托入DBML设计页面,这样就会生成映射代码。
实例中映射的数据库名为 LinqDemoDataContext ,表名:User,字段uid ,upwd
 1LinqDemoDataContext linqDemo = new LinqDemoDataContext("server=.;database=LinqDemo;uid=sa;pwd=1234");//注册连接
 2            /* 如果不 SubmitChanges 操作将不会被执行*/
 3            
11
12             
19
20            
27
28            

posted @ 2008-06-19 22:55 天高菜鸟飞 阅读(35) 评论(0) 编辑

2008年6月12日

摘要: 配置信息1<system.web>2<!--验证方式-->3<authenticationmode="Forms">4<formsloginUrl="WebUI/Normal/Login.aspx"5protection="All"6timeout="30"7name=".ASPXAUTH"8path="/"9requireSSL="false"10sli...阅读全文
posted @ 2008-06-12 12:44 天高菜鸟飞 阅读(58) 评论(0) 编辑
 
摘要: 1publicclassMySendMails2{3/**////<summary>4///发送邮件5///</summary>6///<paramname="addressee">收信人地址</param>7///<paramname="Subject">标题</param>8///<paramname="body"&...阅读全文
posted @ 2008-06-12 11:51 天高菜鸟飞 阅读(41) 评论(0) 编辑