How to use the @nivo/colors.categoricalColorSchemeIds.map function in @nivo/colors

To help you get started, we’ve selected a few @nivo/colors 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 / components / guides / colors / ColorsRanges.js View on Github external
const ColorsRanges = () => (
    
        
                {categoricalColorSchemeIds.map(scheme => (
                    <table>
            <tbody>
                <tr>
                    <th colspan="{2}">Categorical colors</th>
                </tr><tr>
                        <td>{scheme}</td>
                        <td>
                            {colorSchemes[scheme].map(color =&gt; (
                                <span style="{{">
                            ))}
                        </span></td>
                    </tr></tbody></table>