Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
left: 90,
},
layout: BulletDefaultProps.layout,
reverse: BulletDefaultProps.reverse,
spacing: 46,
titlePosition: BulletDefaultProps.titlePosition,
titleAlign: 'start',
titleOffsetX: -70,
titleOffsetY: BulletDefaultProps.titleOffsetY,
titleRotation: BulletDefaultProps.titleRotation,
measureSize: 0.2,
markerSize: 0.6,
axisPosition: BulletDefaultProps.axisPosition,
rangeColors: BulletDefaultProps.rangeColors,
measureColors: BulletDefaultProps.measureColors,
markerColors: BulletDefaultProps.markerColors,
animate: true,
motionStiffness: 90,
motionDamping: 12,
}
const Bullet = () => {
return (group: 'Style',
help: 'Custom component for markers.',
type: 'Function',
required: false,
},
{
key: 'markerColors',
help: 'Markers colors.',
description: `
Defines colors for markers,
you can either use categorical colors:
\`greens\` or sequential form: \`seq:green\`.
`,
type: 'string | Function| string[]',
required: false,
defaultValue: defaults.markerColors,
controlType: 'colors',
group: 'Style',
controlOptions: {
includeSequential: true,
},
},
{
key: 'axisPosition',
help: `Where to put axis.`,
type: 'string',
required: false,
defaultValue: defaults.axisPosition,
controlType: 'radio',
group: 'Axes',
controlOptions: {
choices: [left: 90,
},
layout: BulletDefaultProps.layout,
reverse: BulletDefaultProps.reverse,
spacing: 46,
titlePosition: BulletDefaultProps.titlePosition,
titleAlign: 'start',
titleOffsetX: -70,
titleOffsetY: BulletDefaultProps.titleOffsetY,
titleRotation: BulletDefaultProps.titleRotation,
measureSize: 0.2,
markerSize: 0.6,
axisPosition: BulletDefaultProps.axisPosition,
rangeColors: BulletDefaultProps.rangeColors,
measureColors: BulletDefaultProps.measureColors,
markerColors: BulletDefaultProps.markerColors,
animate: true,
motionStiffness: 90,
motionDamping: 12,
theme: nivoTheme,
},
}
diceRoll = () => {
this.setState({ data: generateData() })
}
handleSettingsUpdate = settings => {
this.setState({ settings })
}
handleRangeClick = (range, event) => {