Broken graph lines

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Broken graph lines

Post by SorenBendtsen » Wed Jul 15, 2009 10:26 am

Hi

I have a graph, containing a single FastLine series. All the points should be connected, but in the graph, it appears to have blank segments.
brokenlinkes.png
brokenlinkes.png (59.5 KiB) Viewed 4872 times
I exporting the values in the series using:

using (TextWriter writer = new StreamWriter(fileStream, Encoding.UTF8))
{
foreach (Series series in graphChannels.Series)
{
writer.WriteLine(series.Title);
int count = Math.Min(series.XValues.Count, series.YValues.Count);

for (int i = 0; i < count; i++)
writer.WriteLine("{0}\t{1}", series.XValues, series.YValues);
}
}

And imported it into Excel, to see if there really is any null values in the series - but I have not found any.
The series data, with X/Y-plot can be found here: http://www.bendtsen.net/export.xls

Any advise on how to resolve this?

SorenBendtsen
Newbie
Newbie
Posts: 18
Joined: Fri Nov 02, 2007 12:00 am
Contact:

Re: Broken graph lines

Post by SorenBendtsen » Wed Jul 15, 2009 10:35 am

The TeeChart version is 3.5.3425.20243 using Framework 3.0 on a Windows XP machine.

Yeray
Site Admin
Site Admin
Posts: 9587
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Broken graph lines

Post by Yeray » Wed Jul 15, 2009 2:37 pm

Hi Soren,

I've saved your xls as csv and imported it to a chart and I couldn't see any gap. Here is the code I used:

Code: Select all

        public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }

        FastLine fast1;

        private void InitializeChart()
        {
            chartController1.Chart = tChart1;

            tChart1.Dock = DockStyle.Fill;
            tChart1.Aspect.View3D = false;
            tChart1.Legend.Visible = false;

            fast1 = new FastLine(tChart1.Chart);

            TextSource textsource1 = new TextSource("H:\\yeray\\examples\\Soren\\test.csv");
            textsource1.DecimalSeparator = ',';
            textsource1.Separator = ';';
            fast1.DataSource = textsource1;
            textsource1.Fields.Add(0, "X");
            textsource1.Fields.Add(1, "Y");
            fast1.CheckDataSource();
        }
Could you please attach here a simple example project we can run as-is here to reproduce the problem here?

Thanks in advance.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply