Flexible display Mask

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply

Flexible display pointValues

I want when I moveing My mouse on Teechar(3D),This can show The recent Point Value.
0
No votes
I donot want show all points like the picture.
0
No votes
 
Total votes: 0

Chinfot
Newbie
Newbie
Posts: 9
Joined: Wed Sep 02, 2015 12:00 am

Flexible display Mask

Post by Chinfot » Thu Oct 22, 2015 10:46 am

Code: Select all

     /// <summary>
    /// XYZ轴类
    /// </summary>
        public class NumberAxis
        {
            public DateTime X
            {
                get;
                set;
            }
            public int Y { get; set; }
            public int Z { get; set; }
        }

       private void Form1_Load(object sender, EventArgs e)
        {
            points3D1 = new Points3D(tChart1.Chart);
            this.tChart1.Header.Text = "端口XXXX";
            this.tChart1.Axes.Left.Title.Caption = "YYYY";
            this.tChart1.Axes.Bottom.Title.Caption = "XXXX";
            this.tChart1.Axes.Depth.Title.Caption = "ZZZZ";
            this.tChart1.Axes.Depth.Visible = true;

            List<NumberAxis> stemp = new List<NumberAxis>();
            for (int t = 0; t < 20; t++)
            {
                DateTime dt = DateTime.Parse("2015-02-14 12:02:06");
                NumberAxis ss = new NumberAxis() { X = dt.AddDays(t), Y = t, Z = t };
                stemp.Add(ss);
            }
            tChart1.Axes.Bottom.Labels.Style = AxisLabelStyle.PointValue;
            tChart1.Axes.Bottom.Labels.DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
            tChart1.Axes.Bottom.Labels.Angle = 90;
            tChart1.Series[0].Marks.Visible = true;
            tChart1.Series[0].Marks.Style = MarksStyles.XY;
            this.points3D1.Marks.MultiLine = true;

            this.tChart1.Series[0].GetSeriesMark += new Series.GetSeriesMarkEventHandler(Form1_GetSeriesMark);
            points3D1.DataSource = stemp;
            points3D1.XValues.DataMember = "X";
            points3D1.YValues.DataMember = "Y";
            points3D1.ZValues.DataMember = "Z";
        }

        void Form1_GetSeriesMark(Series series, GetSeriesMarkEventArgs e)
        {
            e.MarkText +=Environment.NewLine+ series.ValuesLists[2][e.ValueIndex].ToString(series.ValueFormat);
        }

Attachments
QQ截图20151022184220.jpg
QQ截图20151022184220.jpg (317.87 KiB) Viewed 6241 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Flexible display Mask

Post by Narcís » Fri Oct 23, 2015 8:13 am

Hi Chinfot,

In this case I recommend you to use MarksTip tool. You'll find an example at All Features\Welcome !\Tools\Mark tips in the features demo available at TeeChart's program group. You'll find more information about TeeChart tools usage in tutorial 18 at the TeeChart .NET Tutorials section at the TeeChart Docs page.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply