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

[mock-data] improve genStats customizability #1069

Open
williaster opened this issue Feb 13, 2021 · 1 comment
Open

[mock-data] improve genStats customizability #1069

williaster opened this issue Feb 13, 2021 · 1 comment

Comments

@williaster
Copy link
Collaborator

Originally posted by @LoiKos in #1058


I just add 2 suggestions that makes genStats maybe easier to use

  1. xAxis customization
// today 
  const boxPlot = {
      x: `${xAxis(i)}`,
      ...
      }
// idea
function genStats(
  number,
  random = defaultRandom,
  randomOffset = defaultRandomOffset,
  xAxis = (i) => `Statistics ${i}`
) {
...
  const boxPlot = {
      x: xAxis(i),
      ...
      }
   ...
   }
  1. I don't know if you are looking into this but i build a boxPlots based 12 month. So it's great to be able to generate boxPlots for each month directly but unfortunately you don't get the original data (only bin) for each month so user are not able to calculate for example yearly mean/median. I think it could be a great addition to genStats. There is multiple options to add this functionality so if you are interested i could give you some examples 😄
@williaster williaster changed the title [mock-data] improve genStats [mock-data] improve genStats customizability Feb 13, 2021
@LoiKos
Copy link
Contributor

LoiKos commented Feb 15, 2021

Sorry didn't have time to look into this already. I'll try to send you a PR about this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants