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

Allow custom line color in the charts #1346

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

Beeb0p
Copy link
Contributor

@Beeb0p Beeb0p commented Sep 13, 2022

PR Details

Use Series=>Line=>Color in the chart drawing.

Description

Currently, it is possible to specify Series=>Line=>Color for charts, however, this color would not affect drawing as we have a hardcoded formula for SchemeClL ""accent" + strconv.Itoa((formatSet.order+i)%6+1)}" and do not use SrgbClr field at all. I propose use SrgbClr instead of SchemeClL if Line=>Color is specified.

Related Issue

#1345

Motivation and Context

Allow user to control the line's color

How Has This Been Tested

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@xuri xuri added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 13, 2022
@xuri xuri linked an issue Sep 13, 2022 that may be closed by this pull request
@xuri xuri self-assigned this Sep 13, 2022
@xuri xuri merged commit 73cc4bd into qax-os:master Sep 13, 2022
Copy link
Member

@xuri xuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution.

xuri pushed a commit to carbin-gun/excelize that referenced this pull request Oct 9, 2022
xuri pushed a commit to JDavidVR/excelize that referenced this pull request Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use user defined line colors in the chart
2 participants