Skip to content

How to set GapWidth when plotting Col chart using function "AddChart"? #2033

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

Closed
ffh-zhang opened this issue Dec 4, 2024 · 1 comment
Closed
Labels
enhancement New feature or request

Comments

@ffh-zhang
Copy link

Description

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Output of go version:

(paste your output here)

Excelize version or commit ID:

(paste here)

Environment details (OS, Microsoft Excel™ version, physical, etc.):

@xuri xuri added enhancement New feature or request in progress Working in progress labels Dec 7, 2024
@xuri xuri moved this to Features in Excelize v2.9.1 Dec 7, 2024
@xuri xuri closed this as completed in 3ca60f8 Dec 8, 2024
@xuri
Copy link
Member

xuri commented Dec 8, 2024

Thanks for your issue. I added new fields GapWidth and Overlap in the Chart data type to support set gap width and overlap of the bar and column chart, please upgrade to the master branch code by go get -u github.com/xuri/excelize/v2@master. This feature will be released in the next version. Now you can set the gap width of the column chart like this:

gapWidth := uint(10)
&excelize.Chart{
    Type: excelize.Col,
+   GapWidth: &gapWidth,
    ...
}

@xuri xuri removed the in progress Working in progress label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Status: Features
Development

No branches or pull requests

2 participants