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

configuration of the minimum, maximum, tick amount of the y-axis #78

Closed

Conversation

marineusde
Copy link
Contributor

Using:

$chart = (new RadarChartWithYAxis)
            ->setYAxis(0, 4, 4, true);

@ArielMejiaDev ArielMejiaDev added the enhancement New feature or request label Jul 25, 2023
@ArielMejiaDev
Copy link
Owner

@zwhhz This PR makes sense, could you please add the same option for:

@@ -33,6 +33,18 @@
xaxis: {
categories: {!! $chart->xAxis() !!}
},
@if ($chart->yAxisMin() !== null && $chart->yAxisMax() !== null && $chart->yAxisTickAmount() !== null)
Copy link
Owner

Choose a reason for hiding this comment

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

I would avoid too complex if statements, I would prefer to handle every property with it's own if statement or using a ternary operator

Copy link
Contributor Author

Choose a reason for hiding this comment

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

after using Livewire 3 the if-statement doesnt work, so I removed it

@marineusde marineusde force-pushed the configuration-of-y-axis branch from 444deee to cf2b21d Compare January 31, 2024 08:02
@marineusde marineusde force-pushed the configuration-of-y-axis branch from cf2b21d to 0b33318 Compare February 13, 2024 07:13
@marineusde marineusde mentioned this pull request Feb 13, 2024
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

Successfully merging this pull request may close these issues.

2 participants