Problem with ARROW series?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Adrian
Advanced
Posts: 116
Joined: Thu Jun 23, 2005 4:00 am

Problem with ARROW series?

Post by Adrian » Sun Sep 25, 2005 7:30 am

Hi there,
There appears to be a problem with the ARROW series. I'm using Tchart dotnet 2.0.2040.15119

I have a datatable with 4 columns STARTx, STARTy for the starting point of the line and ENDx,ENDy for the ending point (which should have the arrow head.

my sample data looks like
Startx Starty Endx Endy
10 20 30 40
50 60 70 80

I programatically create an arrow series and assign column names as follows.

Code: Select all

Dim x As New Steema.TeeChart.Styles.Arrow
            x.StartXValues.DataMember = "StartX"
            x.StartYValues.DataMember = "StartY"
            x.EndXValues.DataMember = "EndX"
            x.EndYValues.DataMember = "EndY"


examining the series object, it appears that the assignments have worked.

Code: Select all

-	StartXValues	{Steema.TeeChart.Styles.ValueList}	DataMember	"StartX"	String

-	StartYValues	{Steema.TeeChart.Styles.ValueList}	DataMember	"StartY"	String

-	EndXValues	{Steema.TeeChart.Styles.ValueList}	DataMember	"EndX"	String

-	EndYValues	{Steema.TeeChart.Styles.ValueList}	DataMember	"EndY"	String

However all my arrows seem to end at 0,0 (this is where the arrow head is) and the start of the line seems to be at point Endy, Starty.

Am I doing something wrong?

Also when a use the TCHART editor to create an arrow series and set the data source to random and the number of samples to 1 I only ever get a vertical arrow , setting samples to 2 or more generates sloping arrows.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Sep 26, 2005 9:55 am

Hi Adrian,

Manually populating series with data as yours works fine here.
arrow1.Add(10,20,30,40);
arrow1.Add(50,60,70,80);
Could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Best Regards,
Narcís Calvet / 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

Post Reply