Problem with Series Collection Editor

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Problem with Series Collection Editor

Post by Jeff » Fri Mar 16, 2007 6:35 pm

The Add button does not work in a Series Collection Editor. Is this a bug?

Thanks.

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 Mar 19, 2007 9:01 am

Hi Jeff,

What do you exactly mean with a "Series Collection Editor"? Which TeeChart version are you using?

Thanks in advance.
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

Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Post by Jeff » Mon Mar 19, 2007 4:26 pm

I am using TeeChart.NET v2. When you click on the little graphic icon in front of a series in a ChartListBox, TeeChart pops up a "Series Collection Editor". The Add button has no effect when you click on it.

Thanks.

Jeff
narcis wrote:Hi Jeff,

What do you exactly mean with a "Series Collection Editor"? Which TeeChart version are you using?

Thanks in advance.

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

Post by Narcís » Tue Mar 20, 2007 8:18 am

Hi Jeff,

There's no add button there. When you select one series an open its series gallery you can change the series style but not add series to the chart. For this you already have the series editor.
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

Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Post by Jeff » Tue Mar 20, 2007 4:59 pm

My "Series Collection Editor" Form does have two buttons "Add" and "Remove". If you click the "Remove" button, the series is removed. But if you click the "Add" button, nothing happens. I understand that there are ways to add a series to a Chart, my point is that if the "Add" button has no use there, it should be removed from the Form.

Jeff

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Mar 20, 2007 7:24 pm

Hello Jeff,

Normally when one dblclicks on the icon of a Series in the ChartListbox it opens the Gallery as below:

Image

Please could you confirm if that is what you see and if not please could you send us a code sample of how to call the Editor you describe (or upload a demo project via the upload page: http://www.steema.net/upload/).

With thanks.
Regards,
Marc Meumann
Steema Support

Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Post by Jeff » Tue Mar 20, 2007 9:37 pm

Sorry, my mistake. The "Series Collection Editor" does not pop up when you click on the image in front of a series in a ChartListBox.

In my program, I use a System.Windows.Forms.PropertyGrid to show the properties of a TChart. If the user clicks on the Series property of the TChart, the PropertyGrid invokes the "Series Collection Editor". On this "Series Collection Editor", you will see the "Add" and "Remove" buttons that I mentioned in my previous email.

Thank you.

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

Post by Narcís » Wed Mar 21, 2007 11:18 am

Hi Jeff,

Thanks for the information. We are aware of some inconsistency using PropertyGrid but seems to work fine using latest TeeChart for .NET v2 maintenance release available at the client area. Which TeeChart version are you using?

Please notice that for series to be visible in the chart you need to populate them. So after having added a series you should go to its datasource property and assign a datasource or, at least, some random values.
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

Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Post by Jeff » Wed Mar 21, 2007 4:56 pm

Thanks. I will download the latest release and try again.

BTW, speaking about the Datasource properties of a series, I found it is a bit confusing. In tutorial 6 under the section "Choosing a Series Type", there is a table showing the Datasource properties for each series. It seems to me that the table is not accurate. For example, for a Pie series, there is "Angle" property shown in the table but it actually does not exist in the Pie class. There are three ValueList properties for the Pie class: XValues, YValues, and PieValues. In the online help, however, I can't find enough information on which ValueList property I should use for a Pie series (judging by the names, PieValues seems to be the right one). It seems to me that the PieValues is linked to (or reference to) the YValues. Could you clarify on this a little? Also, there is a ValueLists property that contains three members: X, Y, and Pie. Are these three members just the references to the XValues, YValues, and PieValues?

Is there a more accurate and complete manual?

Thanks.

Jeff

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

Post by Narcís » Thu Mar 22, 2007 9:36 am

Hi Jeff,

Actually, Angle values list doesn't exist but Angles array does. This array is populated internally.

XValues and YValues are base series class ValueLists and then they are mapped with some specific series ValueLists as for example, PieValues with YValues.
Also, there is a ValueLists property that contains three members: X, Y, and Pie. Are these three members just the references to the XValues, YValues, and PieValues?
Sorry but I don't know which ValueLists do you mean, could you please give us some more information about that?

For some additional information I'd recommend you to consult the help file provided with TeeChart for .NET v2.
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

Marc
Site Admin
Site Admin
Posts: 1265
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Thu Mar 22, 2007 11:43 am

Hello Jeff,

Thankyou for your comments about the Tutorial file. The entry should be written as:

The data members for Pie are:
- Angle
- Pie
- Labels

The table in the documentation will be updated to reflect the correct names.

The data members names may be seen when using the Chart Editor and going to the Series:Datasource tab for the selected Series and selecting 'Datasource' as the data type.

When using the Visual Studio properties Window you can see the names 'Angle' and 'Pie' as datamember name but they are not property names, rather labels of the datamembers. I recommend using the Chart Editor as it compartmentalises a little more intuitively the elements.

ValuesLists contains a list of the ValueLists of the Series. The Valuelist names for the Pie Series are 'Angles' and 'PieValues' (YValues).

Regards,
Marc
Steema Support

Post Reply