How to use the @vx/mock-data.genPhyllotaxis function in @vx/mock-data

To help you get started, we’ve selected a few @vx/mock-data examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hshoff / vx / packages / vx-demo / pages / zoom.js View on Github external
render() {
    const { width, height, margin } = this.props;
    const gen = genPhyllotaxis({ radius: 10, width, height });
    const phyllotaxis = [...new Array(1000)].map((d, i) => gen(i));
    return (
      
        {zoom => {
          console.log(zoom);
          return (
            <div style="{{">
              </div>