Show Left and Right axis on Tchart as well as in Scrollpage

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Show Left and Right axis on Tchart as well as in Scrollpage

Post by amol » Fri Oct 09, 2015 7:38 am

Hi steema,
we have some issues related to Scrollpager tool of Tchart given as below,
We want to show Left and Right axis on Scrollpager as shown in Tchart.
Series1 Y axis is Left.
Series2 Y axis is Right.
We want to show both axis of Series1 and Series2 in ScrollPager also.
LeftScrollpager.png
image 1
LeftScrollpager.png (63.8 KiB) Viewed 9175 times
Thanks in advance.

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Show Left and Right axis on Tchart as well as in Scrollpage

Post by Christopher » Fri Oct 09, 2015 12:59 pm

amol wrote: We want to show both axis of Series1 and Series2 in ScrollPager also.
You could try:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      Line series1 = new Line(tChart1.Chart);
      Line series2 = new Line(tChart1.Chart);

      series1.FillSampleValues(400);
      series2.FillSampleValues(400);

      series2.VertAxis = VerticalAxis.Right;

      ScrollPager tool = new ScrollPager(tChart1.Chart);
      tool.Series = series1;

      tool.SubChartTChart[0].VertAxis = VerticalAxis.Both;
    }
Please note that the ScrollPager tool only works with one series.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Show Left and Right axis on Tchart as well as in Scrollpage

Post by amol » Sat Oct 10, 2015 8:11 am

Thanks For Reply,

But we have one more query given as below,

if Series 2 Vertaxis property is Right then the Left Axis will be not show and Width of ScrollPager will also not change.
axis1.png
Image 1
axis1.png (65.51 KiB) Viewed 9161 times
Thanks in advance.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Show Left and Right axis on Tchart as well as in Scrollpage

Post by Christopher » Tue Oct 13, 2015 2:09 pm

Hello,

In the latest version of TeeChart.dll, the following code:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      Line series1 = new Line(tChart1.Chart);
      Line series2 = new Line(tChart1.Chart);

      series1.FillSampleValues(400);
      series2.FillSampleValues(400);

      series2.VertAxis = VerticalAxis.Right;

      ScrollPager tool = new ScrollPager(tChart1.Chart);
      tool.Series = series1;

      tool.SubChartTChart[0].VertAxis = VerticalAxis.Right;
    }
gives the following chart:
export635803421111562453.png
export635803421111562453.png (44.46 KiB) Viewed 9110 times
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply