TeeChart for Xamarin.iOS problems

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Calin
Newbie
Newbie
Posts: 3
Joined: Tue Feb 19, 2013 12:00 am

TeeChart for Xamarin.iOS problems

Post by Calin » Tue Jul 23, 2013 10:20 am

Hello,
I am new to Teechart, we just bought the license for it from Xamarin Components Store. I made a few demo charts and I have some questions/problems:

1. I can't manage to display this Gantt chart with only one series, it doesn't show anything until I add a new series. Is this a bug? I just need to show a number of time intervals, one after another, on the same level
2. The Gantt chart is scrollable. I've tried to disable this, but doesn't seem to work. The bottom axes scrolls and the gantt chart remains on the screen or the gantt scrolls with the axes, depending on where I put my finger on the screen. Can I disable scrolling completely? The same thing happens for the line chart.
3. The performance when displaying the Gantt chart is very slow - for around 500 values. How can I improve it?
4. Is zooming into the Gantt chart an existing feature? If I have 500 time intervals it would be nice if I could zoom in/out to see the details of a smaller time interval.

Many thanks,
Calin
iOS Simulator Screen shot Jul 23, 2013 1.05.30 PM.jpg
iOS Simulator Screen shot Jul 23, 2013 1.05.30 PM.jpg (51.4 KiB) Viewed 9479 times

Calin
Newbie
Newbie
Posts: 3
Joined: Tue Feb 19, 2013 12:00 am

Re: TeeChart for Xamarin.iOS problems

Post by Calin » Tue Jul 23, 2013 10:23 am

The version that I am using is the latest one found on your website, I got it from your sales department: TeeChartNETMonoTouch_v4_13_04_05

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TeeChart for Xamarin.iOS problems

Post by Sandra » Wed Jul 24, 2013 11:57 am

Hello Calin,
1. I can't manage to display this Gantt chart with only one series, it doesn't show anything until I add a new series. Is this a bug? I just need to show a number of time intervals, one after another, on the same level
Could you please send us a simple code because we can reproduce the problem here and try to give you a good solution?
2. The Gantt chart is scrollable. I've tried to disable this, but doesn't seem to work. The bottom axes scrolls and the gantt chart remains on the screen or the gantt scrolls with the axes, depending on where I put my finger on the screen. Can I disable scrolling completely? The same thing happens for the line chart.
If you don't want use zoom and scroll in your Gantt chart you must disable it, first setting the ZoomScrollStyles to Manual and after disable zoom and scroll using similar code as next:

Code: Select all

    
chart3.Aspect.View3D = false;
chart3.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
chart3.Chart.Panning.Allow = ScrollModes.None; 
chart3.Chart.Zoom.Allow=false; 
3. The performance when displaying the Gantt chart is very slow - for around 500 values. How can I improve it?
You can take a look in the technical article Real-Time Charting where you can find a few tips to increase your performance. On the other hand, if the tips don't help you to solve your problem, please send us a simple project so we can try to help you.
4. Is zooming into the Gantt chart an existing feature? If I have 500 time intervals it would be nice if I could zoom in/out to see the details of a smaller time interval.
I recommend you taking a look in next thread where you find as you need to understand the zoom and scroll for ios and the possibilities there are to achieve it.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Calin
Newbie
Newbie
Posts: 3
Joined: Tue Feb 19, 2013 12:00 am

Re: TeeChart for Xamarin.iOS problems

Post by Calin » Wed Jul 24, 2013 12:59 pm

Hello Sandra,
thank you for your help.
The block of code that you provided fixed the scroll problem. It also fixed my problem with the Gantt with only one series, if I remove it it doesn't display anything useful.

If you want to look into it (for me it's ok now), an excerpt of my code, the last 3 lines of code made it work.

Thanks again,
Calin

progressChart = new TChart();
progressChart.Frame = new RectangleF(0, 0, 430, 100);
var progressSeries = new Steema.TeeChart.Styles.Gantt ();

foreach (var machineEvent in machineEvents)
{
dt1 = (DateTime) machineEvent.start;
dt2 = (DateTime) machineEvent.ende;
progressSeries.Add(dt1, dt2, 1, "", barColor.CGColor);
}

progressSeries.Pointer.VertSize = 10;
progressChart.Series.Add(progressSeries);
progressChart.Aspect.View3D = false;
progressChart.Header.Visible = false;
progressChart.Legend.Visible = false;
progressChart.Panel.Gradient.Visible = false;
progressChart.Panel.Color = UIColor.FromRGB(247, 247, 247).CGColor;
progressChart.Axes.Left.Increment = 10;
progressChart.Axes.Left.Ticks.Visible = false;
progressChart.Axes.Left.MinorTicks.Visible = false;
progressChart.Axes.Left.Visible = false;

//disable scroll and zoom
progressChart.Chart.Aspect.ZoomScrollStyle = Steema.TeeChart.Drawing.Aspect.ZoomScrollStyles.Manual;
progressChart.Chart.Panning.Allow = ScrollModes.None;
progressChart.Chart.Zoom.Allow=false;

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: TeeChart for Xamarin.iOS problems

Post by Pep » Wed Jul 24, 2013 4:11 pm

Hello Calin,

I'm glad to hear it's working fine now.
i've checked here with all the code you used, and you're correct, it's a bug, it happens with auto style. I'm going to fix it so it can be included for the next maintenance release.

Thanks !

Post Reply