@nteract/data-explorer
Version:
Transform for data resource JSON
13 lines (11 loc) • 303 B
Markdown
Simple controls for selecting a new color for your legend. The `updateColor` prop will send the array of colors selected.
```jsx
<PalettePicker
colors={["red", "green", "yellow", "blue"]}
selectedColor="red"
selectedPosition={0}
updateColor={(colors) => {
console.info(colors);
}}
/>
```