Page 1 of 1
TeeChart for Xamarin.iOS problems
Posted: Tue Jul 23, 2013 10:20 am
by 17265023
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 (51.4 KiB) Viewed 9399 times
Re: TeeChart for Xamarin.iOS problems
Posted: Tue Jul 23, 2013 10:23 am
by 17265023
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
Re: TeeChart for Xamarin.iOS problems
Posted: Wed Jul 24, 2013 11:57 am
by 10050769
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,
Re: TeeChart for Xamarin.iOS problems
Posted: Wed Jul 24, 2013 12:59 pm
by 17265023
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;
Re: TeeChart for Xamarin.iOS problems
Posted: Wed Jul 24, 2013 4:11 pm
by Pep
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 !