function Example() {
const row = {
name: 'Panchito Green',
age: 10,
x: 0.5,
shirtSize: 'S',
birthday: new Date(2011, 1, 1),
hobbies: ['running', 'cooking'],
runningTimes: [10, 20, 40, 30, 15],
};
return (
<div style={{ maxWidth: 200 }}>
<TextLabel value={row.name} />
<NumberBar value={row.age} scale={normalize(0, 50)} />
<DivergingNumberBar value={row.x} scale={normalize(-1, 1)} />
<CategoricalColor value={row.shirtSize} color="red" />
<DateLabel value={row.birthday} />
<UpSetLine value={row.hobbies} sets={['running', 'reading', 'cooking']} />
<HeatMap1D value={row.runningTimes} scale={normalize(0, 50)} />
</div>
);
}