zoukankan      html  css  js  c++  java
  • 例子

    Random random = new Random();
    //

    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;
    }

  • 相关阅读:
    idea中代码提交流程(git版)
    《如何做好软件设计》:设计原则
    用基础Array数组实现动态数组、链表、栈和队列
    使用Redis+SpringBoot实现定时任务测试
    分布式锁的三种实现方式
    RabbitMQ镜像队列集群搭建、与SpringBoot整合
    RabbitMQ简介、安装、基本特性API--Java测试
    分布式文件系统FastDFS简介、搭建、与SpringBoot整合实现图片上传
    Elasticsearch--Logstash定时同步MySQL数据到Elasticsearch
    Elasticsearch 分片集群原理、搭建、与SpringBoot整合
  • 原文地址:https://www.cnblogs.com/qiu18359243869/p/10549739.html
Copyright © 2011-2022 走看看