Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateBulletData } from '@nivo/generators'
import { Bullet } from '../src'
const data = [
generateBulletData('volume', 200, { measureCount: 2 }),
generateBulletData('cost', 10000, { markerCount: 2 }),
generateBulletData('revenue', 2, { float: true }),
]
const commonProps = {
width: 900,
height: 360,
margin: { top: 10, right: 30, bottom: 50, left: 110 },
titleOffsetX: -80,
data,
spacing: 80,
animate: false,
}
const stories = storiesOf('Bullet', module)
stories.add('default', () => )
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
import React from 'react'
import { storiesOf } from '@storybook/react'
import { generateBulletData } from '@nivo/generators'
import { Bullet } from '../src'
const data = [
generateBulletData('volume', 200, { measureCount: 2 }),
generateBulletData('cost', 10000, { markerCount: 2 }),
generateBulletData('revenue', 2, { float: true }),
]
const commonProps = {
width: 900,
height: 360,
margin: { top: 10, right: 30, bottom: 50, left: 110 },
titleOffsetX: -80,
data,
spacing: 80,
animate: false,
}
const stories = storiesOf('Bullet', module)
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]
const generateData = () => [
generateBulletData('temp.', shuffle([100, 120, 140])[0]),
generateBulletData('power', 2, { float: true, measureCount: 2 }),
generateBulletData('volume', shuffle([40, 60, 80])[0], { rangeCount: 8 }),
generateBulletData('cost', 500000, { measureCount: 2 }),
generateBulletData('revenue', shuffle([9, 11, 13])[0], { markerCount: 2 }),
]