How to use the @nivo/generators.generateSwarmPlotData function in @nivo/generators

To help you get started, we’ve selected a few @nivo/generators 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 plouc / nivo / website / src / data / components / swarmplot / generator.js View on Github external
export const generateLightDataSet = previousData => {
    if (previousData !== undefined) return randomizeSwarmPlotData(previousData)

    return generateSwarmPlotData(allGroups.slice(0, 3), { min: 50, max: 80 })
}
github plouc / nivo / website / src / data / components / swarmplot / generator.js View on Github external
export const generateHeavyDataSet = previousData => {
    if (previousData !== undefined) return randomizeSwarmPlotData(previousData)

    return generateSwarmPlotData(allGroups, { min: 60, max: 100 })
}