Page 1 of 1
Problem with Series Collection Editor
Posted: Fri Mar 16, 2007 6:35 pm
by 9643227
The Add button does not work in a Series Collection Editor. Is this a bug?
Thanks.
Posted: Mon Mar 19, 2007 9:01 am
by narcis
Hi Jeff,
What do you exactly mean with a "Series Collection Editor"? Which TeeChart version are you using?
Thanks in advance.
Posted: Mon Mar 19, 2007 4:26 pm
by 9643227
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.
Posted: Tue Mar 20, 2007 8:18 am
by narcis
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.
Posted: Tue Mar 20, 2007 4:59 pm
by 9643227
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
Posted: Tue Mar 20, 2007 7:24 pm
by Marc
Hello Jeff,
Normally when one dblclicks on the icon of a Series in the ChartListbox it opens the Gallery as below:
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
Posted: Tue Mar 20, 2007 9:37 pm
by 9643227
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.
Posted: Wed Mar 21, 2007 11:18 am
by narcis
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.
Posted: Wed Mar 21, 2007 4:56 pm
by 9643227
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
Posted: Thu Mar 22, 2007 9:36 am
by narcis
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.
Posted: Thu Mar 22, 2007 11:43 am
by Marc
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