-
Notifications
You must be signed in to change notification settings - Fork 4
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
Get parameterized list of datapoints #46
base: master
Are you sure you want to change the base?
Conversation
* | ||
* @return array | ||
*/ | ||
public static function getNovaChartjsMaxDataSet($chartName = 'default', $sortBy = null, $limit = 0): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about trying to make these calls a little more dynamic? Is there a way we could use __callStatic
for these since they're almost identical code? Do you think that would be a good idea here or should we avoid that for reasons I'm not thinking about?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dvanscott These calls are mostly convenience methods for end users. These are not used anywhere in our code directly.
These are also supposed to act as a template for end users it they want to add more such methods for their own use. That was one of the reason I wanted to keep it more readable.
Co-authored-by: David VanScott <[email protected]>
Co-authored-by: David VanScott <[email protected]>
Co-authored-by: David VanScott <[email protected]>
Co-authored-by: David VanScott <[email protected]>
Co-authored-by: David VanScott <[email protected]>
Co-authored-by: David VanScott <[email protected]>
min
,max
,average
andmedian
datasets