Page 1 of 1

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

Posted: Fri Oct 09, 2015 7:38 am
by 9526439
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 9174 times
Thanks in advance.

Thanks

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

Posted: Fri Oct 09, 2015 12:59 pm
by Christopher
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.

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

Posted: Sat Oct 10, 2015 8:11 am
by 9526439
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 9160 times
Thanks in advance.

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

Posted: Tue Oct 13, 2015 2:09 pm
by Christopher
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 9109 times