tchart example
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的更多相关文章
- 利用TCHART做分离饼形图
https://www.cnblogs.com/gaodu2003/archive/2009/06/18/1505720.html unit Unit1; interface ……type TFor ...
- 图表控件Tchart的使用总结
用了一段时间的Tchart,做下记录总结,以便日后查用,有新的记录会及时添加更新 鼠标右键选择Edit可以对图表进行编辑 添加所需图表: Chart --> Series--> Add 1 ...
- tchart...
using System;using System.Collections;using System.ComponentModel;using System.Drawing; using System ...
- TCHART FROM DATATABLE
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System. ...
- TCHART类型
private Steema.TeeChart.Styles.Pie pieSeries1; private Steema.TeeChart.Styles.Pie pieSeries2; privat ...
- delphi teechrt中TChart 一些属性设置
把图片设置成黑白 2.设置颜色
- Delphi编程建议遵守的规范2---命名规范
1.1.形参命名建议 所有形参的名称都应当表达出它的用途.如果合适的话,形参的名称最好以字母a 为前缀,例如: procedure SomeProc(aUserName:string; aUserAg ...
- 主窗体里面打开子窗体&&打印饼图《Delphi 6数据库开发典型实例》--图表的绘制
\Delphi 6数据库开发典型实例\图表的绘制 1.在主窗体里面打开子窗体:ShowForm(Tfrm_Print); procedure Tfrm_Main.ShowForm(AFormClass ...
- C#源码500份
C Sharp 短信发送平台源代码.rar http://1000eb.com/5c6vASP.NET+AJAX基础示例 视频教程 http://1000eb.com/89jcC# Winform ...
随机推荐
- tar 压缩指令基本用法
压缩:tar -cjvf aaa.tar.bz2 www.test.com/ --exclude *.log(-j是用bz2压缩,-exclude是排除.log后缀的文件) c-创建 j-bzip ...
- 使用liner、feather、multiband对已经拼接的数据进行融合(下)
理解mulitband.所谓的mulitband,其实就是一种多尺度的样条融合,其实现的主要方法就是laplace金字塔. 高斯金字塔是向下采样,而laplace金字塔式向上采样(也就是恢复),采用的 ...
- 【Python31--pickle函数】
一.含义 1.pickle的实质是什么 答:利用一些算法把数据对象转换成“二进制文件”,存储在硬盘上,当然也可以放在数据库或者是另外一台计算机上 2.存放:picking,读取:unpicking 3 ...
- 【BZOJ2724】【Violet 6】蒲公英
蒲公英/分块入门九Byhzwer 辣鸡我复制粘贴题面格式极其丑陋,各位看原题面啦. [题目描述] 在乡下的小路旁种着许多蒲公英,而我们的问题正是与这些蒲公英有关. 为了简化起见,我们把所有的蒲公英看成 ...
- php的pear编程: phpDocumentor的使用?
pfc: php基础类库: pecl: php扩展公共库 pear: php extension and application repository. php的扩展和应用库 phar: ['fa:] ...
- 今天的任务--git练习
克隆远程仓库项目 从版本控制中选择git 填写地址和本地目录,test测试成功后点击clone 克隆完成回到主界面,点击open打开刚才克隆的项目 git操作 添加文件py1.html 打开命令行 新 ...
- 洛谷p1732 活蹦乱跳的香穗子 二维DP
今天不BB了,直接帖原题吧 地址>>https://www.luogu.org/problem/show?pid=1732<< 题目描述 香穗子在田野上调蘑菇!她跳啊跳,发现 ...
- [转载]linux下core文件设置与查看
转自:https://blog.csdn.net/dingqinghui/article/details/77855330?locationNum=9&fps=1 linux下core文件设置 ...
- vue.js精讲02
2017-09-17 笔记及源码地址 : https://github.com/wll8/vue_note vue 中的事件深入. 事件: @click/mouseover…事件简写: @ 如 @cl ...
- 那些年我们一起用过的 PHP 函数(一)
用这个帖子记录一下 PHP 中比较常用的函数以及使用过程中需要注意的点,此贴持续更新 1.strpos() 函数 首先,我们知道 strpos() 函数是用于查找一个字符串在另一个字符串第一次 ...