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

log scale for xychart-beta #5438

Open
migueltorrescosta opened this issue Apr 3, 2024 · 1 comment
Open

log scale for xychart-beta #5438

migueltorrescosta opened this issue Apr 3, 2024 · 1 comment
Labels
Area: Development Contributor needed Graph: XY XY Chart Status: Pending Is not to be executed as it currently is Type: Enhancement New feature or request

Comments

@migueltorrescosta
Copy link

Proposal

Have a string field scale that

  • defaults to linear
  • accepts log as an option
  • Can be extended to other scales in the future

This would allow us to version control a graph description with true ( non-logged ) values, while plotting the logged values.

Example

xychart-beta
    title "Sales Revenue"
    scale log
    x-axis [jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec]
    y-axis "Revenue (in $)" 4000 --> 11000
    bar [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]
    line [5000, 6000, 7500, 8200, 9500, 10500, 11000, 10200, 9200, 8500, 7000, 6000]

Screenshots

No response

@migueltorrescosta migueltorrescosta added Status: Triage Needs to be verified, categorized, etc Type: Enhancement New feature or request labels Apr 3, 2024
@nirname nirname added Contributor needed Status: Pending Is not to be executed as it currently is Area: Development Graph: XY XY Chart and removed Status: Triage Needs to be verified, categorized, etc labels Jun 19, 2024
@nirname
Copy link
Contributor

nirname commented Jun 19, 2024

That's a good idea. Don't you think that it is also possible to configure scale separately for X and Y axis? What is your suggestions on syntax in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Development Contributor needed Graph: XY XY Chart Status: Pending Is not to be executed as it currently is Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants