Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legend showing XValues not Series Name if only 1 series shown #345

Open
Offbeatmammal opened this issue Apr 19, 2022 · 0 comments
Open

Legend showing XValues not Series Name if only 1 series shown #345

Offbeatmammal opened this issue Apr 19, 2022 · 0 comments

Comments

@Offbeatmammal
Copy link

(have also asked this on StackOverflow, not sure where is best)

If I have a graph with (say) two Series, and the legends showing the series names, if I hide one of the series:

NetOffice.PowerPointApi.Series sr = (NetOffice.PowerPointApi.Series)xob2.Chart.SeriesCollection(1);
sr.IsFiltered = true;

the legend changes from showing the expected remaining series name to show all of the series XValues - which isn't want we want, would like to retain just the one series name. Am I missing something obvious?

Worst case we can set the hasLegend to false and put a textbox there.

(note for various reasons we don't want to use the Excel workbooks, so would like to do this purely using the NetOffice.PowerPointApi capabilities)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant