Page 1 of 1

Default 2d view

Posted: Thu Jun 14, 2012 9:46 pm
by 15660151
Hi ,
Anyone know, how to create a new chartbook in 2d mode. Everythime I open it it shows up in 3d mode.
FYI: I tried tchart1.aspect.view3d=false but no luck. Any ideas.

Thanks
Telvent User.

Re: Default 2d view

Posted: Fri Jun 15, 2012 1:45 pm
by narcis
Hi Telvent User.,

Code snippet below works fine for me here with latest Teechart for .NET 2012 release available. Can you please check if it works fine at your end?

Code: Select all

    public Form1()
    {
      InitializeComponent();
      InitializeChart();
    }
    
    private void InitializeChart()
    {
      Steema.TeeChart.ChartBook chartBook1 = new Steema.TeeChart.ChartBook();

      chartBook1.Dock = DockStyle.Fill;

      this.Controls.Add(chartBook1);

      Steema.TeeChart.TChart tChart1 = chartBook1.AddChart();
      tChart1.Aspect.View3D = false;
      tChart1.Series.Add(new Steema.TeeChart.Styles.Bar()).FillSampleValues();
    }
Thanks in advance.

Re: Default 2d view

Posted: Thu Jun 21, 2012 10:59 pm
by 15660151
Hi Narcis,

When I right click on chart, using context menu to add a new tab chart I am still getting new chart in 3d.

Thanks for your help.

Telvent User

Re: Default 2d view

Posted: Mon Jun 25, 2012 3:21 pm
by 10050769
Hello TeleventUser,

Can you send us a simple project that we can reproduce your problem? If you prefer you can explain us, step to step as we can reproduce your problem, so I can reproduce it here.

Thanks,