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

Add a parameter to specify the ChartStyle #503

Closed
lucdekens opened this issue Dec 9, 2018 · 7 comments
Closed

Add a parameter to specify the ChartStyle #503

lucdekens opened this issue Dec 9, 2018 · 7 comments

Comments

@lucdekens
Copy link

This would replicate the Chart Layouts on the Design tab in Excel.
Not sure if this is possible at all.

@dfinke
Copy link
Owner

dfinke commented Dec 9, 2018

Added a chart style in this branch 1ef6e66

There are some 48 styles in the enum, named Style1..48. They do change the chart look, Looks like a style # may only apply to a chart type, Needs investigation.

Gives the chart a 3D type look

image

image

@lucdekens
Copy link
Author

Yes, that works, thanks Doug.

The information on these Styles is rather scarce it seems.
No enumeration info I can find.

These 2 StackOverflow threads seem to hold some more info.
https://stackoverflow.com/questions/38813522/themed-chart-styles-for-excel-charts-using-vba
https://stackoverflow.com/questions/27889579/what-does-the-number-in-the-addchart2-vba-macro-represents

@lucdekens
Copy link
Author

This Excel holds a sample of all the styles
https://onedrive.live.com/view.aspx?resid=CC8D18389663F4C7!54425&ithint=file%2cxlsx&app=Excel&authkey=!ADUXdSANPTS1r_Q

@dfinke dfinke closed this as completed May 2, 2020
@haydeniv
Copy link

haydeniv commented Nov 2, 2023

Did this ever get added to a release?

@dfinke
Copy link
Owner

dfinke commented Nov 3, 2023

I believe so. Just thinking of the top of my head though.

@haydeniv
Copy link

haydeniv commented Nov 3, 2023

I tried to use the -ChartStyle parameter in 7.8.6 and got:
New-ExcelChartDefinition : A parameter cannot be found that matches parameter name 'ChartStyle'.

@dfinke
Copy link
Owner

dfinke commented Nov 3, 2023

pls post the repro, script etc

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

No branches or pull requests

3 participants