ProjectsForTest/WinForm.NET5TeeChart-NET-Pro-Samples/Series/Area_SalesPrice.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
#if VS2005
using System.Collections.Generic;
#endif
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Steema.TeeChart.Samples
{
    public class Area_SalesPrice : Steema.TeeChart.Samples.BaseForm
    {        
        public Area_SalesPrice()
        {
            InitializeComponent();
						InitializeChart();
				}

				private string[] console = {"Wii", "PS3", "X360", "PSP", "DS"};
				private int[] units = {217235, 162239, 101889, 161156, 609136};
				private double[] price = { 249, 299, 249, 169, 149 };
				private Steema.TeeChart.Styles.Area area1;				

				private void InitializeChart()
				{
					area1.Stairs = true;
					area1.ColorEach = true;
					area1.Marks.Visible = true;
					area1.Marks.Style = Steema.TeeChart.Styles.MarksStyles.Value;
					area1.Marks.Transparent = true;
					area1.Marks.Font.Bold = true;

					area1.GetSeriesMark += new Steema.TeeChart.Styles.Series.GetSeriesMarkEventHandler(area1_GetSeriesMark);

					FillSeries();

					tChart1.Aspect.View3D = false;
					tChart1.Legend.Visible = false;

					tChart1.Header.Visible = true;
					tChart1.Header.Text = "Gaming consoles sales 1st half 2009 in Spain";
					tChart1.Header.Font.Size = 10;

					tChart1.Axes.Left.Title.Text = "Price (€)";
					tChart1.Axes.Left.Title.Font.Bold = true;
					tChart1.Axes.Left.SetMinMax(0, 350);
					tChart1.Axes.Left.Increment = 50;

					tChart1.Axes.Bottom.Grid.Visible = false;					

					AddCustomLabels();
					//AddDataTable();

					tChart1.AfterDraw += new PaintChartEventHandler(tChart1_AfterDraw);
					tChart1.Zoomed += new EventHandler(tChart1_Zoomed);
					tChart1.UndoneZoom += new EventHandler(tChart1_UndoneZoom);

					this.Resize += new EventHandler(Area_SalesPrice_Resize);

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。