-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Different PieChart parts color and legend colors #1907
Comments
Thanks for your issue. Could you show us a complete, standalone example program or reproducible demo? If you open an existing workbook, please provide the file attachment without confidential info. |
sry my bad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
chart := &excelize.Chart{
Type: excelize.Pie,
Series: []excelize.ChartSeries{
{
Name: "Amount",
Categories: fmt.Sprintf("Sheet1!$%s$%s:$%s$%s", strings.Split(filledCategories[0], ":")[0], strings.Split(filledCategories[0], ":")[1], strings.Split(filledCategories[len(filledCategories)-1], ":")[0], strings.Split(filledCategories[len(filledCategories)-1], ":")[1]),
Values: fmt.Sprintf("Sheet1!$%s$%s:$%s$%s", strings.Split(filledCategories[0], ":")[0], strings.Split(filledValues[0], ":")[1], strings.Split(filledValues[len(filledValues)-1], ":")[0], strings.Split(filledValues[len(filledValues)-1], ":")[1]),
},
},
Steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Output of
go version
:go version go1.22.3 linux/amd64
Excelize version or commit ID:
v2.8.1
Environment details (OS, Microsoft Excel™ version, physical, etc.):
ubuntu 22.04 libre office
The text was updated successfully, but these errors were encountered: