Random random = new Random();
//
Color SeriesColor;
int SeriesIndex=0;
tChart1.Series.Clear();
Steema.TeeChart.Styles.Points pieSeries;

for (int t = 0; t < 6; t++)
{
pieSeries = new Steema.TeeChart.Styles.Points();

tChart1.Series.Add(pieSeries);
tChart1.Series[t].Clear();

if (SeriesIndex==0)
{
SeriesColor=Color.Orchid;
}
else if (SeriesIndex==1)
{
SeriesColor=Color.Purple;
}
else if (SeriesIndex == 2)
{
SeriesColor=Color.Peru;
}
else if (SeriesIndex == 3)
{
SeriesColor=Color.Pink;
}
else if (SeriesIndex==4)
{
SeriesColor = Color.Tan;
}
else if(SeriesIndex==5)
{
SeriesColor = Color.Teal;
}
else if (SeriesIndex == 6)
{
SeriesColor = Color.SteelBlue;
}
else

{
SeriesColor = Color.Thistle;
}

//// pieSeries.Pointer.Brush.Color = System.Drawing.Color.Red;
// pieSeries1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty;
// pieSeries1.Pointer.HorizSize = 19;
pieSeries.Pointer.InflateMargins = false;
pieSeries.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Sphere;
// pieSeries1.Pointer.VertSize = 19;
this.tChart1.Series[0].Title = "bubble1";
pieSeries.XValues.DataMember = "X";
pieSeries.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
//// this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
//
// tChart1.Panel.Gradient
//
////this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(234)), ((System.Byte)(234)), ((System.Byte)(255)));
////this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
////this.tChart1.Panel.Brush.Gradient.Visible = true;
//
// tChart1.Panel.Gradient
//
////this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(234)), ((System.Byte)(234)), ((System.Byte)(255)));
////this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
////this.tChart1.Panel.Gradient.Visible = true;
// this.tChart1.Series.Add(this.bubbleSeries1);

// bubbleSeries1.YValues
//
pieSeries.YValues.DataMember = "Y";
//this.bubbleSeries1.GetPointerStyle += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(this.bubbleSeries1_GetPointerStyle);
//
// SeriesType_Bubble
//

for (int z = 0; z < 100; z++)
tChart1.Series[t].Add(1000.0 / (z + random.Next(25)), random.Next(1000), SeriesColor);

SeriesIndex = SeriesIndex + 1;

}

//Steema.TeeChart.Styles.Points pieSeries1;
//Steema.TeeChart.Styles.Points pieSeries2;
//Steema.TeeChart.Styles.Points pieSeries3;
//Steema.TeeChart.Styles.Points pieSeries4;
//// pieSeries1.Pointer.Pen.Color
//pieSeries1 = new Steema.TeeChart.Styles.Points();
//pieSeries2 = new Steema.TeeChart.Styles.Points();
//pieSeries3 = new Steema.TeeChart.Styles.Points();
//pieSeries4 = new Steema.TeeChart.Styles.Points();
//tChart1.Series.Clear();

//tChart1.Series.Add(pieSeries1);
//tChart1.Series.Add(pieSeries2);
//tChart1.Series.Add(pieSeries3);
//tChart1.Series.Add(pieSeries4);
//// tChart1.Series.Add(new Steema.TeeChart.Styles.Bubble());
//// tChart1.Series[0].Color = Color.Red;
//tChart1.Series[0].Clear();
//tChart1.Series[1].Clear();
//tChart1.Series[2].Clear();
//tChart1.Series[3].Clear();
//// tChart1.Series[0].Add(123, "ABC", Color.Red);
//// tChart1.Series[0].Add( 456, "DEF", Color.Blue );
//// tChart1.Series[0].Add( 321, "GHI", Color.Green );
////// tChart1.Series[0].Marks.Style = smsValue;
//// this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
//// this.tChart1.Location = new System.Drawing.Point(296, 112);
//// this.tChart1.Name = "tChart1";
//// this.tChart1.Size = new System.Drawing.Size(200, 277);
////// this.tChart1.TabIndex = 3;
//pieSeries1.Pointer.Brush.Color = System.Drawing.Color.Red;
//// pieSeries1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty;
//// pieSeries1.Pointer.HorizSize = 19;
//pieSeries1.Pointer.InflateMargins = false;
//pieSeries1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Sphere;
//// pieSeries1.Pointer.VertSize = 19;
//this.tChart1.Series[0].Title = "bubble1";
//pieSeries1.XValues.DataMember = "X";
//pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending;
//this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
////
//// tChart1.Panel.Gradient
////
//this.tChart1.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(234)), ((System.Byte)(234)), ((System.Byte)(255)));
//this.tChart1.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
//this.tChart1.Panel.Brush.Gradient.Visible = true;
////
//// tChart1.Panel.Gradient
////
//this.tChart1.Panel.Gradient.EndColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(234)), ((System.Byte)(234)), ((System.Byte)(255)));
//this.tChart1.Panel.Gradient.StartColor = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255)));
//this.tChart1.Panel.Gradient.Visible = true;
//// this.tChart1.Series.Add(this.bubbleSeries1);

//// bubbleSeries1.YValues
////
//pieSeries1.YValues.DataMember = "Y";
////this.bubbleSeries1.GetPointerStyle += new Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventHandler(this.bubbleSeries1_GetPointerStyle);
////
//// SeriesType_Bubble
////

//// tChart1.Series[0].Add(11, 11);
//// tChart1.Series[0].Add(22, 2);
//// tChart1.Series[0].Add(22, 33);
//// tChart1.Series[0].Add(22, 33);
//for (int t = 0; t < 100; t++)
// tChart1.Series[0].Add(1000.0 / (30 + random.Next(25)), random.Next(1000), Color.Orange);
//for (int t = 0; t < 100; t++)
// tChart1.Series[1].Add(1000.0 / (20 + random.Next(25)), random.Next(1000), Color.OliveDrab);

//for (int t = 0; t < 99; t++)
// tChart1.Series[2].Add(1000.0 / (10 + random.Next(25)), random.Next(1000), Color.Red);

//for (int t = 0; t < 1000; t++)
// tChart1.Series[3].Add(1000.0 / (40 + random.Next(25)), random.Next(1000), Color.Orchid);

//// tChart1.Series[1].Clear();
//// tChart1.Series[1].Add(1, "A", Color.Red);
//// tChart1.Series[1].Add(4, "D", Color.Blue);
//// tChart1.Series[1].Add(31, "G", Color.Green);
////// tChart1.Series[1].Marks.Style =

//// tChart1.Series.Count() = 7;
////this.tChart1.Aspect.Chart3DPercent = 50;
////this.tChart1.Aspect.Orthogonal = false;
////this.tChart1.Aspect.Perspective = 78;
////this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
////this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
////this.tChart1.Aspect.Zoom = 75;

tchart example的更多相关文章

  1. 利用TCHART做分离饼形图

    https://www.cnblogs.com/gaodu2003/archive/2009/06/18/1505720.html unit Unit1; interface ……type  TFor ...

  2. 图表控件Tchart的使用总结

    用了一段时间的Tchart,做下记录总结,以便日后查用,有新的记录会及时添加更新 鼠标右键选择Edit可以对图表进行编辑 添加所需图表: Chart --> Series--> Add 1 ...

  3. tchart...

    using System;using System.Collections;using System.ComponentModel;using System.Drawing; using System ...

  4. TCHART FROM DATATABLE

    using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System. ...

  5. TCHART类型

    private Steema.TeeChart.Styles.Pie pieSeries1; private Steema.TeeChart.Styles.Pie pieSeries2; privat ...

  6. delphi teechrt中TChart 一些属性设置

    把图片设置成黑白 2.设置颜色

  7. Delphi编程建议遵守的规范2---命名规范

    1.1.形参命名建议 所有形参的名称都应当表达出它的用途.如果合适的话,形参的名称最好以字母a 为前缀,例如: procedure SomeProc(aUserName:string; aUserAg ...

  8. 主窗体里面打开子窗体&&打印饼图《Delphi 6数据库开发典型实例》--图表的绘制

    \Delphi 6数据库开发典型实例\图表的绘制 1.在主窗体里面打开子窗体:ShowForm(Tfrm_Print); procedure Tfrm_Main.ShowForm(AFormClass ...

  9. C#源码500份

    C Sharp  短信发送平台源代码.rar http://1000eb.com/5c6vASP.NET+AJAX基础示例 视频教程 http://1000eb.com/89jcC# Winform ...

随机推荐

  1. 模拟实现ATM+购物商城程序

    流程图: 需求: ATM:模拟实现一个ATM + 购物商城程序额度 15000或自定义实现购物商城,买东西加入 购物车,调用信用卡接口结账可以提现,手续费5%支持多账户登录支持账户间转账记录每月日常消 ...

  2. topcoder srm 415 div1

    problem1 link 每次贪心地从crans由大到小地找到一个能搬得动地尽量大地box即可. problem2 link 首先,$hava$可以全部换成钱,然后就是找到一个最小的钱减去自己已有的 ...

  3. 高通平台framework,hal,kernel打开log【转】

    本文转载自:https://blog.csdn.net/u010164190/article/details/78625636 .Add framework log #define LOG_NDEBU ...

  4. 源码编译安装libtool工具

    1. 获取源码 wget http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz tar xvf libtool-2.4.6.tar.gz -C ~ ...

  5. 编译openwrt时总是报错“staging_dir/target-aarch64_generic_glibc/stam$/.tools_compile_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynny' failed”

    1. 详细错误如下: tools/Makefile:146: recipe for target '/home/jello/openwrt/staging_dir/target-aarch64_gen ...

  6. 在fedora23中安装virtualbox, 然后实现虚拟机irtualbox 或者 vmware 下的xp操作系统

    参考: http://blog.csdn.net/statdm/article/details/7756788 参考: http://www.cnblogs.com/fengbohello/p/488 ...

  7. 古堡算式|2012年蓝桥杯B组题解析第二题-fishers

    (4')古堡算式 福尔摩斯到某古堡探险,看到门上写着一个奇怪的算式: ABCDE * ? = EDCBA 他对华生说:"ABCDE应该代表不同的数字,问号也代表某个数字!" 华生: ...

  8. 【学习】Hall’s Marriage Theorem

    其实是在做题时遇到这个定理的. 这个定理的图论意义是: 对于一个二分图\(G=\{X+Y,E\}\),它满足: \(\forall W \subseteq X, \, |W| \leq |N_G(W) ...

  9. linux网络流量实时监控工具之nload

    Install nload on a CentOS/RHEL/Red Hat/Fedora Linux First, turn on EPEL repo on a CentOS or RHEL bas ...

  10. P4145 上帝造题的七分钟2 / 花神游历各国

    思路 每个数不会被开方超过log次,对每个数暴力开方即可 代码 #include <algorithm> #include <cstring> #include <cst ...