Cannot load exported chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Cannot load exported chart

Post by acastro » Wed Mar 12, 2014 4:05 pm

Please download this:
http://193.145.251.126/pnp/files/GRSfIL ... croll2.zip

Steps to reproduce:
- Button1
- Button addcustom
- Button buttonaddserie
- Button refresdata
- Button save
- Button open

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

Re: Cannot load exported chart

Post by Christopher » Thu Mar 13, 2014 3:23 pm

wakeup wrote:Please download this:
http://193.145.251.126/pnp/files/GRSfIL ... croll2.zip
You forget to manage *both* custom axes.

Code: Select all

        private void refreshPageScroller()
        {
          for (int i = 0; i < tChart1.Series.Count; i++)
          {
            tChart1.Series[i].CustomVertAxis = null;
            tChart1.Series[i].VertAxis = Steema.TeeChart.Styles.VerticalAxis.Left;
          }

          mt.SubChartTChart.Clear();
          mt.Series = tChart1.Series[0]; //it is futile assigning more than one series here

          for (int i = 0; i < tChart1.Series.Count; i++)
          {
            tChart1.Series[i].CustomVertAxis = tChart1.Axes.Custom[i];
          }
        }
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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Cannot load exported chart

Post by acastro » Fri Mar 14, 2014 9:30 am

Thanks a lot! Now it runs.

Post Reply