Page 1 of 1

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

Posted: Wed Nov 04, 2009 10:59 pm
by 9642625
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.

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

Posted: Thu Nov 05, 2009 11:41 am
by 10050769
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,