Skip to content

Conversation

@navneetrai
Copy link
Member

  • Add method to get a parametrized list of datasets
  • Add helper functions to get min, max, average and median datasets

@navneetrai navneetrai requested a review from kirschbaum November 3, 2020 12:06
@navneetrai navneetrai self-assigned this Nov 3, 2020
*
* @return array
*/
public static function getNovaChartjsMaxDataSet($chartName = 'default', $sortBy = null, $limit = 0): array
Copy link
Member

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?

Copy link
Member Author

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.

navneetrai and others added 6 commits January 28, 2021 16:09
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Co-authored-by: David VanScott <david@kirschbaumdevelopment.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants