How do you select/unselect series on a chart?

J

Jim.Hubbard

I need to be able to enumerate the series on a chart control (OWC10) and
select/unselect them programatically.



Any ideas?
 
M

michael weiss

Dim ser
For each ser in chartspacename.charts(0).seriescollection
'do your stuff here with the series
Next

I think that should do it...
Michael
 
M

micahel weiss

Also, I am not quite sure what you mean by deselecting the
series? What are you trying to do with it? Delete it from
the chart? or...?
 
J

Jim.Hubbard

The request is for the users to be able to add/remove series just like
they do the categories.



The categories have a checkable listbox (the field listbox) that you can
select and deselect items in.



The series data does not seem to have such a checkable listbox. I'm
completely new to OWC Charts and I am not sure that you can remove
series from the legend and add it back.



If you r-click on the legend, you can delete an entry using the Commands
and Options wizard. Once the wizard opens, use the drop-down to select
an item you see in the legend. Then, click the X to the top left of the
drop-down listbox you used to select your legend item.



This removes the item from the legend, but I see no way to add it
back again.
 
J

Jim.Hubbard

To add it back, you just drag from the field list onto the chart.



But, I still need to know how to deselect the series items
programatically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top