示例#1
0
        private void PopularLanguages_Load(object sender, EventArgs e)
        {
            tChart1.Panel.Gradient.Visible = false;

            Steema.TeeChart.Styles.Bubble bCloud = new Steema.TeeChart.Styles.Bubble(tChart1.Chart);

            //bCloud.UseColorRange = false;
            //bCloud.UsePalette = true;

            //bCloud.Rotation = 5;
            //bCloud.Separation = 51;
            //bCloud.SizeRatio = 1.44;

            tChart1.Axes.Bottom.MinimumOffset = 150;
            tChart1.Axes.Bottom.MaximumOffset = 50;

            bCloud.Add(1, 1175, 30.3, "Python");
            bCloud.Add(2, 1082.5, 22.2, "Java");
            bCloud.Add(3, 1077.5, 13, "C++");
            bCloud.Add(4, 1055, 10.6, "Ruby");
            bCloud.Add(5, 1042.5, 5.2, "JavaScript");
            bCloud.Add(6, 1035, 5, "C#");
            bCloud.Add(7, 1035, 4.1, "C");
            bCloud.Add(8, 1017.5, 3.3, "PHP");
            bCloud.Add(9, 1005, 1.6, "Perl");
            bCloud.Add(10, 975, 1.5, "Go");


            bCloud.Marks.Font.Color = Color.Black;
        }
        public SeriesType_Bubble()
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            bubbleSeries1.Clear();
            for (int t = 0; t < 100; t++)
            {
                bubbleSeries1.Add(t, random.Next(1000), 1000.0 / (20 + random.Next(25)));
            }
        }