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 Logarithmic scale option support on Y axis #661

Closed
huybuidev opened this issue Jul 8, 2020 · 0 comments
Closed

Add Logarithmic scale option support on Y axis #661

huybuidev opened this issue Jul 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@huybuidev
Copy link
Contributor

Description

Provide option to enable the Logarithmic scale option in Y axis for charts.

Steps to reproduce the issue:

  1. Add a line-type chart

Describe the results you received:
No option to enable the Logarithmic scale option in Y axis

Describe the results you expected:
Being able to enable the Logarithmic scale option in Y axis

Output of go version:

go version go1.14.4 windows/amd64

Excelize version or commit ID:

f7bd0729c65fc82305328f7ac8fbaf329d1075c0

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Windows 10 x64 2004
Excel 2016

huybuidev added a commit to huybuidev/excelize that referenced this issue Jul 8, 2020
Example usage:
Add the following option into the format string when using AddChart:

"y_axis":{"scaling":{"logbase":"10"}}
@xuri xuri added the enhancement New feature or request label Jul 8, 2020
@xuri xuri closed this as completed in 42b1c81 Jul 10, 2020
nullfy pushed a commit to nullfy/excelize that referenced this issue Oct 23, 2020
…x-os#662)

* Resolve qax-os#661 Add Logarithmic scale option support on Y axis

Example usage:
Add the following option into the format string when using AddChart:

"y_axis":{"scaling":{"logbase":"10"}}

* Change type of LogBase from attrValString to attrVarFloat

* Add test case for testing Logarithmic Option in Y axis of charts

* Move field `LogBase` in the format string up one level (remove `Scaling`) as suggested the owner

Test cases are updated accordingly.
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
None yet
Development

No branches or pull requests

2 participants