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

[Feature Request] Logarithmic scale #163

Open
sclausen opened this issue Jul 19, 2023 · 1 comment
Open

[Feature Request] Logarithmic scale #163

sclausen opened this issue Jul 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sclausen
Copy link

Describe the solution you'd like
I would like to have an option to set the y scale to logarithmic like here

Describe alternatives you've considered
Resigning yourself to the fact that a few bar-chart bars are okay and most others are tiny.

@sclausen sclausen added the enhancement New feature or request label Jul 19, 2023
@RRS1981
Copy link

RRS1981 commented Nov 14, 2024

Hi @sclausen, you can set the "scales" option like below to set "logarithmic" scaling for yAxes or xAxes.

(new LineChart())
->options([
                'scales'=>[
                    'yAxes'=>[
                        'type' => 'logarithmic',
                        ],
                    ],

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