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 ...
随机推荐
- SQL 基础语法笔记教程整理
最近从图书馆借了本介绍 SQL 的书,打算复习一下基本语法,记录一下笔记,整理一下思路,以备日后复习之用. PS:本文适用 SQL Server2008 语法. 首先,附一个发现的 MySQL 读书笔 ...
- linux内核中的PTP clock是什么?
答: Precise Time Protocol(PTP),这是一种高精度时间同步协议,PTP是在硬件级实现的,因此需要硬件支持才能实现高精度时间同步
- 【做题】TCSRM591 Div1 500 PyramidSequences——数形结合&思维
题意:定义高度为\(x\)的金字塔数列为周期为\(2x-2\)的无限数列.它的每一个周期都是形如\(1,2,...,x-1,x,x-1,...,2\)的形式.记高度为\(x\)的金字塔数列第\(i\) ...
- Shiro源码分析
1.入口类:AbstractAuthenticator 用户输入的登录信息经过其authenticate方法: public final AuthenticationInfo authenticate ...
- c#判断DatagridView表里是否有某个字段
if (DatagridView.Columns.Contains("旧ID")) { 有 ...
- (转) RNN models for image generation
RNN models for image generation MARCH 3, 2017 Today we’re looking at the remaining papers from the ...
- 4-Four-Seeing hands
①Several cases have been reported in Russia recently of people who can read and detect colours wit ...
- skype for business 无法共享桌面、无法传输图片
以管理员身份运行如下PowerShell命令,清除Skype for Business缓存记录 #以管理员身份运行如下PowerShell命令,清除Skype for Business缓存记录 Sto ...
- Jquery相关插件
jQuery 插件autocomplete 应用 介绍 $("#AccountNames").autocomplete(Accounts, { minChars: 0, match ...
- 配置httpd支持https
1.首先为192.168.108.159创建私有CA #cd /etc/pki/CA # (umask 077;openssl genrsa -out private/cakey.pem 2048) ...