how to plot a pointgraph and a fastline series in the same g

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
cs_ech
Newbie
Newbie
Posts: 14
Joined: Mon Oct 02, 2006 12:00 am

how to plot a pointgraph and a fastline series in the same g

Post by cs_ech » Wed Nov 04, 2009 10:59 pm

how to plot a pointgraph and a fastline series in the same graph.
I would use the left and the right side of the graphs as two different y axises for both the graph types.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: how to plot a pointgraph and a fastline series in the same g

Post by Sandra » Thu Nov 05, 2009 11:41 am

Hello cs_ech,


If you want assign for each series a different axes, you only needs use property CustomHorzAxes or CustomVertAxes of series. Please, see next simple example as assign to particular series an Axes.

Code Example:

Code: Select all

 public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
        private Steema.TeeChart.Styles.FastLine fast;
        private Steema.TeeChart.Styles.Points points;
        private void InitializeChart()
        {
            fast = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
            points = new Steema.TeeChart.Styles.Points(tChart1.Chart);
            tChart1.Aspect.View3D = false;
            fast.FillSampleValues(10);
            points.FillSampleValues(10);
            fast.CustomVertAxis = tChart1.Chart.Axes.Left;
            points.CustomVertAxis = tChart1.Chart.Axes.Right;
        }
I hope will help.

Thanks,
Best Regards,
Sandra Pazos / 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